3v4l.org

run code in 300+ PHP versions simultaneously
<?php // capture any unexpected output and exit execution ob_start(function($buffer) { ob_end_clean(); echo 'unexpected output: ' . $buffer . "\n"; exit; }, 1); // do some work on shutdown register_shutdown_function(function() { echo 'shutting down'; }); echo 'test_1'; echo 'test_2';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/39Faa
function name:  (null)
number of ops:  12
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%2F39Faa%3A4%240'
    8     2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                                 
   11     5        INIT_FCALL                                               'register_shutdown_function'
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F39Faa%3A11%241'
   13     7        SEND_VAL                                                 ~2
          8        DO_ICALL                                                 
   15     9        ECHO                                                     'test_1'
   16    10        ECHO                                                     'test_2'
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F39Faa%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/39Faa
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'ob_end_clean'
          2        DO_ICALL                                                 
    6     3        CONCAT                                           ~2      'unexpected+output%3A+', !0
          4        CONCAT                                           ~3      ~2, '%0A'
          5        ECHO                                                     ~3
    7     6      > EXIT                                                     
    8     7*     > RETURN                                                   null

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

Function %00%7Bclosure%7D%2Fin%2F39Faa%3A11%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/39Faa
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'shutting+down'
   13     1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F39Faa%3A11%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.02 ms | 1401 KiB | 19 Q