3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dec = 0.0002/0.05; $decimals = 3; echo floor($dec*pow(100,$decimals))/pow(100,$decimals);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0msQq
function name:  (null)
number of ops:  17
compiled vars:  !0 = $dec, !1 = $decimals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0.004
    3     1        ASSIGN                                                   !1, 3
    4     2        INIT_FCALL                                               'floor'
          3        INIT_FCALL                                               'pow'
          4        SEND_VAL                                                 100
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        MUL                                              ~5      !0, $4
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        INIT_FCALL                                               'pow'
         11        SEND_VAL                                                 100
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        DIV                                              ~8      $6, $7
         15        ECHO                                                     ~8
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.79 ms | 1394 KiB | 17 Q