3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "output"; session_start(); setcookie("TestCookie", 'value'); header('X-TestHeader: value');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BaObu
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'output'
    3     1        INIT_FCALL                                               'session_start'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'setcookie'
          4        SEND_VAL                                                 'TestCookie'
          5        SEND_VAL                                                 'value'
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'header'
          8        SEND_VAL                                                 'X-TestHeader%3A+value'
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.88 ms | 1398 KiB | 19 Q