Online PHP compiler

Run your PHP code using myCompiler's online IDE.

Fiddle with your code snippets easily and run them.

Start writing code instantly without having to download or install anything.

Run your PHP code
<?php

function fib(int $x):int {
    return $x <= 2 ? 1 : fib($x - 1) + fib($x - 2);
}

echo fib(10);

Run your PHP code without installing anything

Using myCompiler, you can run your code instantly from any device. Just visit our website, select a language, type in your code and hit "Run!" Write your code without having to spend hours figuring out how to set up a programming environment.

Feature-rich code editor

myCompiler's editor supports autocomplete and syntax highlighting out of the box, which makes writing code a breeze.

Multi-language support

Write programs in your favourite language, or start learning a new language. myCompiler supports 20 languages with more to come.