3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_ = serialize($GLOBALS); $_G = deserialize($GLOBALS); echo serialize($_G) . "\n\n"; echo serialize($GLOBALS);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zaf5v
function name:  (null)
number of ops:  22
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_BY_NAME                                       'deserialize'
          6        CHECK_FUNC_ARG                                           
          7        FETCH_FUNC_ARG               global              $5      'GLOBALS'
          8        SEND_FUNC_ARG                                            $5
          9        DO_FCALL                                      0  $6      
         10        ASSIGN                                                   !1, $6
    9    11        INIT_FCALL                                               'serialize'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14        CONCAT                                           ~9      $8, '%0A%0A'
         15        ECHO                                                     ~9
   10    16        INIT_FCALL                                               'serialize'
         17        FETCH_R                      global              ~10     'GLOBALS'
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                         $11     
         20        ECHO                                                     $11
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.42 ms | 1395 KiB | 15 Q