3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($name) { $_SESSION[$name] = $$name; } a('a'); $a = 'abc'; echo $_SESSION['a'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pvsZs
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'a'
          1        SEND_VAL                                                 'a'
          2        DO_FCALL                                      0          
   10     3        ASSIGN                                                   !0, 'abc'
   12     4        FETCH_R                      global              ~3      '_SESSION'
          5        FETCH_DIM_R                                      ~4      ~3, 'a'
          6        ECHO                                                     ~4
          7      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pvsZs
function name:  a
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        FETCH_R                      local               ~3      !0
          2        FETCH_W                      global              $1      '_SESSION'
          3        ASSIGN_DIM                                               $1, !0
          4        OP_DATA                                                  ~3
    6     5      > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.77 ms | 1401 KiB | 14 Q