3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class AAA { public function go() { echo 'WORKS!'; } } $a = 'AAA'; use AAA as Eclass; class BBB extends EClass { } BBB::go();
Output for 7.0.0 - 7.3.0
Deprecated: Non-static method AAA::go() should not be called statically in /in/3kZr7 on line 15 WORKS!
Output for hhvm-3.15.4 - 3.22.0
WORKS!
Output for 5.6.0 - 5.6.38
Strict Standards: Non-static method AAA::go() should not be called statically in /in/3kZr7 on line 15 WORKS!