3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $integerOrString = 1; $fooOrBarException = null; return 1; } catch (\FooException $e) { $integerOrString = 2; $fooOrBarException = $e; throw $e; } catch (\BarException $e) { $integerOrString = 'foo'; $fooOrBarException = $e; return $e; } finally { var_dump($integerOrString); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 107) Position 1 = 11, Position 2 = -2
Branch analysis from position: 11
2 jumps found. (Code = 162) Position 1 = 18, Position 2 = 15
Branch analysis from position: 18
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 10
Branch analysis from position: 10
filename:       /in/3mhOd
function name:  (null)
number of ops:  23
compiled vars:  !0 = $integerOrString, !1 = $fooOrBarException, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 1
    5     1        ASSIGN                                                   !1, null
    6     2      > FAST_CALL                                                ->18
          3    > > RETURN                                                   1
          4*       JMP                                                      ->16
    7     5  E > > CATCH                                                    'FooException', ->10
    8     6    >   ASSIGN                                                   !0, 2
    9     7        ASSIGN                                                   !1, !2
   10     8      > THROW                                         0          !2
          9*       JMP                                                      ->16
   11    10  E > > CATCH                                       last         'BarException'
   12    11    >   ASSIGN                                                   !0, 'foo'
   13    12        ASSIGN                                                   !1, !2
   14    13        QM_ASSIGN                                        ~10     !2
         14      > FAST_CALL                                                ->18
         15    > > RETURN                                                   ~10
   15    16*       FAST_CALL                                                ->18
         17*       JMP                                                      ->22
   16    18    >   INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > FAST_RET                                                 
   17    22*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.23 ms | 1387 KiB | 15 Q