3v4l.org

run code in 300+ PHP versions simultaneously
<?php function whatWillYouGet() { try { return 1; } catch(Exception $ex) {} finally { return 8; } } if (whatWillYouGet()==8) die("But I already returned !!"); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3jvgs
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'whatwillyouget'
          1        DO_FCALL                                      0  $0      
          2        IS_EQUAL                                                 $0, 8
          3      > JMPZ                                                     ~1, ->5
   13     4    > > EXIT                                                     'But+I+already+returned+%21%21'
   14     5    > > RETURN                                                   1

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

End of function whatwillyouget

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.13 ms | 1389 KiB | 14 Q