3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function b() { echo '1'; } public static function foo() { static::b(); } } $test = new Test(); $test->foo();
based on gqNMM
Output for 7.0.0 - 7.3.0beta1
Deprecated: Non-static method Test::b() should not be called statically in /in/1IhEC on line 12 1
Output for hhvm-3.18.5 - 3.22.0
1
Output for 5.6.0 - 5.6.30
Strict Standards: Non-static method Test::b() should not be called statically in /in/1IhEC on line 12 1