3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { public static function bar() { echo "baz"; } public function baz() { echo "butz!"; } } $inst = new foo(); $inst->bar(); $inst->baz(); foo::bar(); foo::baz();
based on 9vWAB
Output for 7.0.0 - 7.2.0
bazbutz!baz Deprecated: Non-static method foo::baz() should not be called statically in /in/NPtoH on line 21 butz!
Output for 5.3.20 - 5.6.28
bazbutz!baz Strict Standards: Non-static method foo::baz() should not be called statically in /in/NPtoH on line 21 butz!