3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class b { const CV = 'b'; function f() { echo self:CV; } } class p { const CV = 'p'; } $p = new p; $p->f();
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected ':', expecting ',' or ';' in /in/ITvip on line 6
Process exited with code 255.