3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait MyTrait { public static function hello() { echo __CLASS__, "\n"; if (\is_callable(array('parent', __FUNCTION__))) { parent::getSubscribedServices(); } } } class ParentClass { use MyTrait; } class ChildClass extends ParentClass { use MyTrait; } ChildClass::hello();
Output for git.master, git.master_jit, rfc.property-hooks
ChildClass Deprecated: Use of "parent" in callables is deprecated in /in/tmCVm on line 9 Fatal error: Uncaught Error: Call to undefined method ParentClass::getSubscribedServices() in /in/tmCVm:10 Stack trace: #0 /in/tmCVm(25): ChildClass::hello() #1 {main} thrown in /in/tmCVm on line 10
Process exited with code 255.

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