3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $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/pgWPF
function name:  (null)
number of ops:  23
compiled vars:  !0 = $old_sessionid, !1 = $new_sessionid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    3     2        INIT_FCALL                                               'session_id'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        INIT_FCALL                                               'session_regenerate_id'
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'session_id'
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    6    10        ROPE_INIT                                     3  ~9      'Old+Session%3A+'
         11        ROPE_ADD                                      1  ~9      ~9, !0
         12        ROPE_END                                      2  ~8      ~9, '%3Cbr+%2F%3E'
         13        ECHO                                                     ~8
    7    14        ROPE_INIT                                     3  ~12     'New+Session%3A+'
         15        ROPE_ADD                                      1  ~12     ~12, !1
         16        ROPE_END                                      2  ~11     ~12, '%3Cbr+%2F%3E'
         17        ECHO                                                     ~11
    8    18        INIT_FCALL                                               'print_r'
         19        FETCH_R                      global              ~14     '_SESSION'
         20        SEND_VAL                                                 ~14
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.93 ms | 1395 KiB | 21 Q