3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ${'petsound'}["cat"] = "meow"; var_dump($petsound); $petsound{"dog"} = bark; var_dump($petsound);
based on 36UEV
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(1) { ["cat"]=> string(4) "meow" } Notice: Use of undefined constant bark - assumed 'bark' in /in/R4oLi on line 5 array(2) { ["cat"]=> string(4) "meow" ["dog"]=> string(4) "bark" }
Output for hhvm-3.10.0

Process exited with code 153.