3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dividend = 0.0075; $divisor = 0.0001; $quotient = $dividend / $divisor; $mod = $quotient - floor($quotient); var_dump($mod); var_dump(fmod($dividend, $divisor));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hkm1L
function name:  (null)
number of ops:  20
compiled vars:  !0 = $dividend, !1 = $divisor, !2 = $quotient, !3 = $mod
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0.0075
    4     1        ASSIGN                                                   !1, 0.0001
    6     2        DIV                                              ~6      !0, !1
          3        ASSIGN                                                   !2, ~6
    7     4        INIT_FCALL                                               'floor'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                         $8      
          7        SUB                                              ~9      !2, $8
          8        ASSIGN                                                   !3, ~9
    9     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
   11    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'fmod'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $12     
         17        SEND_VAR                                                 $12
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.37 ms | 1395 KiB | 19 Q