3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $old_sessionid = session_id(); // Set destroyed timestamp $_SESSION['destroyed'] = time(); // Since PHP 7.0.0 and up, session_regenerate_id() saves old session data // Simply calling session_regenerate_id() may result in lost session, etc. // See next example. session_regenerate_id(); print_r($_SESSION);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/brlJo
function name:  (null)
number of ops:  17
compiled vars:  !0 = $old_sessionid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    5     2        INIT_FCALL                                               'session_id'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    8     5        INIT_FCALL                                               'time'
          6        DO_ICALL                                         $6      
          7        FETCH_W                      global              $4      '_SESSION'
          8        ASSIGN_DIM                                               $4, 'destroyed'
          9        OP_DATA                                                  $6
   12    10        INIT_FCALL                                               'session_regenerate_id'
         11        DO_ICALL                                                 
   15    12        INIT_FCALL                                               'print_r'
         13        FETCH_R                      global              ~8      '_SESSION'
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.05 ms | 1394 KiB | 23 Q