3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.7 ms | 1395 KiB | 17 Q