3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(function ($buffer) { // return ''; throw new \Exception('x'); }); echo 5; try { ob_flush(); } catch (\Exception $e) { echo $e; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kQMfY
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ob_start'
          1        DECLARE_LAMBDA_FUNCTION                          ~1      [0]
    6     2        SEND_VAL                                                 ~1
    3     3        DO_ICALL                                                 
    8     4        ECHO                                                     5
   11     5        INIT_FCALL                                               'ob_flush'
          6        DO_ICALL                                                 
          7      > JMP                                                      ->10
   12     8  E > > CATCH                                       last         'Exception'
   13     9    >   ECHO                                                     !0
   14    10    > > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/kQMfY
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        NEW                                              $1      'Exception'
          2        SEND_VAL_EX                                              'x'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $1
    6     5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.05 ms | 1002 KiB | 15 Q