3v4l.org

run code in 300+ 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' );

preferences:
31.08 ms | 404 KiB | 5 Q