3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.88 ms | 1394 KiB | 15 Q