3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { const A = ['b' => 1, 'c' => 2]; }
Output for 5.6.8 - 7.2.6
Output for 5.4.0 - 5.5.35
Fatal error: Arrays are not allowed in class constants in /in/SekD9 on line 5
Process exited with code 255.