3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.85 ms | 1394 KiB | 17 Q