3v4l.org

run code in 300+ PHP versions simultaneously
<?php header_register_callback(function(){ $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); foreach($backtrace as $frame){ if(isset($frame['file'], $frame['line'])){ echo "Output started: {$frame['file']}:{$frame['line']}\n"; break; } } }); echo "data";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vm8KO
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'header_register_callback'
          1        DECLARE_LAMBDA_FUNCTION                          ~0      [0]
   11     2        SEND_VAL                                                 ~0
    3     3        DO_ICALL                                                 
   13     4        ECHO                                                     'data'
          5      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 21
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 10
Branch analysis from position: 21
Branch analysis from position: 21
filename:       /in/vm8KO
function name:  {closure}
number of ops:  23
compiled vars:  !0 = $backtrace, !1 = $frame
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'debug_backtrace'
          1        SEND_VAL                                                 2
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4      > FE_RESET_R                                       $4      !0, ->21
          5    > > FE_FETCH_R                                               $4, !1, ->21
    6     6    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~5      !1, 'file'
          7      > JMPZ_EX                                          ~5      ~5, ->10
          8    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~6      !1, 'line'
          9        BOOL                                             ~5      ~6
         10    > > JMPZ                                                     ~5, ->20
    7    11    >   ROPE_INIT                                     5  ~10     'Output+started%3A+'
         12        FETCH_DIM_R                                      ~7      !1, 'file'
         13        ROPE_ADD                                      1  ~10     ~10, ~7
         14        ROPE_ADD                                      2  ~10     ~10, '%3A'
         15        FETCH_DIM_R                                      ~8      !1, 'line'
         16        ROPE_ADD                                      3  ~10     ~10, ~8
         17        ROPE_END                                      4  ~9      ~10, '%0A'
         18        ECHO                                                     ~9
    8    19      > JMP                                                      ->21
    5    20    > > JMP                                                      ->5
         21    >   FE_FREE                                                  $4
   11    22      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.61 ms | 1012 KiB | 15 Q