3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function __callStatic($m, $args) { var_dump($m); } public function __call($m, $args) { var_dump($m); } } $callable = [new Foo, '']; $callable(); $callable = 'Foo::'; $callable();

preferences:
26.53 ms | 404 KiB | 5 Q