3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { try { return true; } finally { return false; } } function b() { try { return true; } finally { echo '1'; } } var_dump(a(), b());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k5oM0
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'a'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        INIT_FCALL                                               'b'
          5        DO_FCALL                                      0  $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) Position 1 = 4, Position 2 = 1
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k5oM0
function name:  a
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > FAST_CALL                                                ->4
          1    > > RETURN                                                   <true>
    6     2*       FAST_CALL                                                ->4
          3*       JMP                                                      ->7
    7     4    >   DISCARD_EXCEPTION                                        
          5      > RETURN                                                   <false>
          6*       FAST_RET                                                 
    9     7*     > RETURN                                                   null

End of function a

Function b:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) Position 1 = 4, Position 2 = 1
Branch analysis from position: 4
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k5oM0
function name:  b
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > FAST_CALL                                                ->4
          1    > > RETURN                                                   <true>
   14     2*       FAST_CALL                                                ->4
          3*       JMP                                                      ->6
   15     4    >   ECHO                                                     '1'
          5      > FAST_RET                                                 
   17     6*     > RETURN                                                   null

End of function b

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.77 ms | 1399 KiB | 17 Q