3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2); $b = array(11,22); foreach ($a as &$r) { echo $r.'<br>'; } unset($r); foreach ($b as $r) { echo $r.'<br>'; } echo $a[1];
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
2 jumps found. (Code = 126) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/aUtA0
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2      > FE_RESET_RW                                      $5      !0, ->7
          3    > > FE_FETCH_RW                                              $5, !2, ->7
    6     4    >   CONCAT                                           ~6      !2, '%3Cbr%3E'
          5        ECHO                                                     ~6
    5     6      > JMP                                                      ->3
          7    >   FE_FREE                                                  $5
    8     8        UNSET_CV                                                 !2
    9     9      > FE_RESET_R                                       $7      !1, ->14
         10    > > FE_FETCH_R                                               $7, !2, ->14
   10    11    >   CONCAT                                           ~8      !2, '%3Cbr%3E'
         12        ECHO                                                     ~8
    9    13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $7
   13    15        FETCH_DIM_R                                      ~9      !0, 1
         16        ECHO                                                     ~9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.75 ms | 1394 KiB | 13 Q