3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! echo join('|', [1, 2]) if(0 == 'true') { echo 'true'; }
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected 'if' (T_IF), expecting ',' or ';' in /in/2kZ02 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/2kZ02 on line 4
Process exited with code 255.