3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array("a"=>1, "b"=>2, "c"=>3); $arr2 = array("x"=>4, "y"=>5, "z"=>6); foreach($arr1 as $key => &$val) {} foreach($arr2 as $key => $val) {} var_dump($arr1); var_dump($arr2);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 126) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/OBTTJ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $val, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2      > FE_RESET_RW                                      $6      !0, ->6
          3    > > FE_FETCH_RW                                      ~7      $6, !2, ->6
          4    >   ASSIGN                                                   !3, ~7
          5      > JMP                                                      ->3
          6    >   FE_FREE                                                  $6
    7     7      > FE_RESET_R                                       $9      !1, ->11
          8    > > FE_FETCH_R                                       ~10     $9, !2, ->11
          9    >   ASSIGN                                                   !3, ~10
         10      > JMP                                                      ->8
         11    >   FE_FREE                                                  $9
    9    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.2 ms | 1387 KiB | 15 Q