3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Enum { public function __callStatic($name) { var_dump($name); return 1; } } var_dump(Enum::ciao());
based on b5vbL
Output for 7.0.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.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Method Enum::__callStatic() must take exactly 2 arguments in /in/58ClI:5 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
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 8
Process exited with code 255.