3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(101, 102, 103); $b = array(102, 100); $res = array_unique(array_merge($a, $b)); var_dump($res); var_dump(array_explode(",", $res));
based on mtg7u
Output for 7.0.0 - 7.3.0rc3
array(4) { [0]=> int(101) [1]=> int(102) [2]=> int(103) [4]=> int(100) } Fatal error: Uncaught Error: Call to undefined function array_explode() in /in/LsbXQ:8 Stack trace: #0 {main} thrown in /in/LsbXQ on line 8
Process exited with code 255.
Output for hhvm-3.15.4
array(4) { [0]=> int(101) [1]=> int(102) [2]=> int(103) [4]=> int(100) } Fatal error: Uncaught Error: Call to undefined function array_explode() in /in/LsbXQ:8 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
array(4) { [0]=> int(101) [1]=> int(102) [2]=> int(103) [4]=> int(100) } Fatal error: Call to undefined function array_explode() in /in/LsbXQ on line 8
Process exited with code 255.