3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Sessie starten of hervatten session_start(); // Sessievariabelen wissen $_SESSION = array(); // Sessiecookie laten verwijderen door de browser if (ini_get('session.use_cookies')) { $cookie_params = session_get_cookie_params(); setcookie( session_name(), '', time() - 42000, $cookie_params['path'], $cookie_params['domain'], $cookie_params['secure'], $cookie_params['httponly'] ); } // Sessie vernietigen session_destroy(); // Tijdelijke redirect naar de homepage header('Location: http://www.example.com/'); exit;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 29
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 29
filename:       /in/Bgbvb
function name:  (null)
number of ops:  36
compiled vars:  !0 = $cookie_params
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                                                   $2, <array>
    7     4        INIT_FCALL                                               'ini_get'
          5        SEND_VAL                                                 'session.use_cookies'
          6        DO_ICALL                                         $4      
          7      > JMPZ                                                     $4, ->29
    8     8    >   INIT_FCALL                                               'session_get_cookie_params'
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !0, $5
    9    11        INIT_FCALL                                               'setcookie'
   10    12        INIT_FCALL                                               'session_name'
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
   11    15        SEND_VAL                                                 ''
   12    16        INIT_FCALL                                               'time'
         17        DO_ICALL                                         $8      
         18        SUB                                              ~9      $8, 42000
         19        SEND_VAL                                                 ~9
   13    20        FETCH_DIM_R                                      ~10     !0, 'path'
         21        SEND_VAL                                                 ~10
   14    22        FETCH_DIM_R                                      ~11     !0, 'domain'
         23        SEND_VAL                                                 ~11
   15    24        FETCH_DIM_R                                      ~12     !0, 'secure'
         25        SEND_VAL                                                 ~12
   16    26        FETCH_DIM_R                                      ~13     !0, 'httponly'
         27        SEND_VAL                                                 ~13
         28        DO_ICALL                                                 
   20    29    >   INIT_FCALL                                               'session_destroy'
         30        DO_ICALL                                                 
   22    31        INIT_FCALL                                               'header'
         32        SEND_VAL                                                 'Location%3A+http%3A%2F%2Fwww.example.com%2F'
         33        DO_ICALL                                                 
   23    34      > EXIT                                                     
         35*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.45 ms | 1396 KiB | 29 Q