3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); if (isset($_POST['token'])) { $token = $_POST['token']; $_SESSION['user'] = true; } else { $_SESSION['user'] = true; } var_dump($_SESSION['user']);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hIQAP
function name:  (null)
number of ops:  21
compiled vars:  !0 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    5     2        FETCH_IS                                         ~2      '_POST'
          3        ISSET_ISEMPTY_DIM_OBJ                         0          ~2, 'token'
          4      > JMPZ                                                     ~3, ->12
    7     5    >   FETCH_R                      global              ~4      '_POST'
          6        FETCH_DIM_R                                      ~5      ~4, 'token'
          7        ASSIGN                                                   !0, ~5
    8     8        FETCH_W                      global              $7      '_SESSION'
          9        ASSIGN_DIM                                               $7, 'user'
         10        OP_DATA                                                  <true>
    5    11      > JMP                                                      ->15
   12    12    >   FETCH_W                      global              $9      '_SESSION'
         13        ASSIGN_DIM                                               $9, 'user'
         14        OP_DATA                                                  <true>
   15    15    >   INIT_FCALL                                               'var_dump'
         16        FETCH_R                      global              ~11     '_SESSION'
         17        FETCH_DIM_R                                      ~12     ~11, 'user'
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.32 ms | 1002 KiB | 15 Q