3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.04 ms | 1385 KiB | 15 Q