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/KEqKj
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
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     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
    6     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
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   10    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.74 ms | 1395 KiB | 15 Q