3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = [0, 1, 2]; $y = $x; $y[] = 3; var_dump(cur($x), cur($y));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2WHDH
function name:  (null)
number of ops:  15
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, !0
    5     2        ASSIGN_DIM                                               !1
          3        OP_DATA                                                  3
    7     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL_BY_NAME                                       'cur'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $5      
          8        SEND_VAR                                                 $5
          9        INIT_FCALL_BY_NAME                                       'cur'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0  $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.58 ms | 1394 KiB | 15 Q