3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r( 'El status '.session_status() ); //if ( session_status() !== PHP_SESSION_ACTIVE ) session_start(); if ( session_id() === "" ) session_start(); print_r( 'Luego el status '.session_status() );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/Wtpb0
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'session_status'
          2        DO_ICALL                                         $0      
          3        CONCAT                                           ~1      'El+status+', $0
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'session_id'
          7        DO_ICALL                                         $3      
          8        IS_IDENTICAL                                             $3, ''
          9      > JMPZ                                                     ~4, ->12
         10    >   INIT_FCALL                                               'session_start'
         11        DO_ICALL                                                 
    6    12    >   INIT_FCALL                                               'print_r'
         13        INIT_FCALL                                               'session_status'
         14        DO_ICALL                                         $6      
         15        CONCAT                                           ~7      'Luego+el+status+', $6
         16        SEND_VAL                                                 ~7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.35 ms | 1395 KiB | 21 Q