3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myCallback($buffer, $flags) { if ($flags & PHP_OUTPUT_HANDLER_START) { exit('Server: LastMinuteHeaderServer'); } } ob_start('myCallback'); echo "Hello World!"; ob_end_flush();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZflHs
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'ob_start'
          1        SEND_VAL                                                 'myCallback'
          2        DO_ICALL                                                 
   10     3        ECHO                                                     'Hello+World%21'
   11     4        INIT_FCALL                                               'ob_end_flush'
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function mycallback:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZflHs
function name:  myCallback
number of ops:  6
compiled vars:  !0 = $buffer, !1 = $flags
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        BW_AND                                           ~2      !1, 1
          3      > JMPZ                                                     ~2, ->5
    5     4    > > EXIT                                                     'Server%3A+LastMinuteHeaderServer'
    7     5    > > RETURN                                                   null

End of function mycallback

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.18 ms | 1395 KiB | 17 Q