3v4l.org

run code in 300+ PHP versions simultaneously
<?php http_response_code(403); /* setcookie() will add a response header on its own */ setcookie('foo', 'bar'); /* Define a custom response header This will be ignored by most clients */ header("X-Sample-Test: foo"); /* Specify plain text content in our response */ header('Content-type: text/plain'); /* What headers are going to be sent? */ var_dump(headers_list());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C22tS
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'http_response_code'
          1        SEND_VAL                                                 403
          2        DO_ICALL                                                 
    6     3        INIT_FCALL                                               'setcookie'
          4        SEND_VAL                                                 'foo'
          5        SEND_VAL                                                 'bar'
          6        DO_ICALL                                                 
   10     7        INIT_FCALL                                               'header'
          8        SEND_VAL                                                 'X-Sample-Test%3A+foo'
          9        DO_ICALL                                                 
   13    10        INIT_FCALL                                               'header'
         11        SEND_VAL                                                 'Content-type%3A+text%2Fplain'
         12        DO_ICALL                                                 
   16    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'headers_list'
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.05 ms | 1394 KiB | 23 Q