3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function test($a, $b) { var_dump('A:' . $a); var_dump('B:' . $b); } } $a = new A; call_user_func_array([$a, 'test'], ['1', '2']); // this works call_user_func_array([$a, 'test'], ['b' => '2', 'a' => 1]); // this works too call_user_func_array([$a, 'test'], ['c' => 1, 'd' => 2]); // this deoesnt work since php8 since there are no parametes names c or d
Output for git.master, git.master_jit, rfc.property-hooks
string(3) "A:1" string(3) "B:2" string(3) "A:1" string(3) "B:2" Fatal error: Uncaught Error: Unknown named parameter $c in /in/DAsGO:14 Stack trace: #0 {main} thrown in /in/DAsGO on line 14
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
107.84 ms | 405 KiB | 5 Q