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 ]; array_push($input_array, $data); } print_r($input_array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/CImYY
function name:  (null)
number of ops:  18
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                                                      ->12
    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_push'
          8        SEND_REF                                                 !0
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
    4    11        PRE_INC                                                  !1
         12    >   IS_SMALLER_OR_EQUAL                                      !1, 6
         13      > JMPNZ                                                    ~11, ->3
   11    14    >   INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   12    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.27 ms | 1005 KiB | 15 Q