3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { const c = D::c; public $x = D::c } $a = new A; class D { const c = 42; } print_r($a);
Output for 5.3.0 - 5.5.3
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/TEVgv on line 6
Process exited with code 255.