3v4l.org

run code in 300+ PHP versions simultaneously
<?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.4.0 - 5.4.28
Parse error: syntax error, unexpected ''type'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/QdR6s on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/QdR6s on line 7
Process exited with code 255.

preferences:
174.4 ms | 1386 KiB | 65 Q