3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __call($name, $arguments) { echo("i don't want to be in here :-("); } public static function __callStatic($name, $arguments) { echo('i want to be in here, but how?'); } public function instanceMethod() { // objective: call a non-existing static method, // so that eventually __callStatic is called and // can take care of things forward_static_call(['A', 'test']); } } (new A())->instanceMethod();
Output for git.master, git.master_jit, rfc.property-hooks
i don't want to be in here :-(

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