3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(array('test') + array('ast', 'bad', 'zest', 'demo')); print_r(array_merge(array('test'), array('ast', 'bad', 'zest', 'demo')));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => test [1] => bad [2] => zest [3] => demo ) Array ( [0] => test [1] => ast [2] => bad [3] => zest [4] => demo )