3v4l.org

run code in 500+ PHP versions simultaneously
<?php // capture any unexpected output and exit execution ob_start(function($buffer) { var_dump($buffer); echo 'unexpected output: ' . $buffer . "\n"; exit; }, 1); // do some work on shutdown register_shutdown_function(function() { echo "Call ob_flush\n"; ob_flush(); echo "Call ob_end_clean\n"; ob_end_clean(); echo 'shutting down'; }); echo 'x';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aYQ92
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'ob_start'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
    8     2        SEND_VAL                                                     ~0
          3        SEND_VAL                                                     1
    4     4        DO_ICALL                                                     
   11     5        INIT_FCALL                                                   'register_shutdown_function'
          6        DECLARE_LAMBDA_FUNCTION                              ~2      [1]
   17     7        SEND_VAL                                                     ~2
   11     8        DO_ICALL                                                     
   19     9        ECHO                                                         'x'
         10      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 61) Position 1 = -2
filename:       /in/aYQ92
function name:  {closure:/in/aYQ92:4}
number of ops:  10
compiled vars:  !0 = $buffer
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
    5     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
    6     4        CONCAT                                               ~2      'unexpected+output%3A+', !0
          5        CONCAT                                               ~3      ~2, '%0A'
          6        ECHO                                                         ~3
    7     7      > INIT_FCALL                                                   'exit'
          8*       DO_ICALL                                                     
    8     9*     > RETURN                                                       null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aYQ92
function name:  {closure:/in/aYQ92:11}
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                         'Call+ob_flush%0A'
   13     1        INIT_FCALL                                                   'ob_flush'
          2        DO_ICALL                                                     
   14     3        ECHO                                                         'Call+ob_end_clean%0A'
   15     4        INIT_FCALL                                                   'ob_end_clean'
          5        DO_ICALL                                                     
   16     6        ECHO                                                         'shutting+down'
   17     7      > RETURN                                                       null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.45 ms | 484 KiB | 13 Q