3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { function bar($a, $b): void; } class Baz implements Foo { function bar($b, $a): void { var_dump([$a, $b]); } } call_user_func_array([(new Baz), 'bar'], ['a' => 123, 'b' => 456]);

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch master
array(2) { [0]=> int(123) [1]=> int(456) }
Output for branch master_jit
array(2) { [0]=> int(123) [1]=> int(456) }
Output for branch enumerations
array(2) { [0]=> int(123) [1]=> int(456) }

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