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(); var_dump($orig,$new);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jg1cR
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        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.48 ms | 1394 KiB | 23 Q