3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(call_user_func_array("strlen", ["hello"])); var_dump(call_user_func_array("strlen", ["a" => "hello"]));
Output for 8.0.0 - 8.0.3
int(5) Fatal error: Uncaught Error: Unknown named parameter $a in /in/c1R03:3 Stack trace: #0 {main} thrown in /in/c1R03 on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.26, 7.4.0 - 7.4.13
int(5) int(5)