3v4l.org

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

Function a:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) Position 1 = 6, Position 2 = 1
Branch analysis from position: 6
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 = 6, Position 2 = 5
Branch analysis from position: 6
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/acmcp
function name:  a
number of ops:  9
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > FAST_CALL                                                ->6
          1    > > RETURN                                                   1
          2*       JMP                                                      ->4
    5     3  E > > CATCH                                       last         'Exception'
    7     4    > > FAST_CALL                                                ->6
          5    > > JMP                                                      ->8
    8     6    >   ECHO                                                     5
          7      > FAST_RET                                                 
   10     8    > > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.45 ms | 1397 KiB | 14 Q