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/nqtpq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $m, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    4     1        FETCH_W                      global              $3      'GLOBALS'
          2        ASSIGN                                                   $3, <array>
    5     3        FETCH_W                      global              $5      'GLOBALS'
          4        ASSIGN_DIM                                               $5, 'm'
          5        OP_DATA                                                  2
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    7     9        PRE_INC                                                  !0
    9    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.42 ms | 1394 KiB | 15 Q