3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $val = 10*1000/0; echo($val); } catch (Exception $e) { echo("エラー:" . $e->getMessage()); //メッセージ表示 //ここでエラー回復処理 }
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: 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/tPAuS
function name:  (null)
number of ops:  10
compiled vars:  !0 = $val, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DIV                                              ~2      10000, 0
          1        ASSIGN                                                   !0, ~2
    4     2        ECHO                                                     !0
          3      > JMP                                                      ->9
    5     4  E > > CATCH                                       last         'Exception'
    6     5    >   INIT_METHOD_CALL                                         !1, 'getMessage'
          6        DO_FCALL                                      0  $4      
          7        CONCAT                                           ~5      '%E3%82%A8%E3%83%A9%E3%83%BC%3A', $4
          8        ECHO                                                     ~5
    8     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.4 ms | 1397 KiB | 13 Q