3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('0' => '0A', '1' => '1A'); $b = array('0' => '0B', '4' => '4B', '2' => '2B'); $c = array('0' => '0C', '3' => '3C', '2' => '2C'); $options = $a + $b + $c; print_r($options);
based on WUI74
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 0A [1] => 1A [4] => 4B [2] => 2B [3] => 3C )