3v4l.org

run code in 300+ 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:  22
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        INIT_FCALL                                               'str_replace'
          7        SEND_VAL                                                 '%2C'
          8        SEND_VAL                                                 ''
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        ECHO                                                     $4
    6    12        ASSIGN                                                   !0, 1.0e+6
    7    13        INIT_FCALL                                               'number_format'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 2
         16        SEND_VAL                                                 '.'
         17        SEND_VAL                                                 ''
         18        DO_ICALL                                         $6      
         19        ASSIGN                                                   !0, $6
    8    20        ECHO                                                     !0
    9    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.55 ms | 1399 KiB | 17 Q