3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
249.93 ms | 1399 KiB | 20 Q