3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class t { const A = 1; function __construct() { var_dump(isset(self::A)); } } $t = new $t;
Output for 5.3.0 - 5.4.18
Parse error: syntax error, unexpected ')', expecting '(' in /in/cXR1P on line 6
Process exited with code 255.