3v4l.org

run code in 300+ PHP versions simultaneously
<?php ${0xFF} = 'Hello Peter'; // $GLOBALS['255'] ${2 + 2} = 'Hello Peter'; // $GLOBALS['4'] ${'_SESSION'} = 'test'; // $GLOBALS['Hello Peter'] ${'_SERVER'} = 'test'; // $GLOBALS['Hello Peter'] var_dump($GLOBALS, $_SESSION);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/29LQJ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $255
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+Peter'
    4     1        FETCH_W                      local               $2      '4'
          2        ASSIGN                                                   $2, 'Hello+Peter'
    5     3        FETCH_W                      global              $4      '_SESSION'
          4        ASSIGN                                                   $4, 'test'
    6     5        FETCH_W                      global              $6      '_SERVER'
          6        ASSIGN                                                   $6, 'test'
    8     7        INIT_FCALL                                               'var_dump'
          8        FETCH_R                      global              ~8      'GLOBALS'
          9        SEND_VAL                                                 ~8
         10        FETCH_R                      global              ~9      '_SESSION'
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.01 ms | 1394 KiB | 15 Q