3v4l.org

run code in 300+ PHP versions simultaneously
<?php $normal = '0.00000240'; $direct = bcdiv($normal, '3', 8); $referral = bcdiv($normal, '4', 8); $difference = $normal - $direct - $referral; var_dump($direct, $referral, $difference);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9U1ZB
function name:  (null)
number of ops:  22
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.00000240'
    4     1        INIT_FCALL_BY_NAME                                       'bcdiv'
          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        SUB                                              ~9      !0, !1
         14        SUB                                              ~10     ~9, !2
         15        ASSIGN                                                   !3, ~10
    8    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        SEND_VAR                                                 !2
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.09 ms | 1395 KiB | 18 Q