3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $file = fopen('not_found.txt', 'rb'); } catch (Exception $e) { echo 1; } finally { echo 2; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 162) Position 1 = 10, Position 2 = 9
Branch analysis from position: 10
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
2 jumps found. (Code = 162) Position 1 = 10, Position 2 = 9
Branch analysis from position: 10
Branch analysis from position: 9
filename:       /in/epkqG
function name:  (null)
number of ops:  13
compiled vars:  !0 = $file, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'not_found.txt'
          2        SEND_VAL                                                 'rb'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
          5      > JMP                                                      ->8
    6     6  E > > CATCH                                       last         'Exception'
    7     7    >   ECHO                                                     1
    9     8    > > FAST_CALL                                                ->10
          9    > > JMP                                                      ->12
   10    10    >   ECHO                                                     2
         11      > FAST_RET                                                 
   11    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.3 ms | 1395 KiB | 15 Q