3v4l.org

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

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

End of function s

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.21 ms | 1008 KiB | 16 Q