3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.97 ms | 1394 KiB | 19 Q