3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "lorem Ipsum dolor sit Amet"; $array1=array([0]=>"abc"); $array2=array([0]=>"def"); $array3=merge_array($array1,$array2); echo $array3; ?>
Output for 7.0.0 - 7.1.7
Fatal error: Illegal offset type in /in/QUYhE on line 3
Process exited with code 255.
Output for hhvm-3.15.4
lorem Ipsum dolor sit Amet Warning: Invalid operand type was used: Invalid type used as key in /in/QUYhE on line 3 Warning: Invalid operand type was used: Invalid type used as key in /in/QUYhE on line 4 Fatal error: Uncaught Error: Call to undefined function merge_array() in /in/QUYhE:5 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
lorem Ipsum dolor sit Amet Warning: Illegal offset type in /in/QUYhE on line 3 Warning: Illegal offset type in /in/QUYhE on line 4 Fatal error: Call to undefined function merge_array() in /in/QUYhE on line 5
Process exited with code 255.