3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callback($buffer, $status) { return "callback $buffer"; } ob_start( 'callback', 0, PHP_OUTPUT_HANDLER_FLUSHABLE | PHP_OUTPUT_HANDLER_REMOVABLE); echo 'test'; echo ob_get_clean(); //this should not work as no CLEANABLE flag was set on ob_start //ob_end_clean is ran as well //ob_clean -> failed to delete buffer notice echo "\n".ob_get_level();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G1Eqn
function name:  (null)
number of ops:  14
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   8     0  E >   INIT_FCALL                                               'ob_start'
         1        SEND_VAL                                                 'callback'
         2        SEND_VAL                                                 0
         3        SEND_VAL                                                 96
         4        DO_ICALL                                                 
  10     5        ASSIGN_OBJ                                               'test'
  12     6        INIT_FCALL                                               'ob_get_clean'
         7        DO_ICALL                                         $1      
         8        ASSIGN_OBJ                                               $1
  16     9        INIT_FCALL                                               'ob_get_level'
        10        DO_ICALL                                         $2      
        11        CONCAT                                           ~3      '%0A', $2
        12        ASSIGN_OBJ                                               ~3
        13      > RETURN                                                   1

Function callback:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G1Eqn
function name:  callback
number of ops:  6
compiled vars:  !0 = $buffer, !1 = $status
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   RECV                                             !0      
         1        RECV                                             !1      
   4     2        NOP                                                      
         3        FAST_CONCAT                                      ~2      'callback+', !0
         4      > RETURN                                                   ~2
   6     5*     > RETURN                                                   null

End of function callback

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
20.35 ms | 411 KiB | 7 Q