3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.55 ms | 1394 KiB | 21 Q