3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2FZ2jLG%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z2jLG
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%2FZ2jLG%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.51 ms | 1395 KiB | 23 Q