3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mynumstr = "100,000,000.75"; $mynum = doubleval(str_replace(",","",$mynumstr)); echo "Normal Value:".number_format($mynum);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/37ViS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $mynumstr, !1 = $mynum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '100%2C000%2C000.75'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        CAST                                          5  ~4      $3
          7        ASSIGN                                                   !1, ~4
    4     8        INIT_FCALL                                               'number_format'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        CONCAT                                           ~7      'Normal+Value%3A', $6
         12        ECHO                                                     ~7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.04 ms | 1394 KiB | 17 Q