3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { echo 10/0; } catch (Error $e) { echo "Just now caught error: {$e->getMessage()}\n"; } try { echo intdiv(10,0),"\n"; } catch (Error $e) { echo "Just now caught error: {$e->getMessage()}\n"; }
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 = 42) Position 1 = 24
Branch analysis from position: 24
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 = 42) Position 1 = 24
Branch analysis from position: 24
Found catch point at position: 17
Branch analysis from position: 17
2 jumps found. (Code = 107) Position 1 = 18, Position 2 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KUfT8
function name:  (null)
number of ops:  25
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DIV                                              ~1      10, 0
          1        ECHO                                                     ~1
          2      > JMP                                                      ->10
    5     3  E > > CATCH                                       last         'Error'
    6     4    >   ROPE_INIT                                     3  ~4      'Just+now+caught+error%3A+'
          5        INIT_METHOD_CALL                                         !0, 'getMessage'
          6        DO_FCALL                                      0  $2      
          7        ROPE_ADD                                      1  ~4      ~4, $2
          8        ROPE_END                                      2  ~3      ~4, '%0A'
          9        ECHO                                                     ~3
   10    10    >   INIT_FCALL                                               'intdiv'
         11        SEND_VAL                                                 10
         12        SEND_VAL                                                 0
         13        DO_ICALL                                         $6      
         14        ECHO                                                     $6
         15        ECHO                                                     '%0A'
         16      > JMP                                                      ->24
   11    17  E > > CATCH                                       last         'Error'
   12    18    >   ROPE_INIT                                     3  ~9      'Just+now+caught+error%3A+'
         19        INIT_METHOD_CALL                                         !0, 'getMessage'
         20        DO_FCALL                                      0  $7      
         21        ROPE_ADD                                      1  ~9      ~9, $7
         22        ROPE_END                                      2  ~8      ~9, '%0A'
         23        ECHO                                                     ~8
   13    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.7 ms | 1388 KiB | 15 Q