3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { const FOO = array('s'); }
Output for 5.6.8 - 5.6.28, 7.0.0 - 7.1.0
Output for 5.3.0 - 5.5.35, hhvm-3.10.0 - 3.12.0
Fatal error: Arrays are not allowed in class constants in /in/simV6 on line 3
Process exited with code 255.