3v4l.org

run code in 300+ PHP versions simultaneously
<?php $normal = '0.00000601'; $direct = bcmul($normal, '3', 8); $referral = bcdiv($normal, '4', 8); $difference = bcsub(bcsub($normal, $direct, 8), $referral, 8); var_dump($direct, $referral, bcmul($difference, 30000 * 31, 8));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h5onm
function name:  (null)
number of ops:  35
compiled vars:  !0 = $normal, !1 = $direct, !2 = $referral, !3 = $difference
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0.00000601'
    4     1        INIT_FCALL_BY_NAME                                       'bcmul'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              '3'
          4        SEND_VAL_EX                                              8
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
    5     7        INIT_FCALL_BY_NAME                                       'bcdiv'
          8        SEND_VAR_EX                                              !0
          9        SEND_VAL_EX                                              '4'
         10        SEND_VAL_EX                                              8
         11        DO_FCALL                                      0  $7      
         12        ASSIGN                                                   !2, $7
    6    13        INIT_FCALL_BY_NAME                                       'bcsub'
         14        INIT_FCALL_BY_NAME                                       'bcsub'
         15        SEND_VAR_EX                                              !0
         16        SEND_VAR_EX                                              !1
         17        SEND_VAL_EX                                              8
         18        DO_FCALL                                      0  $9      
         19        SEND_VAR_NO_REF_EX                                       $9
         20        SEND_VAR_EX                                              !2
         21        SEND_VAL_EX                                              8
         22        DO_FCALL                                      0  $10     
         23        ASSIGN                                                   !3, $10
    8    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !1
         26        SEND_VAR                                                 !2
         27        INIT_FCALL_BY_NAME                                       'bcmul'
         28        SEND_VAR_EX                                              !3
         29        SEND_VAL_EX                                              930000
         30        SEND_VAL_EX                                              8
         31        DO_FCALL                                      0  $12     
         32        SEND_VAR                                                 $12
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.1 ms | 1396 KiB | 24 Q