3v4l.org

run code in 300+ PHP versions simultaneously
<?php function named(:$ns = "Hello", :$ts = "Other") { var_dump($ns); var_dump($ts); } $var = "Called"; named(:$ts = $var);
Output for 5.4.0 - 5.4.19, 5.5.0 - 5.5.3
Parse error: syntax error, unexpected ':', expecting '&' or variable (T_VARIABLE) in /in/KNGcK on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected ':', expecting '&' or T_VARIABLE in /in/KNGcK on line 3
Process exited with code 255.

preferences:
194.09 ms | 1395 KiB | 59 Q