3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=62476 $a = array(); for ($d=55; $d<65; $d++) { $a[$d] = $d; } foreach($a as $b => $c){ echo "\$a[$b] == $c\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
Branch analysis from position: 3
filename:       /in/QWiB2
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $d, !2 = $c, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 55
          2      > JMP                                                      ->6
    6     3    >   ASSIGN_DIM                                               !0, !1
          4        OP_DATA                                                  !1
    4     5        PRE_INC                                                  !1
          6    >   IS_SMALLER                                               !1, 65
          7      > JMPNZ                                                    ~8, ->3
    8     8    > > FE_RESET_R                                       $9      !0, ->18
          9    > > FE_FETCH_R                                       ~10     $9, !2, ->18
         10    >   ASSIGN                                                   !3, ~10
    9    11        ROPE_INIT                                     5  ~13     '%24a%5B'
         12        ROPE_ADD                                      1  ~13     ~13, !3
         13        ROPE_ADD                                      2  ~13     ~13, '%5D+%3D%3D+'
         14        ROPE_ADD                                      3  ~13     ~13, !2
         15        ROPE_END                                      4  ~12     ~13, '%0A'
         16        ECHO                                                     ~12
    8    17      > JMP                                                      ->9
         18    >   FE_FREE                                                  $9
   10    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.48 ms | 1394 KiB | 13 Q