3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [1,2,3]; $arr2 = $arr1; debug_zval_dump($arr2); key($arr2); debug_zval_dump($arr2); unset($arr1); unset($arr2); $arr1 = [1,2,3]; $arr2 = $arr1; debug_zval_dump($arr2); end($arr2); debug_zval_dump($arr2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qieJ4
function name:  (null)
number of ops:  25
compiled vars:  !0 = $arr1, !1 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, !0
    5     2        INIT_FCALL                                               'debug_zval_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'key'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'debug_zval_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    9    11        UNSET_CV                                                 !0
   10    12        UNSET_CV                                                 !1
   12    13        ASSIGN                                                   !0, <array>
   13    14        ASSIGN                                                   !1, !0
   15    15        INIT_FCALL                                               'debug_zval_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   16    18        INIT_FCALL                                               'end'
         19        SEND_REF                                                 !1
         20        DO_ICALL                                                 
   17    21        INIT_FCALL                                               'debug_zval_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.75 ms | 1386 KiB | 19 Q