3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr1 = ["one","two","three",1,2,3]; $arr2 = ["two","four","five",2,4,5]; $result = array_merge($arr1, $arr2); print_r(array_unique($result));
based on Jchs8
Output for 5.4.12 - 7.2.6
Array ( [0] => one [1] => two [2] => three [3] => 1 [4] => 2 [5] => 3 [7] => four [8] => five [10] => 4 [11] => 5 )
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/8n8ng on line 3
Process exited with code 255.