3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassWithBothMagicCallMethods { public function __call($name, $args) { return "__call: " . $name; } public static function __callStatic($name, $args) { return "__callStatic: " . $name; } public function doSomething() { return static::magicCall(); } } class ClassWithCallStaticOnly { public static function __callStatic($name, $args) { return "__callStatic: " . $name; } public function doSomething() { return static::magicCall(); } } echo (new ClassWithCallStaticOnly())->doSomething() . PHP_EOL; echo (new ClassWithBothMagicCallMethods())->doSomething() . PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
__callStatic: magicCall __call: magicCall

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:
44.97 ms | 405 KiB | 5 Q