3v4l.org

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