3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { function bar(){ echo 'Bar called'; } function __callStatic($a) { echo 'CS: '.$a; } } Foo::bar();
based on 88IFW
Output for 7.0.0
Warning: The magic method __callStatic() must have public visibility and be static in /in/WeqWj on line 9 Fatal error: Method Foo::__callStatic() must take exactly 2 arguments in /in/WeqWj on line 10
Process exited with code 255.
Output for 5.3.20 - 5.6.16
Warning: The magic method __callStatic() must have public visibility and be static in /in/WeqWj on line 9 Fatal error: Method Foo::__callstatic() must take exactly 2 arguments in /in/WeqWj on line 11
Process exited with code 255.