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);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Use of "parent" in callables is deprecated in /in/N8A92 on line 13 int(1) Deprecated: Callables of the form ["Bar", "parent::test"] are deprecated in /in/N8A92 on line 14 int(1)

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:
61.92 ms | 401 KiB | 8 Q