3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pricingSlot['0']['type'] = 'he'; $pricingSlot['0']['max'] = '5'; $pricingSlot['0']['min'] = '1'; $pricingSlot['1']['type'] = 'she'; $pricingSlot['1']['max'] = '15'; $pricingSlot['1']['min'] = '2'; print_r($pricingSlot); $pricingSlot[0][type] = 'he'; $pricingSlot[0][max] = '5'; $pricingSlot[0][min] = '1'; $pricingSlot[1][type] = 'she'; $pricingSlot[1][max] = '15'; $pricingSlot[1][min] = '2'; print_r($pricingSlot); foreach($pricingSlot as $key => $value) { echo 'key = '.$key; echo '<br>'; echo 'value = '.$value; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 49, Position 2 = 57
Branch analysis from position: 49
2 jumps found. (Code = 78) Position 1 = 50, Position 2 = 57
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
Branch analysis from position: 57
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
filename:       /in/1fnmp
function name:  (null)
number of ops:  59
compiled vars:  !0 = $pricingSlot, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $3      !0, 0
          1        ASSIGN_DIM                                               $3, 'type'
          2        OP_DATA                                                  'he'
    4     3        FETCH_DIM_W                                      $5      !0, 0
          4        ASSIGN_DIM                                               $5, 'max'
          5        OP_DATA                                                  '5'
    5     6        FETCH_DIM_W                                      $7      !0, 0
          7        ASSIGN_DIM                                               $7, 'min'
          8        OP_DATA                                                  '1'
    6     9        FETCH_DIM_W                                      $9      !0, 1
         10        ASSIGN_DIM                                               $9, 'type'
         11        OP_DATA                                                  'she'
    7    12        FETCH_DIM_W                                      $11     !0, 1
         13        ASSIGN_DIM                                               $11, 'max'
         14        OP_DATA                                                  '15'
    8    15        FETCH_DIM_W                                      $13     !0, 1
         16        ASSIGN_DIM                                               $13, 'min'
         17        OP_DATA                                                  '2'
   10    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
   12    21        FETCH_CONSTANT                                   ~17     'type'
         22        FETCH_DIM_W                                      $16     !0, 0
         23        ASSIGN_DIM                                               $16, ~17
         24        OP_DATA                                                  'he'
   13    25        FETCH_CONSTANT                                   ~20     'max'
         26        FETCH_DIM_W                                      $19     !0, 0
         27        ASSIGN_DIM                                               $19, ~20
         28        OP_DATA                                                  '5'
   14    29        FETCH_CONSTANT                                   ~23     'min'
         30        FETCH_DIM_W                                      $22     !0, 0
         31        ASSIGN_DIM                                               $22, ~23
         32        OP_DATA                                                  '1'
   15    33        FETCH_CONSTANT                                   ~26     'type'
         34        FETCH_DIM_W                                      $25     !0, 1
         35        ASSIGN_DIM                                               $25, ~26
         36        OP_DATA                                                  'she'
   16    37        FETCH_CONSTANT                                   ~29     'max'
         38        FETCH_DIM_W                                      $28     !0, 1
         39        ASSIGN_DIM                                               $28, ~29
         40        OP_DATA                                                  '15'
   17    41        FETCH_CONSTANT                                   ~32     'min'
         42        FETCH_DIM_W                                      $31     !0, 1
         43        ASSIGN_DIM                                               $31, ~32
         44        OP_DATA                                                  '2'
   19    45        INIT_FCALL                                               'print_r'
         46        SEND_VAR                                                 !0
         47        DO_ICALL                                                 
   21    48      > FE_RESET_R                                       $35     !0, ->57
         49    > > FE_FETCH_R                                       ~36     $35, !1, ->57
         50    >   ASSIGN                                                   !2, ~36
   22    51        CONCAT                                           ~38     'key+%3D+', !2
         52        ECHO                                                     ~38
   23    53        ECHO                                                     '%3Cbr%3E'
   24    54        CONCAT                                           ~39     'value+%3D+', !1
         55        ECHO                                                     ~39
   21    56      > JMP                                                      ->49
         57    >   FE_FREE                                                  $35
   27    58      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.92 ms | 1400 KiB | 15 Q