3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foobar { public function __construct( private $router, private $requestStack, ) { var_dump(func_get_args()); } } class Baz extends Foobar { public function __construct( private $em, ...$args, ) { var_dump(func_get_args()); parent::__construct(...$args); } } new Baz('em', 'router', 'requestStack');
Output for git.master, git.master_jit
array(3) { [0]=> string(2) "em" [1]=> string(6) "router" [2]=> string(12) "requestStack" } array(2) { [0]=> string(6) "router" [1]=> string(12) "requestStack" }

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:
48 ms | 991 KiB | 4 Q