3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = []; $arr[2] = 2; $arr[1] = 1; $arr[0] = 0; foreach ($arr as $elem) { echo "$elem "; } // prints "2 1 0" !!
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/DUtlu
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $elem
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 2
          2        OP_DATA                                                  2
    4     3        ASSIGN_DIM                                               !0, 1
          4        OP_DATA                                                  1
    5     5        ASSIGN_DIM                                               !0, 0
          6        OP_DATA                                                  0
    6     7      > FE_RESET_R                                       $6      !0, ->13
          8    > > FE_FETCH_R                                               $6, !1, ->13
          9    >   NOP                                                      
         10        FAST_CONCAT                                      ~7      !1, '+'
         11        ECHO                                                     ~7
         12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $6
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.36 ms | 1393 KiB | 13 Q