3v4l.org

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

Function func_that_throws_exceptions:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/oaXNp
function name:  func_that_throws_exceptions
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $0      'Exception'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $0
   13     3*     > RETURN                                                   null

End of function func_that_throws_exceptions

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.3 ms | 1394 KiB | 13 Q