3v4l.org

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

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

End of function callback

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.55 ms | 1394 KiB | 17 Q