3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('X-Custom-Header: test'); echo '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/V6oA6
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'X-Custom-Header%3A+test'
          2        DO_ICALL                                                 
    4     3        ECHO                                                     'test'
    6     4        INIT_FCALL                                               'register_shutdown_function'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FV6oA6%3A6%240'
    8     6        SEND_VAL                                                 ~1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FV6oA6%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.91 ms | 1395 KiB | 21 Q