3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $session = &$_SESSION; $session['test'] = 1; session_regenerate_id(false); $session['test'] = 2; // dumps false, should be true var_dump($session['test'] === $_SESSION['test']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PRhdj
function name:  (null)
number of ops:  19
compiled vars:  !0 = $session
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    5     2        FETCH_W                      global              $2      '_SESSION'
          3        ASSIGN_REF                                               !0, $2
    7     4        ASSIGN_DIM                                               !0, 'test'
          5        OP_DATA                                                  1
    8     6        INIT_FCALL                                               'session_regenerate_id'
          7        SEND_VAL                                                 <false>
          8        DO_ICALL                                                 
    9     9        ASSIGN_DIM                                               !0, 'test'
         10        OP_DATA                                                  2
   12    11        INIT_FCALL                                               'var_dump'
         12        FETCH_DIM_R                                      ~7      !0, 'test'
         13        FETCH_R                      global              ~8      '_SESSION'
         14        FETCH_DIM_R                                      ~9      ~8, 'test'
         15        IS_IDENTICAL                                     ~10     ~7, ~9
         16        SEND_VAL                                                 ~10
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.23 ms | 1386 KiB | 19 Q