3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct($id) { var_dump( $id ); } } class Bar extends Foo { public function __construct($id) { call_user_func_array(array('parent', __FUNCTION__), func_get_args()); call_user_func_array(array($this, 'parent::' . __FUNCTION__), func_get_args()); } } new Bar(1);

preferences:
52.6 ms | 402 KiB | 5 Q