3v4l.org

run code in 300+ PHP versions simultaneously
test <?php echo 'test'; header('X-Custom-Header: test'); register_shutdown_function(function () { var_dump( headers_sent() ); });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sr5as
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     'test%0A'
    4     1        ECHO                                                     'test'
    5     2        INIT_FCALL                                               'header'
          3        SEND_VAL                                                 'X-Custom-Header%3A+test'
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'register_shutdown_function'
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fsr5as%3A7%240'
    9     7        SEND_VAL                                                 ~1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fsr5as%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sr5as
function name:  {closure}
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'headers_sent'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
    9     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fsr5as%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.79 ms | 1395 KiB | 21 Q