3v4l.org

run code in 300+ 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                                  '%00%7Bclosure%7D%2Fin%2FZoBJs%3A4%240'
    7     2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                                 
   10     5        INIT_FCALL                                               'register_shutdown_function'
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FZoBJs%3A10%241'
   14     7        SEND_VAL                                                 ~2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FZoBJs%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/ZoBJs
function name:  {closure}
number of ops:  6
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      > EXIT                                                     
    7     5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FZoBJs%3A4%240

Function %00%7Bclosure%7D%2Fin%2FZoBJs%3A10%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZoBJs
function name:  {closure}
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 function %00%7Bclosure%7D%2Fin%2FZoBJs%3A10%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.53 ms | 1396 KiB | 21 Q