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 + $c + $b; print_r($options);
based on nAfUU
Output for 4.3.0 - 7.1.0
Array ( [0] => 0A [1] => 1A [3] => 3C [2] => 2C [4] => 4B )