3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array(1, 2, 3, 4, 5); $arr2 = array('a', 'b', 'c', 'd'); foreach($arr1 AS $key=>$val) { echo "$key => $val \r\n"; if( $val === 5) { $new = &$arr1; $new = $arr2; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/Yel6d
function name:  (null)
number of ops:  17
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $val, !3 = $key, !4 = $new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2      > FE_RESET_R                                       $7      !0, ->15
          3    > > FE_FETCH_R                                       ~8      $7, !2, ->15
          4    >   ASSIGN                                                   !3, ~8
    7     5        ROPE_INIT                                     4  ~11     !3
          6        ROPE_ADD                                      1  ~11     ~11, '+%3D%3E+'
          7        ROPE_ADD                                      2  ~11     ~11, !2
          8        ROPE_END                                      3  ~10     ~11, '+%0D%0A'
          9        ECHO                                                     ~10
    8    10        IS_IDENTICAL                                             !2, 5
         11      > JMPZ                                                     ~13, ->14
    9    12    >   ASSIGN_REF                                               !4, !0
   10    13        ASSIGN                                                   !4, !1
    6    14    > > JMP                                                      ->3
         15    >   FE_FREE                                                  $7
   12    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.64 ms | 1394 KiB | 13 Q