3v4l.org

run code in 300+ PHP versions simultaneously
<?php $itemsWeight = 0.100; $itemWeight = 0.100; $fee = 100; var_dump(bcdiv(bcmul($itemWeight, $fee, 2), $itemsWeight, 2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Urn26
function name:  (null)
number of ops:  17
compiled vars:  !0 = $itemsWeight, !1 = $itemWeight, !2 = $fee
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0.1
    4     1        ASSIGN                                                   !1, 0.1
    5     2        ASSIGN                                                   !2, 100
    7     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL_BY_NAME                                       'bcdiv'
          5        INIT_FCALL_BY_NAME                                       'bcmul'
          6        SEND_VAR_EX                                              !1
          7        SEND_VAR_EX                                              !2
          8        SEND_VAL_EX                                              2
          9        DO_FCALL                                      0  $6      
         10        SEND_VAR_NO_REF_EX                                       $6
         11        SEND_VAR_EX                                              !0
         12        SEND_VAL_EX                                              2
         13        DO_FCALL                                      0  $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.32 ms | 1394 KiB | 21 Q