3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.49 ms | 1394 KiB | 17 Q