3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(string $a): string { return round($a, 2); } var_dump(test(2.3445545));

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.0190.00316.38
8.3.60.0180.00416.50
8.3.50.0090.01116.47
8.3.40.0070.01418.49
8.3.30.0160.00318.50
8.3.20.0040.00420.46
8.3.10.0070.01121.85
8.3.00.0030.01717.59
8.2.190.0150.00618.16
8.2.180.0140.00716.75
8.2.170.0030.01022.96
8.2.160.0130.00720.28
8.2.150.0070.01124.18
8.2.140.0060.01224.66
8.2.130.0030.00326.16
8.2.120.0000.00719.83
8.2.110.0080.01522.38
8.2.100.0040.00817.72
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0050.00322.28
8.2.30.0000.00720.87
8.2.20.0000.00718.00
8.2.10.0040.00418.08
8.2.00.0000.00718.05
8.1.280.0190.00925.92
8.1.270.0140.00422.21
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0130.01022.19
8.1.230.0120.00017.52
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0060.00318.70
8.1.160.0040.00419.01
8.1.150.0040.00418.91
8.1.140.0000.00719.39
8.1.130.0030.00318.84
8.1.120.0040.00417.29
8.1.110.0000.00817.40
8.1.100.0040.00417.36
8.1.90.0040.00417.36
8.1.80.0040.00417.36
8.1.70.0050.00317.35
8.1.60.0040.00417.57
8.1.50.0060.00317.41
8.1.40.0000.00817.48
8.1.30.0040.00417.61
8.1.20.0080.00017.69
8.1.10.0030.00517.55
8.1.00.0000.00817.48
8.0.300.0000.00818.77
8.0.290.0000.00816.63
8.0.280.0030.00318.43
8.0.270.0030.00617.16
8.0.260.0000.00716.93
8.0.250.0030.00317.00
8.0.240.0020.00516.86
8.0.230.0050.00516.90
8.0.220.0070.00016.90
8.0.210.0000.00717.01
8.0.200.0000.00717.00
8.0.190.0070.00317.04
8.0.180.0050.00316.84
8.0.170.0030.00316.98
8.0.160.0000.00716.92
8.0.150.0040.00416.82
8.0.140.0080.00016.87
8.0.130.0000.00513.49
8.0.120.0050.00316.93
8.0.110.0050.00316.97
8.0.100.0030.00516.82
8.0.90.0000.00717.07
8.0.80.0140.00416.92
8.0.70.0000.00816.98
8.0.60.0070.00017.02
8.0.50.0000.00816.77
8.0.30.0120.00617.16
8.0.20.0120.00817.40
8.0.10.0020.00516.88
8.0.00.0120.00616.90
7.4.330.0050.00015.55
7.4.320.0000.00616.38
7.4.300.0060.00016.36
7.4.290.0000.00916.48
7.4.280.0030.00316.40
7.4.270.0070.00016.53
7.4.260.0100.00216.48
7.4.250.0060.00316.48
7.4.240.0030.00516.61
7.4.230.0050.00216.45
7.4.220.0090.01816.62
7.4.210.0080.01016.56
7.4.200.0070.00016.62
7.4.160.0100.00916.55
7.4.150.0040.01417.40
7.4.140.0100.01217.86
7.4.130.0090.01216.36
7.4.120.0090.00816.47
7.4.110.0030.01316.57
7.4.100.0030.01716.32
7.4.90.0070.01416.68
7.4.80.0110.00619.39
7.4.70.0100.00716.46
7.4.60.0090.00616.25
7.4.50.0040.01116.42
7.4.40.0130.00416.45
7.4.30.0100.00616.32
7.4.10.0100.00714.98
7.4.00.0050.01214.88
7.3.330.0030.00313.22
7.3.320.0050.00013.22
7.3.310.0070.00016.40
7.3.300.0040.00416.24
7.3.290.0000.00716.23
7.3.280.0100.00716.34
7.3.270.0120.00617.40
7.3.260.0100.00816.34
7.3.250.0100.00816.51
7.3.240.0080.00816.49
7.3.230.0100.01016.53
7.3.210.0070.01416.46
7.3.200.0070.01016.24
7.3.190.0100.00716.55
7.3.180.0110.01116.66
7.3.170.0120.00316.41
7.3.160.0160.00316.27
7.3.130.0030.01514.85
7.3.120.0030.01414.74
7.3.110.0110.00814.75
7.3.100.0120.00314.70
7.3.90.0080.00314.81
7.3.80.0030.01114.73
7.3.70.0070.00314.91
7.3.60.0070.01014.93
7.3.50.0060.01214.67
7.3.40.0030.00614.72
7.3.30.0060.01014.53
7.3.20.0150.00016.67
7.3.10.0100.00716.74
7.3.00.0030.01216.58
7.2.330.0100.00716.36
7.2.320.0180.00416.38
7.2.310.0130.00316.56
7.2.300.0120.01216.59
7.2.290.0090.00916.55
7.2.260.0000.01514.64
7.2.250.0070.01014.84
7.2.240.0060.00814.80
7.2.230.0050.00514.87
7.2.220.0030.01214.80
7.2.210.0080.00415.02
7.2.200.0070.01014.95
7.2.190.0000.01814.92
7.2.180.0090.00914.81
7.2.170.0120.00314.96
7.2.160.0030.01414.59
7.2.150.0120.00316.84
7.2.140.0040.01116.80
7.2.130.0110.00716.61
7.2.120.0000.01116.86
7.2.110.0090.00616.85
7.2.100.0090.00616.78
7.2.90.0060.00316.92
7.2.80.0070.00716.85
7.2.70.0090.00616.91
7.2.60.0080.00516.73
7.2.50.0050.00916.83
7.2.40.0000.01216.75
7.2.30.0100.00716.97
7.2.20.0030.01316.65
7.2.10.0070.00716.83
7.2.00.0110.00416.76
7.1.330.0030.01315.44
7.1.320.0070.00715.84
7.1.310.0040.01115.79
7.1.300.0090.00615.77
7.1.290.0040.01215.50
7.1.280.0040.01115.72
7.1.270.0040.01115.73
7.1.260.0030.00715.71
7.1.250.0000.01515.77
7.1.240.0030.00915.72
7.1.230.0100.00315.84
7.1.220.0100.00015.80
7.1.210.0070.00715.58
7.1.200.0110.00315.69
7.1.190.0060.00315.62
7.1.180.0000.01015.72
7.1.170.0040.01115.47
7.1.160.0000.01015.81
7.1.150.0060.00615.75
7.1.140.0070.00715.84
7.1.130.0040.00415.83
7.1.120.0070.00715.52
7.1.110.0000.01015.96
7.1.100.0000.01415.77
7.1.90.0040.00415.83
7.1.80.0030.00715.76
7.1.70.0050.00716.43
7.1.60.0070.00316.34
7.1.50.0040.00716.38
7.1.40.0050.00616.29
7.1.30.0070.00616.17
7.1.20.0000.01316.27
7.1.10.0060.00416.23
7.1.00.0050.00716.28
7.0.330.0100.00715.34
7.0.320.0030.00915.41
7.0.310.0000.01015.27
7.0.300.0070.00715.40
7.0.290.0050.00515.34
7.0.280.0030.00715.13
7.0.270.0000.00915.33
7.0.260.0060.00315.35
7.0.250.0080.00815.61
7.0.240.0130.00315.46
7.0.230.0040.00815.48
7.0.220.0070.00715.27
7.0.210.0080.00015.54
7.0.200.0040.00616.04
7.0.190.0030.00816.00
7.0.180.0020.00615.78
7.0.170.0040.00615.82
7.0.160.0050.00515.95
7.0.150.0030.00715.81
7.0.140.0020.01115.79
7.0.130.0030.00815.76
7.0.120.0020.00816.02
7.0.110.0020.00615.96
7.0.100.0020.00815.77
7.0.90.0030.00815.88
7.0.80.0030.00515.96
7.0.70.0010.00715.86
7.0.60.0030.00815.84
7.0.50.0040.00715.66
7.0.40.0030.00914.15
7.0.30.0000.01114.08
7.0.20.0050.00513.96
7.0.10.0040.00414.08
7.0.00.0060.00614.16
5.6.400.0030.01313.93
5.6.390.0100.00714.05
5.6.380.0080.00413.95
5.6.370.0000.01514.23
5.6.360.0060.00614.39
5.6.350.0040.01114.06
5.6.340.0040.01114.24
5.6.330.0080.00613.83
5.6.320.0000.01414.01
5.6.310.0000.01414.16
5.6.300.0030.01414.10
5.6.290.0100.00314.34
5.6.280.0070.00714.04
5.6.270.0040.00414.10
5.6.260.0030.00914.14
5.6.250.0060.00613.87
5.6.240.0030.01014.23
5.6.230.0090.00614.35
5.6.220.0100.00014.16
5.6.210.0030.00914.34
5.6.200.0060.01014.14
5.6.190.0070.00314.35
5.6.180.0030.00714.04
5.6.170.0090.00314.11
5.6.160.0060.00913.99
5.6.150.0060.00614.04
5.6.140.0030.00614.06
5.6.130.0060.00614.35
5.6.120.0030.00614.36
5.6.110.0030.01014.21
5.6.100.0060.00313.84
5.6.90.0110.00414.30
5.6.80.0040.00414.01
5.6.70.0060.00914.01
5.6.60.0030.00613.84
5.6.50.0030.00914.14
5.6.40.0070.00313.74
5.6.30.0090.00614.14
5.6.20.0030.01014.09
5.6.10.0040.00414.06
5.6.00.0080.00413.95

preferences:
65.67 ms | 401 KiB | 5 Q