3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_name('hello'); session_start(); $_SESSION['value'] = 42; session_write_close(); session_unset(); $_SESSION['value'] = 52; session_name('hello'); session_start(); print_r($_SESSION);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rFNSX
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'session_name'
          1        SEND_VAL                                                 'hello'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'session_start'
          4        DO_ICALL                                                 
    6     5        FETCH_W                      global              $2      '_SESSION'
          6        ASSIGN_DIM                                               $2, 'value'
          7        OP_DATA                                                  42
    8     8        INIT_FCALL                                               'session_write_close'
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'session_unset'
         11        DO_ICALL                                                 
   11    12        FETCH_W                      global              $6      '_SESSION'
         13        ASSIGN_DIM                                               $6, 'value'
         14        OP_DATA                                                  52
   13    15        INIT_FCALL                                               'session_name'
         16        SEND_VAL                                                 'hello'
         17        DO_ICALL                                                 
   14    18        INIT_FCALL                                               'session_start'
         19        DO_ICALL                                                 
   16    20        INIT_FCALL                                               'print_r'
         21        FETCH_R                      global              ~10     '_SESSION'
         22        SEND_VAL                                                 ~10
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.81 ms | 1395 KiB | 23 Q