3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo php_sapi_name (), PHP_EOL; 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/CYsUm
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'php_sapi_name'
          1        DO_ICALL                                             $0      
          2        ECHO                                                         $0
          3        ECHO                                                         '%0A'
    3     4        INIT_FCALL                                                   'session_start'
          5        DO_ICALL                                                     
    4     6        INIT_FCALL                                                   'setcookie'
          7        SEND_VAL                                                     'TestCookie'
          8        SEND_VAL                                                     'value'
          9        DO_ICALL                                                     
    5    10        INIT_FCALL                                                   'header'
         11        SEND_VAL                                                     'X-TestHeader%3A+value'
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.19 ms | 3152 KiB | 17 Q