3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $a = 1/0; } catch(Exception $e) { echo $e->getMessage(); $a = 3; } finally { $a = 2; } echo $a;
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: 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 = 10, Position 2 = 9
Branch analysis from position: 10
Branch analysis from position: 9
filename:       /in/Vt8Rj
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DIV                                              ~3      1, 0
          1        ASSIGN                                                   !0, ~3
          2      > JMP                                                      ->8
    6     3  E > > CATCH                                       last         'Exception'
    8     4    >   INIT_METHOD_CALL                                         !1, 'getMessage'
          5        DO_FCALL                                      0  $5      
          6        ECHO                                                     $5
    9     7        ASSIGN                                                   !0, 3
   11     8    > > FAST_CALL                                                ->10
          9    > > JMP                                                      ->12
   12    10    >   ASSIGN                                                   !0, 2
         11      > FAST_RET                                                 
   15    12    >   ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.58 ms | 939 KiB | 14 Q