3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.18 ms | 1395 KiB | 15 Q