3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.82 ms | 1394 KiB | 17 Q