3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fileContent = <<<'PHP' input ----- expected output PHP; echo $fileContent; echo PHP_EOL . PHP_EOL . PHP_EOL . PHP_EOL; [$input, $expectedOutput] = explode("\n-----\n", $fileContent); echo $input; echo PHP_EOL . PHP_EOL; echo $expectedOutput; echo PHP_EOL . PHP_EOL;

preferences:
53.93 ms | 402 KiB | 5 Q