3v4l.org

run code in 300+ PHP versions simultaneously
<?php $invoiceTotalVAT = 3.45487561654e5152415121523; $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/LZ4sa
function name:  (null)
number of ops:  15
compiled vars:  !0 = $invoiceTotalVAT, !1 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, INF
    3     1        INIT_FCALL                                               'number_format'
          2        INIT_FCALL                                               'floor'
          3        MUL                                              ~3      !0, 100
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        DIV                                              ~5      $4, 100
          7        SEND_VAL                                                 ~5
          8        SEND_VAL                                                 2
          9        SEND_VAL                                                 '.'
         10        SEND_VAL                                                 ''
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    5    13        ECHO                                                     !1
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.66 ms | 1394 KiB | 17 Q