3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_ = serialize($GLOBALS); $_G = unserialize($_); echo serialize($_G["GLOBALS"]) . "\n\n"; echo serialize($GLOBALS);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UGLGg
function name:  (null)
number of ops:  21
compiled vars:  !0 = $_, !1 = $_G
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'serialize'
          1        FETCH_R                      global              ~2      'GLOBALS'
          2        SEND_VAL                                                 ~2
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    5     5        INIT_FCALL                                               'unserialize'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    9     9        INIT_FCALL                                               'serialize'
         10        FETCH_DIM_R                                      ~7      !1, 'GLOBALS'
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                         $8      
         13        CONCAT                                           ~9      $8, '%0A%0A'
         14        ECHO                                                     ~9
   10    15        INIT_FCALL                                               'serialize'
         16        FETCH_R                      global              ~10     'GLOBALS'
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                         $11     
         19        ECHO                                                     $11
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.96 ms | 1395 KiB | 17 Q