3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
212.49 ms | 1005 KiB | 15 Q