3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/N4FYH
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $elem
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 2
          1        OP_DATA                                                  2
    3     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  1
    4     4        ASSIGN_DIM                                               !0, 0
          5        OP_DATA                                                  0
    5     6      > FE_RESET_R                                       $5      !0, ->12
          7    > > FE_FETCH_R                                               $5, !1, ->12
          8    >   NOP                                                      
          9        FAST_CONCAT                                      ~6      !1, '+'
         10        ECHO                                                     ~6
         11      > JMP                                                      ->7
         12    >   FE_FREE                                                  $5
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.45 ms | 1393 KiB | 13 Q