3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Sessie starten of hervatten session_start(); // Bevat de sessie een user? if (isset($_SESSION['user'])) { // Ja, user hergebruiken $user = unserialize($_SESSION['user']); } else { // Nee, nieuwe user instantiƫren $user = new User(); $_SESSION['user'] = serialize($user); } class 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 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AdE2E
function name:  (null)
number of ops:  22
compiled vars:  !0 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    5     2        FETCH_IS                                         ~2      '_SESSION'
          3        ISSET_ISEMPTY_DIM_OBJ                         0          ~2, 'user'
          4      > JMPZ                                                     ~3, ->12
    7     5    >   INIT_FCALL                                               'unserialize'
          6        FETCH_R                      global              ~4      '_SESSION'
          7        FETCH_DIM_R                                      ~5      ~4, 'user'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !0, $6
         11      > JMP                                                      ->21
   10    12    >   NEW                                              $8      'User'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !0, $8
   11    15        INIT_FCALL                                               'serialize'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $13     
         18        FETCH_W                      global              $11     '_SESSION'
         19        ASSIGN_DIM                                               $11, 'user'
         20        OP_DATA                                                  $13
   14    21    > > RETURN                                                   1

Class User: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.96 ms | 1395 KiB | 19 Q