3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "start\n"; try { $foo = 5 / 0; } catch (Exception $e) { echo "Caught exception\n"; } echo "end\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eYlmR
function name:  (null)
number of ops:  8
compiled vars:  !0 = $foo, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'start%0A'
    8     1        DIV                                              ~2      5, 0
          2        ASSIGN                                                   !0, ~2
          3      > JMP                                                      ->6
    9     4  E > > CATCH                                       last         'Exception'
   10     5    >   ECHO                                                     'Caught+exception%0A'
   13     6    >   ECHO                                                     'end%0A'
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.55 ms | 1392 KiB | 13 Q