3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "1,5"; $base = array('1'=>'Bread','5'=>'Butter'); $replacements = array_values( array_merge( array_flip( explode(',', $str)), $base));
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Output for hhvm-3.10.0

Process exited with code 153.