3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.18 ms | 1394 KiB | 15 Q