3v4l.org

run code in 300+ PHP versions simultaneously
<?php $old_sessionid = session_id(); session_regenerate_id(); $new_sessionid = session_id(); echo "Old Session: $old_sessionid<br />"; echo "New Session: $new_sessionid<br />"; print_r($_SESSION);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IULU5
function name:  (null)
number of ops:  21
compiled vars:  !0 = $old_sessionid, !1 = $new_sessionid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_id'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    3     3        INIT_FCALL                                               'session_regenerate_id'
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'session_id'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        ROPE_INIT                                     3  ~8      'Old+Session%3A+'
          9        ROPE_ADD                                      1  ~8      ~8, !0
         10        ROPE_END                                      2  ~7      ~8, '%3Cbr+%2F%3E'
         11        ECHO                                                     ~7
    6    12        ROPE_INIT                                     3  ~11     'New+Session%3A+'
         13        ROPE_ADD                                      1  ~11     ~11, !1
         14        ROPE_END                                      2  ~10     ~11, '%3Cbr+%2F%3E'
         15        ECHO                                                     ~10
    7    16        INIT_FCALL                                               'print_r'
         17        FETCH_R                      global              ~13     '_SESSION'
         18        SEND_VAL                                                 ~13
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.29 ms | 1399 KiB | 19 Q