3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('green', 'red', 'yellow'); $b = array('avocado', 'apple', 'banana'); $c = array_combine($a, $b); print_r($c); ?>
based on NCJst
Output for 5.5.0 - 5.6.30, hhvm-3.13.2, hhvm-3.17.3, 7.0.0 - 7.2.0
Array ( [green] => avocado [red] => apple [yellow] => banana )
Output for hhvm-3.12.14, hhvm-3.15.4

Process exited with code 137.