3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 30.61; echo number_format(round($num, 1), 2); echo "\n"; $num = 30.79; echo number_format(round($num, 1), 2);

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.70.0100.01316.63
8.3.60.0060.00916.63
8.3.50.0100.01017.96
8.3.40.0060.00918.79
8.3.30.0090.00618.66
8.3.20.0040.00420.94
8.3.10.0080.00021.48
8.3.00.0040.00421.89
8.2.190.0110.00716.58
8.2.180.0070.00725.92
8.2.170.0000.01418.95
8.2.160.0070.00721.19
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0090.00018.03
8.2.110.0040.00420.48
8.2.100.0090.00317.90
8.2.90.0000.00918.05
8.2.80.0050.00517.97
8.2.70.0040.00418.16
8.2.60.0050.00318.09
8.2.50.0040.00418.10
8.2.40.0030.00619.33
8.2.30.0040.00419.29
8.2.20.0060.00618.07
8.2.10.0000.00719.11
8.2.00.0040.00418.09
8.1.280.0070.00725.92
8.1.270.0080.00419.03
8.1.260.0000.00926.35
8.1.250.0000.00728.09
8.1.240.0090.00024.02
8.1.230.0080.00319.15
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0000.01117.23
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0040.00418.66
8.1.160.0070.00018.76
8.1.150.0040.00418.86
8.1.140.0000.00718.88
8.1.130.0040.00417.38
8.1.120.0040.00417.48
8.1.110.0030.00317.46
8.1.100.0040.00417.46
8.1.90.0030.00717.38
8.1.80.0070.00017.45
8.1.70.0040.00417.48
8.1.60.0000.00817.56
8.1.50.0000.00817.53
8.1.40.0030.01017.53
8.1.30.0000.00817.52
8.1.20.0040.00417.66
8.1.10.0000.00717.54
8.1.00.0040.00417.52
8.0.300.0040.00419.58
8.0.290.0000.00716.88
8.0.280.0030.00318.49
8.0.270.0030.00517.27
8.0.260.0060.00016.81
8.0.250.0000.00717.02
8.0.240.0000.00716.93
8.0.230.0030.00316.90
8.0.220.0070.00316.93
8.0.210.0030.00316.86
8.0.200.0060.00316.97
8.0.190.0000.00716.89
8.0.180.0030.00616.94
8.0.170.0030.00616.96
8.0.160.0040.00416.88
8.0.150.0000.00716.79
8.0.140.0050.00216.81
8.0.130.0060.00013.40
8.0.120.0000.00716.70
8.0.110.0030.00516.95
8.0.100.0050.00216.78
8.0.90.0040.00416.94
8.0.80.0070.00816.88
8.0.70.0040.00416.92
8.0.60.0040.00416.95
8.0.50.0030.00516.75
8.0.30.0110.00817.03
8.0.20.0160.00317.07
8.0.10.0070.00016.84
8.0.00.0120.01016.73
7.4.330.0040.00015.55
7.4.320.0030.00316.56
7.4.300.0060.00016.44
7.4.290.0070.00016.51
7.4.280.0000.00716.50
7.4.270.0070.00016.50
7.4.260.0030.00516.48
7.4.250.0080.00016.55
7.4.240.0070.00016.42
7.4.230.0030.00516.69
7.4.220.0030.00516.71
7.4.210.0080.00716.58
7.4.200.0000.00716.60
7.4.160.0050.01116.51
7.4.140.0060.01217.86
7.4.130.0120.00616.33
7.4.120.0100.00616.63
7.4.110.0140.00416.64
7.4.100.0130.00416.37
7.4.90.0100.00716.52
7.4.80.0050.01119.39
7.4.70.0080.00816.30
7.4.60.0070.01116.52
7.4.50.0060.00816.37
7.4.40.0060.00916.64
7.4.00.0140.00314.91
7.3.330.0000.00513.04
7.3.320.0050.00013.03
7.3.310.0040.00416.20
7.3.300.0080.00016.15
7.3.290.0070.00016.22
7.3.280.0160.00216.26
7.3.260.0100.00916.36
7.3.240.0110.01116.28
7.3.230.0080.00816.35
7.3.210.0140.00316.25
7.3.200.0100.00916.35
7.3.190.0130.01316.41
7.3.180.0110.00816.46
7.3.170.0130.00316.41
7.3.160.0150.00616.20
7.3.10.6850.00014.17
7.3.00.5620.00314.32
7.2.330.0060.01916.55
7.2.320.0030.01316.31
7.2.310.0140.00316.31
7.2.300.0090.00916.63
7.2.290.0030.01316.43
7.2.130.5550.00714.53
7.2.120.7620.00314.54
7.2.110.5390.00314.46
7.2.100.6890.01014.23
7.2.90.9750.01014.45
7.2.80.8040.01014.55
7.2.70.8220.00714.48
7.2.61.1010.00314.47
7.2.51.3160.01314.55
7.2.41.1360.00714.49
7.2.31.1760.01014.63
7.2.20.5810.01014.44
7.2.10.4720.00714.57
7.2.00.9660.00714.58
7.1.250.4900.01313.43

preferences:
47.06 ms | 401 KiB | 5 Q