3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { const FOO = array(1,2,3); public function bar() { //unset(self::FOO[0]); } }
based on ceKYW
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Output for hhvm-3.12.14 - 3.17.3
Fatal error: Uncaught Error: Arrays are not allowed in class constants in /in/or7S5:3 Stack trace: #0 {main}
Process exited with code 255.