3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array( 'config' => array( 'settings' => array( 'db' => 'a', 'type' => 'mysql' ), 'something' => 'ok', ) ); $y = array( 'config' => array( 'settings' => array( 'db' => 'b' ) ) ); $result = array_merge( $a, $b ); var_dump( $result );
Output for 5.3.0 - 7.1.0
Notice: Undefined variable: a in /in/FZmdp on line 21 Notice: Undefined variable: b in /in/FZmdp on line 21 Warning: array_merge(): Argument #1 is not an array in /in/FZmdp on line 21 NULL
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: a in /in/FZmdp on line 21 Notice: Undefined variable: b in /in/FZmdp on line 21 Warning: array_merge(): Argument #1 is not an array in /in/FZmdp on line 21 Warning: array_merge(): Argument #2 is not an array in /in/FZmdp on line 21 NULL
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: a in /in/FZmdp on line 21 Notice: Undefined variable: b in /in/FZmdp on line 21 Warning: array_merge(): Argument #1 is not an array in /in/FZmdp on line 21 Warning: array_merge(): Argument #2 is not an array in /in/FZmdp on line 21 NULL
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: a in /in/FZmdp on line 21 Notice: Undefined variable: b in /in/FZmdp on line 21 array(0) { }