3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Person { public function say() { echo "Here are my thoughts!"; } } class Blogger extends Person { const cats = 50; } Blogger::say(); ?>
based on u9MBQ
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method Person::say() should not be called statically in /in/m3YI6 on line 14 Here are my thoughts!
Output for 5.3.18 - 5.6.28
Strict Standards: Non-static method Person::say() should not be called statically in /in/m3YI6 on line 14 Here are my thoughts!