3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hello[0]["y:1"] = "v:a"; $hello[0]["y:2"] = "v:b"; for($i=0;$i<count($hello[0]);$i++) { echo $hello[0]["y:1".$i]; echo $hello[0]["y:".$i]; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
Branch analysis from position: 8
filename:       /in/D53KF
function name:  (null)
number of ops:  22
compiled vars:  !0 = $hello, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $2      !0, 0
          1        ASSIGN_DIM                                               $2, 'y%3A1'
          2        OP_DATA                                                  'v%3Aa'
    4     3        FETCH_DIM_W                                      $4      !0, 0
          4        ASSIGN_DIM                                               $4, 'y%3A2'
          5        OP_DATA                                                  'v%3Ab'
    7     6        ASSIGN                                                   !1, 0
          7      > JMP                                                      ->17
    9     8    >   CONCAT                                           ~8      'y%3A1', !1
          9        FETCH_DIM_R                                      ~7      !0, 0
         10        FETCH_DIM_R                                      ~9      ~7, ~8
         11        ECHO                                                     ~9
   10    12        CONCAT                                           ~11     'y%3A', !1
         13        FETCH_DIM_R                                      ~10     !0, 0
         14        FETCH_DIM_R                                      ~12     ~10, ~11
         15        ECHO                                                     ~12
    7    16        PRE_INC                                                  !1
         17    >   FETCH_DIM_R                                      ~14     !0, 0
         18        COUNT                                            ~15     ~14
         19        IS_SMALLER                                               !1, ~15
         20      > JMPNZ                                                    ~16, ->8
   11    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.12 ms | 1393 KiB | 13 Q