3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { const MY_CONSTANT = 'FUCKER'; public function __construct() { MY_CONSTANT = 'why'; var_dump(MY_CONSTANT); } }
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected '=' in /in/sXW6i on line 6
Process exited with code 255.