3v4l.org

run code in 300+ PHP versions simultaneously
<?php $connection_options= []; $connection_options['init_commands']['sql_mode'] = "SET sql_mode = 'BLAH'"; $connection_options += array( 'init_commands' => array(), ); $connection_options['init_commands'] += array( 'sql_mode' => "SET sql_mode = 'REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,STRICT_TRANS_TABLE,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER'", ); var_dump($connection_options);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8h9vH
function name:  (null)
number of ops:  11
compiled vars:  !0 = $connection_options
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_DIM_W                                      $2      !0, 'init_commands'
          2        ASSIGN_DIM                                               $2, 'sql_mode'
          3        OP_DATA                                                  'SET+sql_mode+%3D+%27BLAH%27'
    7     4        ASSIGN_OP                                     1          !0, <array>
   10     5        ASSIGN_DIM_OP                +=               1          !0, 'init_commands'
   11     6        OP_DATA                                                  <array>
   14     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.92 ms | 1009 KiB | 14 Q