3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(function($buffer) { $backtrace = debug_backtrace(); return vsprintf('%d:%s => "%s"' . PHP_EOL, [ @$backtrace[0]['line'] ? : '-', @$backtrace[0]['file'] ? : '-', $buffer, ]); }, 1); ob_implicit_flush(true); echo 'foo'; echo 'bar';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AV5CK
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ob_start'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FAV5CK%3A3%240'
   10     2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                                 
   11     5        INIT_FCALL                                               'ob_implicit_flush'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                                 
   13     8        ECHO                                                     'foo'
   15     9        ECHO                                                     'bar'
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FAV5CK%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AV5CK
function name:  {closure}
number of ops:  25
compiled vars:  !0 = $buffer, !1 = $backtrace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'debug_backtrace'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !1, $2
    5     4        INIT_FCALL                                               'vsprintf'
          5        SEND_VAL                                                 '%25d%3A%25s+%3D%3E+%22%25s%22%0A'
    6     6        BEGIN_SILENCE                                    ~4      
          7        FETCH_DIM_R                                      ~5      !1, 0
          8        FETCH_DIM_R                                      ~6      ~5, 'line'
          9        END_SILENCE                                              ~4
         10        JMP_SET                                          ~7      ~6, ->12
         11        QM_ASSIGN                                        ~7      '-'
         12        INIT_ARRAY                                       ~8      ~7
    7    13        BEGIN_SILENCE                                    ~9      
         14        FETCH_DIM_R                                      ~10     !1, 0
         15        FETCH_DIM_R                                      ~11     ~10, 'file'
         16        END_SILENCE                                              ~9
         17        JMP_SET                                          ~12     ~11, ->19
         18        QM_ASSIGN                                        ~12     '-'
         19        ADD_ARRAY_ELEMENT                                ~8      ~12
    8    20        ADD_ARRAY_ELEMENT                                ~8      !0
         21        SEND_VAL                                                 ~8
         22        DO_ICALL                                         $13     
         23      > RETURN                                                   $13
   10    24*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FAV5CK%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.14 ms | 1396 KiB | 21 Q