3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myfunction(&$first = null, $second = null) { var_dump($first, $second); } myfunction(second: "something");
Output for 8.0.0, 8.1.23 - 8.1.33, 8.2.10 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
NULL string(9) "something"
Output for 7.3.0 - 7.3.25, 7.4.0 - 7.4.13
Parse error: syntax error, unexpected ':', expecting ')' in /in/CXtIZ on line 5
Process exited with code 255.

preferences:
73.69 ms | 407 KiB | 5 Q