3v4l.org

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