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 />";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gag5U
function name:  (null)
number of ops:  19
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                                                 
    4     2        INIT_FCALL                                               'session_id'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    6     5        INIT_FCALL                                               'session_regenerate_id'
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'session_id'
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
   10    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
   11    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
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.43 ms | 1394 KiB | 19 Q