3v4l.org

run code in 500+ PHP versions simultaneously
<?php /* * This is an array with some data we want to modify * when running through the for loop. */ for($i=0; $i<2; $i++){ $array[] = array( 'NAME' => 'name'.$i, 'NUMBER' => 'peserta'.$i, ); } return $array; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
Branch analysis from position: 2
filename:       /in/dDGiL
function name:  (null)
number of ops:  13
compiled vars:  !0 = $i, !1 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                       !0, 0
          1      > JMP                                                          ->9
    8     2    >   CONCAT                                               ~4      'name', !0
          3        INIT_ARRAY                                           ~5      ~4, 'NAME'
    9     4        CONCAT                                               ~6      'peserta', !0
          5        ADD_ARRAY_ELEMENT                                    ~5      ~6, 'NUMBER'
    7     6        ASSIGN_DIM                                                   !1
    9     7        OP_DATA                                                      ~5
    6     8        PRE_INC                                                      !0
          9    >   IS_SMALLER                                                   !0, 2
         10      > JMPNZ                                                        ~8, ->2
   12    11    > > RETURN                                                       !1
   13    12*     > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.59 ms | 2087 KiB | 13 Q