3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $petsounds = array("cat" => "meow", "dog" => "woof", "snake" => "hiss"); $petsounds{'mouse'} = "squeak"; var_dump($petsounds);
based on 5ScEc
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(4) { ["cat"]=> string(4) "meow" ["dog"]=> string(4) "woof" ["snake"]=> string(4) "hiss" ["mouse"]=> string(6) "squeak" }
Output for hhvm-3.10.0

Process exited with code 153.