3v4l.org

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

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

End of function buffer

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.87 ms | 1386 KiB | 17 Q