3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); class A { function B() { die('aa'); } static function C() { var_dump($this); } function __destruct() { echo '<br />Well, you have done!!<br />'; die('xx'); } } A::B();
based on YHgek
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method A::B() should not be called statically in /in/2UojT on line 17 aa
Output for 5.3.20 - 5.6.28
Strict Standards: Non-static method A::B() should not be called statically in /in/2UojT on line 17 aa