3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
168.64 ms | 1395 KiB | 55 Q