3v4l.org

run code in 300+ PHP versions simultaneously
<?php $amount = (12322312.22/1000); echo (round($amount,2) - floor($amount)) * 1000 ; //echo ($amount*1000); //echo (12.33 % 1000);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GvM8P
function name:  (null)
number of ops:  12
compiled vars:  !0 = $amount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 12322.3
    3     1        INIT_FCALL                                               'round'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $2      
          5        INIT_FCALL                                               'floor'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SUB                                              ~4      $2, $3
          9        MUL                                              ~5      ~4, 1000
         10        ECHO                                                     ~5
    5    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.92 ms | 1394 KiB | 17 Q