3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $val = div(10, 0); echo($val); } catch (Exception $e) { echo "エラー:" . $e->getMessage(); //メッセージ表示 //ここでエラー回復処理 }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HWqZY
function name:  (null)
number of ops:  13
compiled vars:  !0 = $val, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'div'
          1        SEND_VAL_EX                                              10
          2        SEND_VAL_EX                                              0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
    4     5        ECHO                                                     !0
          6      > JMP                                                      ->12
    5     7  E > > CATCH                                       last         'Exception'
    6     8    >   INIT_METHOD_CALL                                         !1, 'getMessage'
          9        DO_FCALL                                      0  $4      
         10        CONCAT                                           ~5      '%E3%82%A8%E3%83%A9%E3%83%BC%3A', $4
         11        ECHO                                                     ~5
    8    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.47 ms | 1384 KiB | 13 Q