3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=$GLOBALS; $b=$a; $b["x"]=0; $c=$b; $b["x"]=1; echo gettype($b), $c["x"];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I8mFY
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_R                      global              ~3      'GLOBALS'
          1        ASSIGN                                                   !0, ~3
          2        ASSIGN                                                   !1, !0
          3        ASSIGN_DIM                                               !1, 'x'
          4        OP_DATA                                                  0
          5        ASSIGN                                                   !2, !1
          6        ASSIGN_DIM                                               !1, 'x'
          7        OP_DATA                                                  1
          8        GET_TYPE                                         ~9      !1
          9        ECHO                                                     ~9
         10        FETCH_DIM_R                                      ~10     !2, 'x'
         11        ECHO                                                     ~10
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.97 ms | 1384 KiB | 13 Q