3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); if (session_status() == PHP_SESSION_NONE) { session_start(); } header('Test: 1');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/Zi0PD
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    3     2        INIT_FCALL                                               'session_status'
          3        DO_ICALL                                         $1      
          4        IS_EQUAL                                                 $1, 1
          5      > JMPZ                                                     ~2, ->8
    4     6    >   INIT_FCALL                                               'session_start'
          7        DO_ICALL                                                 
    6     8    >   INIT_FCALL                                               'header'
          9        SEND_VAL                                                 'Test%3A+1'
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.7 ms | 1394 KiB | 19 Q