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;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0070.00718.55
8.3.50.0130.00722.90
8.3.40.0100.00318.71
8.3.30.0120.00619.04
8.3.20.0080.00020.06
8.3.10.0040.00421.96
8.3.00.0000.00917.77
8.2.180.0140.00716.50
8.2.170.0090.00922.96
8.2.160.0070.00720.24
8.2.150.0050.00324.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0040.00420.86
8.2.110.0060.00319.39
8.2.100.0040.00717.84
8.2.90.0050.00318.91
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0030.00618.10
8.2.40.0000.00718.16
8.2.30.0080.00018.12
8.2.20.0030.00517.80
8.2.10.0050.00318.12
8.2.00.0000.00817.71
8.1.280.0170.00025.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0030.00328.09
8.1.240.0130.00324.11
8.1.230.0040.00717.70
8.1.220.0060.00317.76
8.1.210.0030.00618.77
8.1.200.0030.00617.13
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0080.00018.63
8.1.160.0050.00322.02
8.1.150.0000.00718.93
8.1.140.0030.00517.40
8.1.130.0040.00417.75
8.1.120.0030.00417.35
8.1.110.0030.00617.46
8.1.100.0000.00717.46
8.1.90.0000.00717.35
8.1.80.0000.00817.42
8.1.70.0030.00317.42
8.1.60.0000.01017.61
8.1.50.0040.00417.50
8.1.40.0080.00017.38
8.1.30.0030.00617.67
8.1.20.0060.00317.63
8.1.10.0070.00017.44
8.1.00.0050.00317.50
8.0.300.0020.00518.77
8.0.290.0050.00216.75
8.0.280.0030.00318.38
8.0.270.0030.00317.33
8.0.260.0000.00617.35
8.0.250.0030.00316.95
8.0.240.0040.00416.92
8.0.230.0070.00016.84
8.0.220.0050.00316.78
8.0.210.0000.00616.94
8.0.200.0060.00016.83
8.0.190.0040.00416.97
8.0.180.0000.00716.93
8.0.170.0080.00016.79
8.0.160.0070.00316.73
8.0.150.0040.00416.75
8.0.140.0000.00716.82
8.0.130.0050.00013.33
8.0.120.0000.00816.86
8.0.110.0000.00816.78
8.0.100.0040.00416.79
8.0.90.0030.00316.78
8.0.80.0120.01016.90
8.0.70.0000.00716.92
8.0.60.0000.00816.78
8.0.50.0000.00816.93
8.0.30.0100.00817.05
8.0.20.0150.00817.41
8.0.10.0070.00016.91
8.0.00.0120.00716.81
7.4.330.0050.00015.07
7.4.320.0070.00016.64
7.4.300.0070.00016.55
7.4.290.0040.00416.54
7.4.280.0030.00616.51
7.4.270.0030.00316.58
7.4.260.0060.00316.55
7.4.250.0040.00416.44
7.4.240.0060.00216.42
7.4.230.0070.00016.57
7.4.220.0060.01216.54
7.4.210.0060.00916.55
7.4.200.0040.00416.55
7.4.160.0130.00316.43
7.4.150.0150.00417.40
7.4.140.0140.00317.86
7.4.130.0070.01016.49
7.4.120.0110.00716.61
7.4.110.0070.01016.43
7.4.100.0090.00916.34
7.4.90.0090.00916.37
7.4.80.0180.00919.39
7.4.70.0070.01016.45
7.4.60.0070.01016.48
7.4.50.0040.00416.59
7.4.40.0070.01016.38
7.4.30.0100.01016.52
7.4.00.0040.01114.64
7.3.330.0000.00613.06
7.3.320.0060.00013.05
7.3.310.0070.00016.03
7.3.300.0020.00516.31
7.3.290.0110.00716.16
7.3.280.0040.01416.32
7.3.270.0090.01217.40
7.3.260.0140.00316.46
7.3.250.0130.00816.39
7.3.240.0090.00916.61
7.3.230.0120.00616.39
7.3.210.0100.00716.11
7.3.200.0050.01419.39
7.3.190.0060.01416.19
7.3.180.0060.01016.28
7.3.170.0090.01216.66
7.3.160.0110.00616.65
7.2.330.0030.01416.64
7.2.320.0140.00716.64
7.2.310.0040.01216.56
7.2.300.0030.01316.48
7.2.290.0090.00616.62
7.2.00.0200.00619.38
7.1.100.0040.00718.14
7.1.70.0100.00017.12
7.1.60.0170.00719.40
7.1.50.0090.01216.63
7.1.00.0130.06722.40
7.0.200.0060.00916.61
7.0.140.0030.07321.96
7.0.60.0030.07719.89
7.0.50.0100.04017.89
7.0.40.0200.04720.03
7.0.30.0230.08020.21
7.0.20.0230.06719.98
7.0.10.0400.06020.16
7.0.00.0100.04320.18
5.6.280.0000.07321.05
5.6.210.0170.04720.46
5.6.200.0070.07018.23
5.6.190.0030.08720.63
5.6.180.0330.07020.61
5.6.170.0170.06720.39
5.6.160.0070.03720.41
5.6.150.0030.04718.13
5.6.140.0030.08718.21
5.6.130.0030.08318.18
5.6.120.0100.07721.01
5.6.110.0130.07321.00
5.6.100.0070.08721.03
5.6.90.0070.04021.00
5.6.80.0100.08020.50
5.6.70.4070.04320.27
5.5.350.0100.09020.43
5.5.340.0000.05017.96
5.5.330.0100.05020.29
5.5.320.0430.07720.35
5.5.310.0270.07720.35
5.5.300.0100.04717.89
5.5.290.0100.08317.95
5.5.280.0100.04720.86
5.5.270.0100.06720.75
5.5.260.0100.08720.75
5.5.250.0100.07720.65
5.5.240.2700.03320.34
5.4.450.0130.05019.43
5.4.440.0300.04719.24
5.4.430.0170.04319.10
5.4.420.0070.05019.45
5.4.410.0130.03019.01
5.4.400.0230.03319.21
5.4.390.0130.04319.09
5.4.380.0370.05718.78
5.4.370.0500.04318.49
5.4.360.0330.06018.65
5.4.350.0500.07018.49
5.4.340.0400.05318.61
5.4.320.0090.03512.46
5.4.310.0060.03812.45
5.4.300.0060.03512.46
5.4.290.0080.03512.45
5.4.280.0050.03612.35
5.4.270.0040.03912.35
5.4.260.0050.03912.35
5.4.250.0040.04012.35
5.4.240.0050.03712.35
5.4.230.0050.04212.34
5.4.220.0050.03812.34
5.4.210.0060.03812.34
5.4.200.0040.04012.34
5.4.190.0060.03712.34
5.4.180.0110.03512.34
5.4.170.0040.04412.35
5.4.160.0070.03512.35
5.4.150.0090.03812.34
5.4.140.0050.03912.03
5.4.130.0060.03512.02
5.4.120.0050.03711.97
5.4.110.0050.03611.97
5.4.100.0070.03411.97
5.4.90.0060.03711.96
5.4.80.0070.03911.97
5.4.70.0050.03611.96
5.4.60.0060.03411.96
5.4.50.0050.03611.96
5.4.40.0070.03411.95
5.4.30.0050.04011.95
5.4.20.0080.03511.95
5.4.10.0070.03311.95
5.4.00.0110.03111.44
5.3.290.0060.04212.80
5.3.280.0060.03812.71
5.3.270.0050.04012.73
5.3.260.0110.03512.72
5.3.250.0080.04912.72
5.3.240.0090.04512.72
5.3.230.0080.04012.71
5.3.220.0080.04112.68
5.3.210.0100.03812.68
5.3.200.0040.03912.68
5.3.190.0090.03412.68
5.3.180.0080.04212.68
5.3.170.0070.03712.66
5.3.160.0090.03512.67
5.3.150.0080.04212.67
5.3.140.0090.03612.66
5.3.130.0050.03912.66
5.3.120.0060.04312.66
5.3.110.0050.03912.66
5.3.100.0050.03812.12
5.3.90.0080.04912.08
5.3.80.0060.03612.07
5.3.70.0060.04612.07
5.3.60.0110.03712.06
5.3.50.0050.04112.00
5.3.40.0060.03612.00
5.3.30.0060.03611.94
5.3.20.0050.03811.73
5.3.10.0070.03411.69
5.3.00.0060.03611.68
5.2.170.0060.0359.20
5.2.160.0040.0299.20
5.2.150.0040.0319.20
5.2.140.0030.0339.20
5.2.130.0080.0309.15
5.2.120.0080.0269.16
5.2.110.0040.0369.16
5.2.100.0080.0309.16
5.2.90.0040.0299.16
5.2.80.0070.0309.16
5.2.70.0030.0329.16
5.2.60.0050.0309.11
5.2.50.0030.0329.08
5.2.40.0040.0299.05
5.2.30.0040.0309.03
5.2.20.0040.0299.01
5.2.10.0050.0288.94
5.2.00.0020.0328.79
5.1.60.0060.0238.08
5.1.50.0080.0268.07
5.1.40.0040.0258.06
5.1.30.0070.0368.41
5.1.20.0050.0368.43
5.1.10.0060.0288.15
5.1.00.0050.0328.15
5.0.50.0030.0246.64
5.0.40.0060.0186.50
5.0.30.0040.0346.30
5.0.20.0050.0226.30
5.0.10.0070.0186.28
5.0.00.0080.0296.27
4.4.90.0050.0174.78
4.4.80.0050.0144.76
4.4.70.0050.0204.75
4.4.60.0020.0214.76
4.4.50.0050.0134.77
4.4.40.0020.0264.71
4.4.30.0040.0144.76
4.4.20.0020.0174.85
4.4.10.0030.0164.85
4.4.00.0030.0254.76
4.3.110.0020.0174.67
4.3.100.0020.0164.66
4.3.90.0030.0144.64
4.3.80.0030.0244.58
4.3.70.0020.0164.63
4.3.60.0020.0154.63
4.3.50.0040.0144.63
4.3.40.0040.0314.54
4.3.30.0010.0223.33
4.3.20.0010.0173.31
4.3.10.0020.0163.28
4.3.00.0130.01315.90

preferences:
43.14 ms | 401 KiB | 5 Q