3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [1,2,5]; $b = 3; $a = array_merge($a,(array)$b); var_dump($a);
Output for 7.3.0rc3
array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(5) [3]=> int(3) }