3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = print(); var_dump($var); echo "\n"; echo $var; echo "\n"; print $var; echo "\n"; echo print("hello world"); echo "\n"; print print("hello world"); echo "\n"; print("hello world"); echo "\n"; ?>
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected ')' in /in/SjIXv on line 2
Process exited with code 255.