3v4l.org

run code in 200+ PHP versions simultaneously
<?php class A { public function foo( $foo ) { var_dump( func_get_args() ); } } class B extends A { public function foo( $foo ) { $args = func_get_args(); call_user_func_array( array( $this, 'parent::foo' ), $args ); } } $b = new B(); $b->foo( 'a', 'b', 'c' );
based on ORBWl

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

Output for Typed properties v2
array(3) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" }
Output for Array change keys
array(3) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" }
Output for Lexical anon
array(3) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" }

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