3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(10); $array[10] = &$array[0]; $b = $array; unset($array[0]); $c = $array; var_dump($b, $c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/COt6J
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_W                                      $5      !0, 0
          2        MAKE_REF                                         $6      $5
          3        FETCH_DIM_W                                      $4      !0, 10
          4        ASSIGN_REF                                               $4, $6
    4     5        ASSIGN                                                   !1, !0
    5     6        UNSET_DIM                                                !0, 0
    6     7        ASSIGN                                                   !2, !0
    8     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.08 ms | 1394 KiB | 15 Q