3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?phpclass C { const ONE = 1; public $array = [ self::ONE => 'foo', 'bar', 'quux', ];}var_dump((new C)->array);
Output for 5.4.0 - 5.4.32
<?phpclass C { const ONE = 1; public $array = [ self::ONE => 'foo', 'bar', 'quux', ];}var_dump((new C)->array);