3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_array = array("success"=>true ,'ab' => 2,'def' => 1); for ($i = 0; $i <= 6;$i++) { $data = [ 'lg_' . $i => 'LG: T-' . $i ]; $input_array = array_merge($input_array, $data); } print_r($input_array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/R57v6
function name:  (null)
number of ops:  19
compiled vars:  !0 = $input_array, !1 = $i, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->13
    6     3    >   CONCAT                                           ~5      'lg_', !1
          4        CONCAT                                           ~6      'LG%3A+T-', !1
          5        INIT_ARRAY                                       ~7      ~6, ~5
    5     6        ASSIGN                                                   !2, ~7
    8     7        INIT_FCALL                                               'array_merge'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !0, $9
    4    12        PRE_INC                                                  !1
         13    >   IS_SMALLER_OR_EQUAL                                      !1, 6
         14      > JMPNZ                                                    ~12, ->3
   11    15    >   INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
   12    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.29 ms | 1011 KiB | 15 Q