3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $v = null; public function test() { var_dump( $this->v ); } } class Bar extends Foo { public function gert($id) { $this->v = $id; call_user_func_array(array('parent', 'test'), func_get_args()); call_user_func_array(array($this, 'parent::test'), func_get_args()); } } $gert = new Bar(); $gert->gert(1);

preferences:
47.53 ms | 402 KiB | 5 Q