3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr1=array("1","5","4"); $new_array=array_merge($new_array,$arr1); $arr2=array("2","6","3"); $new_array=array_merge($new_array,$arr2); pr($new_array);exit;
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: new_array in /in/q4fU2 on line 5 Warning: array_merge(): Argument #1 is not an array in /in/q4fU2 on line 5 Warning: array_merge(): Argument #1 is not an array in /in/q4fU2 on line 9 Fatal error: Uncaught Error: Call to undefined function pr() in /in/q4fU2:11 Stack trace: #0 {main} thrown in /in/q4fU2 on line 11
Process exited with code 255.
Output for 5.0.4 - 5.6.28
Notice: Undefined variable: new_array in /in/q4fU2 on line 5 Warning: array_merge(): Argument #1 is not an array in /in/q4fU2 on line 5 Warning: array_merge(): Argument #1 is not an array in /in/q4fU2 on line 9 Fatal error: Call to undefined function pr() in /in/q4fU2 on line 11
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: new_array in /in/q4fU2 on line 5 Warning: array_merge(): Argument #1 is not an array in /in/q4fU2 on line 5 Warning: array_merge(): Argument #1 is not an array in /in/q4fU2 on line 9 Fatal error: Call to undefined function pr() in /in/q4fU2 on line 11
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: new_array in /in/q4fU2 on line 5 Fatal error: Call to undefined function: pr() in /in/q4fU2 on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined variable: new_array in /in/q4fU2 on line 5 Fatal error: Call to undefined function: pr() in /in/q4fU2 on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: new_array in /in/q4fU2 on line 5 Fatal error: Call to undefined function: pr() in /in/q4fU2 on line 11