3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function say() { return "Lava"; } // public function die() // { // return "Muthu"; // } } class c extends A { public function do() { if(a::say()){ echo "test"; } } }
based on iir6p
Output for 7.0.0 - 7.3.0beta1
Output for 5.6.0 - 5.6.24
Parse error: syntax error, unexpected 'do' (T_DO), expecting identifier (T_STRING) in /in/cqENL on line 18
Process exited with code 255.