3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $_SESSION['foo'] = 42; print_r($_SESSION); $_SESSION = array(); session_destroy(); var_dump(array() === $_SESSION);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WmjYg
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, 'foo'
          4        OP_DATA                                                  42
    5     5        INIT_FCALL                                               'print_r'
          6        FETCH_R                      global              ~3      '_SESSION'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
    7     9        FETCH_W                      global              $5      '_SESSION'
         10        ASSIGN                                                   $5, <array>
    8    11        INIT_FCALL                                               'session_destroy'
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'var_dump'
         14        FETCH_R                      global              ~8      '_SESSION'
         15        IS_IDENTICAL                                     ~9      ~8, <array>
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.85 ms | 1394 KiB | 21 Q