3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $_SESSION['test'] = 1; session_write_close(); echo "text"; flush(); $x = session_start(); var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A06Gr
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x
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_DIM                                               $2, 'test'
          4        OP_DATA                                                  1
    7     5        INIT_FCALL                                               'session_write_close'
          6        DO_ICALL                                                 
   10     7        ECHO                                                     'text'
   11     8        INIT_FCALL                                               'flush'
          9        DO_ICALL                                                 
   13    10        INIT_FCALL                                               'session_start'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !0, $6
   15    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.09 ms | 1394 KiB | 21 Q