3v4l.org

run code in 500+ PHP versions simultaneously
<?php ob_start(); http_response_code(200); echo 'hola'. PHP_EOL; header('hola: xxx'); var_dump( headers_list(), headers_sent(), http_response_code(), setcookie('hola') );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vZtmZ
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'ob_start'
          1        DO_ICALL                                                     
    4     2        INIT_FCALL                                                   'http_response_code'
          3        SEND_VAL                                                     200
          4        DO_ICALL                                                     
    6     5        ECHO                                                         'hola%0A'
    8     6        INIT_FCALL                                                   'header'
          7        SEND_VAL                                                     'hola%3A+xxx'
          8        DO_ICALL                                                     
   10     9        INIT_FCALL                                                   'var_dump'
   12    10        INIT_FCALL                                                   'headers_list'
         11        DO_ICALL                                             $3      
         12        SEND_VAR                                                     $3
   13    13        INIT_FCALL                                                   'headers_sent'
         14        DO_ICALL                                             $4      
         15        SEND_VAR                                                     $4
   14    16        INIT_FCALL                                                   'http_response_code'
         17        DO_ICALL                                             $5      
         18        SEND_VAR                                                     $5
   15    19        INIT_FCALL                                                   'setcookie'
         20        SEND_VAL                                                     'hola'
         21        DO_ICALL                                             $6      
         22        SEND_VAR                                                     $6
   10    23        DO_ICALL                                                     
   16    24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.88 ms | 1158 KiB | 15 Q