3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class MyClass { function __invokeStatic() { echo "Dear God, why would you do this\n"; } } function MyClass() { MyClass::__invokeStatic(); } MyClass();
based on DRM60
Output for 7.0.0 - 7.1.0
Deprecated: Non-static method MyClass::__invokeStatic() should not be called statically in /in/fnLcU on line 13 Dear God, why would you do this
Output for 4.3.0 - 4.4.9, hhvm-3.12.0
Dear God, why would you do this
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.6.28
Strict Standards: Non-static method MyClass::__invokeStatic() should not be called statically in /in/fnLcU on line 13 Dear God, why would you do this