3v4l.org

run code in 500+ PHP versions simultaneously
<?php $value=1000000.00; $value = number_format($value,2); echo str_replace(",", "", $value); $value=1000000.00; $value = number_format($value,2,'.',''); echo $value;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iGk1r
function name:  (null)
number of ops:  19
compiled vars:  !0 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 1.0e+6
    3     1        INIT_FCALL                                                   'number_format'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     2
          4        DO_ICALL                                             $2      
          5        ASSIGN                                                       !0, $2
    4     6        FRAMELESS_ICALL_3                str_replace         ~4      '%2C', ''
          7        OP_DATA                                                      !0
          8        ECHO                                                         ~4
    6     9        ASSIGN                                                       !0, 1.0e+6
    7    10        INIT_FCALL                                                   'number_format'
         11        SEND_VAR                                                     !0
         12        SEND_VAL                                                     2
         13        SEND_VAL                                                     '.'
         14        SEND_VAL                                                     ''
         15        DO_ICALL                                             $6      
         16        ASSIGN                                                       !0, $6
    8    17        ECHO                                                         !0
    9    18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.63 ms | 2283 KiB | 14 Q