3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = bcdiv('0.00000240', '10', 8); var_dump('0.00000240'); var_dump(bcmul('0.00000100', '10000', 8)); var_dump(bcdiv('0.00000100', '0.0001', 8));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iiWvQ
function name:  (null)
number of ops:  26
compiled vars:  !0 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'bcdiv'
          1        SEND_VAL_EX                                              '0.00000240'
          2        SEND_VAL_EX                                              '10'
          3        SEND_VAL_EX                                              8
          4        DO_FCALL                                      0  $1      
          5        ASSIGN                                                   !0, $1
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAL                                                 '0.00000240'
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL_BY_NAME                                       'bcmul'
         11        SEND_VAL_EX                                              '0.00000100'
         12        SEND_VAL_EX                                              '10000'
         13        SEND_VAL_EX                                              8
         14        DO_FCALL                                      0  $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                                 
    6    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL_BY_NAME                                       'bcdiv'
         19        SEND_VAL_EX                                              '0.00000100'
         20        SEND_VAL_EX                                              '0.0001'
         21        SEND_VAL_EX                                              8
         22        DO_FCALL                                      0  $6      
         23        SEND_VAR                                                 $6
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.57 ms | 1395 KiB | 21 Q