3v4l.org

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

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
186.49 ms | 2008 KiB | 18 Q