3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(floor((0.1+0.7)*10)); echo PHP_EOL; var_dump(floor( bcmul( bcadd(0.1, 0.7), 10 ) ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tCUNR
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'floor'
          2        SEND_VAL                                                 8
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    4     6        ECHO                                                     '%0A'
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'floor'
    6     9        INIT_FCALL_BY_NAME                                       'bcmul'
    7    10        INIT_FCALL_BY_NAME                                       'bcadd'
         11        SEND_VAL_EX                                              0.1
         12        SEND_VAL_EX                                              0.7
         13        DO_FCALL                                      0  $2      
         14        SEND_VAR_NO_REF_EX                                       $2
    8    15        SEND_VAL_EX                                              10
         16        DO_FCALL                                      0  $3      
         17        SEND_VAR                                                 $3
         18        DO_ICALL                                         $4      
         19        SEND_VAR                                                 $4
         20        DO_ICALL                                                 
   10    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.71 ms | 1386 KiB | 17 Q