3v4l.org

run code in 300+ PHP versions simultaneously
<?php $buffer = -1; function callback($output) { return 'R'; } ob_start('callback'); echo 'hello'; //$a = ob_get_contents(); $b = ob_get_flush(); echo $b; var_dump($buffer);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cALbo
function name:  (null)
number of ops:  13
compiled vars:  !0 = $buffer, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, -1
    9     1        INIT_FCALL                                               'ob_start'
          2        SEND_VAL                                                 'callback'
          3        DO_ICALL                                                 
   10     4        ECHO                                                     'hello'
   12     5        INIT_FCALL                                               'ob_get_flush'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
   13     8        ECHO                                                     !1
   14     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

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

End of function callback

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.8 ms | 1395 KiB | 19 Q