3v4l.org

run code in 300+ PHP versions simultaneously
<?php function answer() { try { /* here */ return 1; } catch (Exception $ex) { return 2; } finally { } } var_dump(answer()); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C2Tmv
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'answer'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
   14     5      > RETURN                                                   1

Function answer:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) Position 1 = 8, Position 2 = 1
Branch analysis from position: 8
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 3
Branch analysis from position: 3
2 jumps found. (Code = 107) Position 1 = 4, Position 2 = -2
Branch analysis from position: 4
2 jumps found. (Code = 162) Position 1 = 8, Position 2 = 5
Branch analysis from position: 8
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C2Tmv
function name:  answer
number of ops:  10
compiled vars:  !0 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > FAST_CALL                                                ->8
          1    > > RETURN                                                   1
          2*       JMP                                                      ->6
    6     3  E > > CATCH                                       last         'Exception'
    7     4    > > FAST_CALL                                                ->8
          5    > > RETURN                                                   2
    8     6*       FAST_CALL                                                ->8
          7*       JMP                                                      ->9
          8    > > FAST_RET                                                 
   11     9*     > RETURN                                                   null

End of function answer

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.95 ms | 1398 KiB | 16 Q