3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(10); $array[5] = &$array[0]; $b = $array; unset($array[0]); $c = $array; ++$array[5]; var_dump($b, $c); var_dump(array_values($c));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dr8r9
function name:  (null)
number of ops:  21
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, 5
          4        ASSIGN_REF                                               $4, $6
    4     5        ASSIGN                                                   !1, !0
    5     6        UNSET_DIM                                                !0, 0
    6     7        ASSIGN                                                   !2, !0
    7     8        FETCH_DIM_RW                                     $10     !0, 5
          9        PRE_INC                                                  $10
    9    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'array_values'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $13     
         18        SEND_VAR                                                 $13
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.14 ms | 1395 KiB | 17 Q