3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = []; for ($x = 0; $x < 2; ++$x) { if (!$x) { $a["color"]["price"] = "25"; } else { $a["color"]["price"] .= "5"; } } var_export($a);
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 = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/YkOCq
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, 0
          2      > JMP                                                          ->13
    5     3    >   BOOL_NOT                                             ~4      !1
          4      > JMPZ                                                         ~4, ->9
    6     5    >   FETCH_DIM_W                                          $5      !0, 'color'
          6        ASSIGN_DIM                                                   $5, 'price'
          7        OP_DATA                                                      '25'
    5     8      > JMP                                                          ->12
    8     9    >   FETCH_DIM_RW                                         $7      !0, 'color'
         10        ASSIGN_DIM_OP                    .=               8          $7, 'price'
         11        OP_DATA                                                      '5'
    4    12    >   PRE_INC                                                      !1
         13    >   IS_SMALLER                                                   !1, 2
         14      > JMPNZ                                                        ~10, ->3
   11    15    >   INIT_FCALL                                                   'var_export'
         16        SEND_VAR                                                     !0
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.24 ms | 2113 KiB | 14 Q