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.01018.08
8.3.50.0100.00622.77
8.3.40.0060.00918.71
8.3.30.0100.00319.27
8.3.20.0070.00020.41
8.3.10.0080.00021.55
8.3.00.0100.00019.68
8.2.180.0090.00616.75
8.2.170.0070.01422.96
8.2.160.0110.00420.44
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.22
8.2.110.0070.00421.10
8.2.100.0120.00017.91
8.2.90.0080.00017.85
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0040.00418.03
8.2.50.0060.00318.07
8.2.40.0000.00818.28
8.2.30.0040.00418.16
8.2.20.0030.00517.61
8.2.10.0060.00318.17
8.2.00.0000.00717.71
8.1.280.0030.01025.92
8.1.270.0050.00323.88
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.52
8.1.230.0070.00420.93
8.1.220.0080.00017.74
8.1.210.0040.00418.89
8.1.200.0110.00617.13
8.1.190.0000.00817.00
8.1.180.0080.00018.10
8.1.170.0060.00318.63
8.1.160.0000.00721.95
8.1.150.0040.00418.77
8.1.140.0050.00317.54
8.1.130.0040.00417.84
8.1.120.0030.00517.45
8.1.110.0000.00817.43
8.1.100.0070.00017.43
8.1.90.0050.00217.52
8.1.80.0070.00017.45
8.1.70.0000.00717.40
8.1.60.0040.00417.61
8.1.50.0040.00417.50
8.1.40.0080.00017.41
8.1.30.0050.00317.55
8.1.20.0040.00417.56
8.1.10.0030.00617.54
8.1.00.0000.00717.54
8.0.300.0070.00319.90
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0050.00317.24
8.0.260.0000.00717.31
8.0.250.0030.00317.03
8.0.240.0040.00416.92
8.0.230.0030.00316.93
8.0.220.0030.00316.89
8.0.210.0030.00416.77
8.0.200.0060.00016.94
8.0.190.0030.00416.82
8.0.180.0070.00016.86
8.0.170.0000.00816.79
8.0.160.0060.00316.92
8.0.150.0000.00716.85
8.0.140.0000.00716.73
8.0.130.0030.00313.31
8.0.120.0030.00516.82
8.0.110.0040.00416.74
8.0.100.0020.00516.91
8.0.90.0040.00416.80
8.0.80.0080.01416.84
8.0.70.0040.00416.93
8.0.60.0040.00416.92
8.0.50.0040.00416.85
8.0.30.0170.00416.95
8.0.20.0080.01117.40
8.0.10.0070.00017.10
8.0.00.0110.00816.94
7.4.330.0000.00515.00
7.4.320.0060.00016.58
7.4.300.0030.00316.41
7.4.290.0030.00316.50
7.4.280.0050.00516.60
7.4.270.0050.00316.40
7.4.260.0050.00516.48
7.4.250.0040.00416.45
7.4.240.0000.00716.52
7.4.230.0070.00016.71
7.4.220.0100.01516.52
7.4.210.0130.00316.55
7.4.200.0000.00716.57
7.4.160.0060.01316.55
7.4.150.0100.00717.40
7.4.140.0140.00617.86
7.4.130.0120.00716.45
7.4.120.0100.00616.38
7.4.110.0110.00716.50
7.4.100.0100.00616.47
7.4.90.0070.01016.51
7.4.80.0090.00919.39
7.4.70.0140.00316.54
7.4.60.0100.00616.40
7.4.50.0000.00516.50
7.4.40.0170.00016.31
7.4.30.0120.00316.32
7.3.330.0030.00313.06
7.3.320.0000.00513.10
7.3.310.0000.00816.27
7.3.300.0030.00316.29
7.3.290.0100.00316.30
7.3.280.0090.00816.28
7.3.270.0100.01417.40
7.3.260.0030.01416.50
7.3.250.0110.01016.58
7.3.240.0080.00816.34
7.3.230.0150.00616.39
7.3.210.0100.00716.43
7.3.200.0080.01519.39
7.3.190.0100.01016.35
7.3.180.0060.00916.12
7.3.170.0100.00716.30
7.3.160.0100.00716.38
7.2.330.0100.00716.29
7.2.320.0030.01416.50
7.2.310.0100.00716.54
7.2.300.0070.01016.18
7.2.290.0240.00316.37
5.4.310.0070.04212.49
5.4.300.0090.03512.50
5.4.290.0070.03812.49
5.4.280.0060.03812.39
5.4.270.0120.03412.39
5.4.260.0070.03712.39
5.4.250.0070.04112.39
5.4.240.0100.03512.39
5.4.230.0060.04112.38
5.4.220.0070.04012.38
5.4.210.0070.03912.38
5.4.200.0040.04212.38
5.4.190.0050.04412.38
5.4.180.0070.03812.38
5.4.170.0060.03912.38
5.4.160.0060.03912.38
5.4.150.0040.04012.38
5.4.140.0070.03812.07
5.4.130.0080.04212.05
5.4.120.0070.03812.01
5.4.110.0060.04512.01
5.4.100.0140.05212.01
5.4.90.0080.03912.01
5.4.80.0090.03812.01
5.4.70.0090.04212.01
5.4.60.0070.04912.01
5.4.50.0080.03812.01
5.4.40.0100.04412.00
5.4.30.0080.04111.99
5.4.20.0070.03811.99
5.4.10.0090.03211.99
5.4.00.0080.03511.49
5.3.280.0050.04212.71
5.3.270.0100.04412.72
5.3.260.0070.04312.72
5.3.250.0070.04112.72
5.3.240.0050.04212.71
5.3.230.0080.03612.71
5.3.220.0090.03512.68
5.3.210.0050.04212.68
5.3.200.0070.04312.68
5.3.190.0080.04312.67
5.3.180.0060.04512.68
5.3.170.0070.03612.67
5.3.160.0090.03412.67
5.3.150.0090.03512.67
5.3.140.0050.03812.66
5.3.130.0070.04012.66
5.3.120.0070.03812.66
5.3.110.0080.04212.66
5.3.100.0040.04312.12
5.3.90.0050.04212.08
5.3.80.0060.03812.07
5.3.70.0070.03512.07
5.3.60.0070.03412.07
5.3.50.0040.03812.00
5.3.40.0080.04012.00
5.3.30.0050.03811.95
5.3.20.0090.03411.73
5.3.10.0060.03611.70
5.3.00.0080.03511.69
5.2.170.0070.0279.19
5.2.160.0060.0319.19
5.2.150.0040.0349.18
5.2.140.0070.0329.18
5.2.130.0070.0359.14
5.2.120.0030.0339.14
5.2.110.0060.0299.15
5.2.100.0070.0279.14
5.2.90.0040.0319.14
5.2.80.0070.0279.14
5.2.70.0040.0329.14
5.2.60.0050.0309.09
5.2.50.0020.0329.06
5.2.40.0040.0319.04
5.2.30.0040.0329.01
5.2.20.0040.0299.00
5.2.10.0060.0288.92
5.2.00.0070.0288.78
5.1.60.0050.0238.07
5.1.50.0040.0258.07
5.1.40.0050.0248.04
5.1.30.0020.0298.40
5.1.20.0040.0288.42
5.1.10.0040.0278.14
5.1.00.0060.0248.15
5.0.50.0040.0216.63
5.0.40.0040.0196.49
5.0.30.0020.0336.30
5.0.20.0020.0216.29
5.0.10.0020.0236.27
5.0.00.0040.0326.26
4.4.90.0020.0164.78
4.4.80.0040.0164.75
4.4.70.0050.0144.76
4.4.60.0030.0164.75
4.4.50.0040.0184.77
4.4.40.0040.0314.71
4.4.30.0040.0204.76
4.4.20.0020.0234.85
4.4.10.0040.0214.85
4.4.00.0050.0294.76
4.3.110.0040.0214.67
4.3.100.0050.0184.67
4.3.90.0030.0214.63
4.3.80.0040.0314.58
4.3.70.0040.0204.63
4.3.60.0020.0214.63
4.3.50.0020.0234.63
4.3.40.0050.0264.54
4.3.30.0020.0193.31
4.3.20.0020.0193.29
4.3.10.0030.0193.25
4.3.00.0070.01715.90

preferences:
67.62 ms | 401 KiB | 5 Q