3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Enum { public function __callStatic($name) { var_dump($name); return 1; } } var_dump(Enum::ciao());
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Warning: The magic method __callStatic() must have public visibility and be static in /in/58ClI on line 5 Fatal error: Method Enum::__callStatic() must take exactly 2 arguments in /in/58ClI on line 7
Process exited with code 255.

preferences:
176.02 ms | 1395 KiB | 36 Q