3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassOne{ public function fun($v) { echo $v; } } class ClassTwo extends ClassOne { public function secfun($v) { $method = 'fun'; call_user_func_array("parent::$method", [$v]); } } $c = new ClassTwo; $c->secfun('asdf');
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Use of "parent" in callables is deprecated in /in/6QX27 on line 8 asdf

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