3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = 0; // проверьте $b = null; $b = "0"; $b = 0.2; .. try { if((float) $b === 0.0) throw new Exception('деление на ноль'); echo ($a / $b); } catch(Throwable $e) { echo $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ORXUi
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 0
    8     2        CAST                                          5  ~5      !1
          3        IS_IDENTICAL                                             ~5, 0
          4      > JMPZ                                                     ~6, ->9
          5    >   NEW                                              $7      'Exception'
          6        SEND_VAL_EX                                              '%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5+%D0%BD%D0%B0+%D0%BD%D0%BE%D0%BB%D1%8C'
          7        DO_FCALL                                      0          
          8      > THROW                                         0          $7
   10     9    >   DIV                                              ~9      !0, !1
         10        ECHO                                                     ~9
         11      > JMP                                                      ->16
   12    12  E > > CATCH                                       last         'Throwable'
   13    13    >   INIT_METHOD_CALL                                         !2, 'getMessage'
         14        DO_FCALL                                      0  $10     
         15        ECHO                                                     $10
   14    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.05 ms | 1433 KiB | 13 Q