3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myfunction() { $string=argv[1] print $string; } myfunction("Hello. World!"); ?>
Output for 5.6.8 - 5.6.15
Parse error: syntax error, unexpected 'print' (T_PRINT) in /in/IGJbU on line 5
Process exited with code 255.
Output for 5.5.24 - 5.5.30
Parse error: syntax error, unexpected '[' in /in/IGJbU on line 4
Process exited with code 255.

preferences:
161.38 ms | 1395 KiB | 22 Q