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;

This is an error 404

There are `0` results


preferences:
146.85 ms | 1015 KiB | 7 Q