3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class T { public function x(){ return true; } public function y(){ return self::x(); } } var_dump(T::x()); class X { public function x(){ return true; } public function y(){ return self::x(); } } var_dump(X:x());
Output for 5.3.0 - 5.4.20
Parse error: syntax error, unexpected ':' in /in/JVE9W on line 24
Process exited with code 255.