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/ppYTJ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $fPrice
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'round'
          1        SEND_VAL                                                 1900.83
          2        SEND_VAL                                                 2
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    3     5        INIT_FCALL                                               'number_format'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 2
          8        SEND_VAL                                                 '.'
          9        SEND_VAL                                                 ''
         10        DO_ICALL                                         $3      
         11        ASSIGN                                                   !0, $3
    4    12        INIT_FCALL                                               'str_replace'
         13        SEND_VAL                                                 '.'
         14        SEND_VAL                                                 ''
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $5      
         17        ASSIGN                                                   !0, $5
    5    18        ECHO                                                     !0
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.92 ms | 1386 KiB | 19 Q