3v4l.org

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

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

End of function example

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.76 ms | 1395 KiB | 15 Q