3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.98 ms | 1397 KiB | 13 Q