3v4l.org

run code in 500+ PHP versions simultaneously
<?php function my_cb( $a ) { return $a; } ob_start( 'my_cb', 0 ); ob_start( 'my_cb', 1 ); ob_start( 'my_cb', 2 ); $status = ob_get_status( true ); var_dump( array_combine( array_column( $status, 'chunk_size' ), array_column( $status, 'buffer_size' ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fHmH7
function name:  (null)
number of ops:  32
compiled vars:  !0 = $status
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'ob_start'
          1        SEND_VAL                                                     'my_cb'
          2        SEND_VAL                                                     0
          3        DO_ICALL                                                     
    8     4        INIT_FCALL                                                   'ob_start'
          5        SEND_VAL                                                     'my_cb'
          6        SEND_VAL                                                     1
          7        DO_ICALL                                                     
    9     8        INIT_FCALL                                                   'ob_start'
          9        SEND_VAL                                                     'my_cb'
         10        SEND_VAL                                                     2
         11        DO_ICALL                                                     
   11    12        INIT_FCALL                                                   'ob_get_status'
         13        SEND_VAL                                                     <true>
         14        DO_ICALL                                             $4      
         15        ASSIGN                                                       !0, $4
   12    16        INIT_FCALL                                                   'var_dump'
         17        INIT_FCALL                                                   'array_combine'
         18        INIT_FCALL                                                   'array_column'
         19        SEND_VAR                                                     !0
         20        SEND_VAL                                                     'chunk_size'
         21        DO_ICALL                                             $6      
         22        SEND_VAR                                                     $6
         23        INIT_FCALL                                                   'array_column'
         24        SEND_VAR                                                     !0
         25        SEND_VAL                                                     'buffer_size'
         26        DO_ICALL                                             $7      
         27        SEND_VAR                                                     $7
         28        DO_ICALL                                             $8      
         29        SEND_VAR                                                     $8
         30        DO_ICALL                                                     
         31      > RETURN                                                       1

Function my_cb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fHmH7
function name:  my_cb
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1      > RETURN                                                       !0
    5     2*     > RETURN                                                       null

End of function my_cb

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.8 ms | 1601 KiB | 17 Q