3v4l.org

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

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

End of function s

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.85 ms | 1006 KiB | 15 Q