3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3); $b = &$a; print_r($a); print_r($b); foreach($a as $v) { echo "$v\n"; unset($a[1]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/VaUGO
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_REF                                               !1, !0
    4     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    6     8      > FE_RESET_R                                       $7      !0, ->15
          9    > > FE_FETCH_R                                               $7, !2, ->15
    7    10    >   NOP                                                      
         11        FAST_CONCAT                                      ~8      !2, '%0A'
         12        ECHO                                                     ~8
    8    13        UNSET_DIM                                                !0, 1
    6    14      > JMP                                                      ->9
         15    >   FE_FREE                                                  $7
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.93 ms | 1395 KiB | 15 Q