3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { const X = [1,2,3,4]; }
based on oeqmm
Output for 5.6.7 - 7.2.0
Output for 5.4.0 - 5.5.35
Fatal error: Arrays are not allowed in class constants in /in/Hjm06 on line 5
Process exited with code 255.