3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { const TEST_VAL = uniqid(); public function __construct() { echo "hello!"; } } $a = new A();
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '(', expecting ',' or ';' in /in/gjVCv on line 5
Process exited with code 255.