3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = []; define('SOME_CONSTANT', 'bar'); $foo⦋SOME_CONSTANT⦌ = 123; var_dump($foo[SOME_CONSTANT]);
based on F1eBK