3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { var_dump(intdiv(10, 0)); } catch (\DivisionByZeroError $e) { var_dump($e->getMessage()); } var_dump(bcdiv(19, 8, 3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TPTYY
function name:  (null)
number of ops:  23
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'intdiv'
          2        SEND_VAL                                                 10
          3        SEND_VAL                                                 0
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                                 
          7      > JMP                                                      ->14
    5     8  E > > CATCH                                       last         'DivisionByZeroError'
    6     9    >   INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !0, 'getMessage'
         11        DO_FCALL                                      0  $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                                 
    9    14    >   INIT_FCALL                                               'var_dump'
         15        INIT_FCALL_BY_NAME                                       'bcdiv'
         16        SEND_VAL_EX                                              19
         17        SEND_VAL_EX                                              8
         18        SEND_VAL_EX                                              3
         19        DO_FCALL                                      0  $5      
         20        SEND_VAR                                                 $5
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.49 ms | 1395 KiB | 17 Q