3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): int { return 1; } foo();

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.4.10.0170.00317.62
8.3.140.0040.00417.11
8.3.130.0080.00016.59
8.3.120.0080.01120.73
8.3.110.0030.00618.33
8.3.100.0100.01016.50
8.3.90.0070.00326.77
8.3.80.0090.00316.49
8.3.70.0130.00316.58
8.3.60.0090.00616.38
8.3.50.0100.00717.41
8.3.40.0040.01118.46
8.3.30.0050.01018.56
8.3.20.0080.00021.82
8.3.10.0080.00021.91
8.3.00.0040.00419.55
8.2.250.0040.00416.62
8.2.240.0060.01216.88
8.2.230.0080.00020.94
8.2.220.0080.00324.06
8.2.210.0060.01226.77
8.2.200.0090.00016.25
8.2.190.0140.00316.63
8.2.180.0070.01018.04
8.2.170.0130.00718.66
8.2.160.0100.00322.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00019.00
8.2.110.0080.00022.13
8.2.100.0080.00417.59
8.2.90.0040.00417.75
8.2.80.0080.00318.57
8.2.70.0060.00317.80
8.2.60.0070.00017.97
8.2.50.0070.00018.10
8.2.40.0070.00020.59
8.2.30.0050.00219.29
8.2.20.0000.00817.80
8.2.10.0040.00419.59
8.2.00.0000.00717.85
8.1.300.0150.00318.48
8.1.290.0000.01030.84
8.1.280.0120.00325.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0120.00022.04
8.1.230.0060.00622.70
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0080.00017.23
8.1.190.0000.00917.22
8.1.180.0080.00018.10
8.1.170.0040.00418.84
8.1.160.0040.00418.67
8.1.150.0040.00418.92
8.1.140.0080.00017.56
8.1.130.0000.00717.22
8.1.120.0050.00217.28
8.1.110.0000.00717.35
8.1.100.0040.00417.29
8.1.90.0030.00617.23
8.1.80.0040.00417.27
8.1.70.0000.00717.31
8.1.60.0040.00417.37
8.1.50.0090.00317.51
8.1.40.0040.00617.39
8.1.30.0040.00417.49
8.1.20.0060.00117.51
8.1.10.0070.00217.30
8.1.00.0010.00717.28
8.0.300.0030.00318.87
8.0.290.0040.00416.63
8.0.280.0050.00318.37
8.0.270.0000.00717.00
8.0.260.0070.00016.68
8.0.250.0080.00016.83
8.0.240.0000.00716.73
8.0.230.0060.00316.77
8.0.220.0030.00316.69
8.0.210.0040.00416.61
8.0.200.0000.00716.81
8.0.190.0000.00716.83
8.0.180.0040.00416.80
8.0.170.0050.00316.73
8.0.160.0020.00516.81
8.0.150.0040.00416.60
8.0.140.0020.00616.69
8.0.130.0020.00515.00
8.0.120.0020.00616.72
8.0.110.0020.00516.66
8.0.100.0020.00616.71
8.0.90.0040.00416.73
8.0.80.0090.00316.73
8.0.70.0050.00216.71
8.0.60.0040.00416.66
8.0.50.0100.00816.63
8.0.30.0130.00616.85
8.0.20.0050.00917.16
8.0.10.0070.00116.84
8.0.00.0070.00916.69
7.4.330.0020.00215.55
7.4.320.0000.00616.37
7.4.300.0030.00316.51
7.4.290.0000.00716.39
7.4.280.0020.00616.41
7.4.270.0050.00316.43
7.4.260.0080.00016.49
7.4.250.0030.00416.43
7.4.240.0010.00616.41
7.4.230.0080.00016.36
7.4.220.0020.00716.33
7.4.210.0070.00516.49
7.4.200.0030.00416.42
7.4.190.0090.00016.53
7.4.180.0100.00316.20
7.4.160.0080.00816.49
7.4.150.0080.00316.36
7.4.140.0090.00717.54
7.4.130.0110.00516.27
7.4.120.0090.00916.32
7.4.110.0090.00816.21
7.4.100.0080.00716.41
7.4.90.0120.00416.26
7.4.80.0090.00616.94
7.4.70.0100.00616.33
7.4.60.0110.00516.15
7.4.50.0060.01116.36
7.4.40.0070.00916.31
7.4.30.0110.00616.34
7.4.20.0070.00916.45
7.4.10.0080.01016.28
7.4.00.0080.00816.16
7.3.330.0070.00514.67
7.3.320.0090.00414.75
7.3.310.0110.00316.18
7.3.300.0120.00116.16
7.3.290.0110.00216.21
7.3.280.0090.01016.18
7.3.270.0170.00416.14
7.3.260.0090.00816.28
7.3.250.0140.00416.28
7.3.240.0120.00816.21
7.3.230.0100.01016.31
7.3.220.0120.00716.29
7.3.210.0120.00615.99
7.3.200.0090.00916.14
7.3.190.0110.00616.21
7.3.180.0120.00616.11
7.3.170.0100.00716.24
7.3.160.0110.00816.26
7.3.150.0130.00616.29
7.3.140.0130.00516.28
7.3.130.0100.01016.22
7.3.120.0100.00815.61
7.3.110.0100.00815.56
7.3.100.0100.00715.54
7.3.90.0090.00915.36
7.3.80.0100.00715.37
7.3.70.0090.00815.25
7.3.60.0090.00815.28
7.3.50.0090.00815.29
7.3.40.0100.00615.29
7.3.30.0090.00815.28
7.3.20.0210.00815.82
7.3.10.0160.00915.59
7.3.00.0180.00815.61
7.2.340.0140.00616.11
7.2.330.0150.00516.17
7.2.320.0100.00916.12
7.2.310.0130.00716.18
7.2.300.0100.01016.31
7.2.290.0110.00816.24
7.2.280.0120.00816.31
7.2.270.0130.00716.26
7.2.260.0110.00816.37
7.2.250.0120.00816.21
7.2.240.0100.00915.66
7.2.230.0090.00915.54
7.2.220.0090.01015.52
7.2.210.0090.00815.34
7.2.200.0090.00915.38
7.2.190.0090.00915.39
7.2.180.0090.01015.32
7.2.170.0100.00815.36
7.2.160.0100.00915.36
7.2.150.0190.00615.83
7.2.140.0200.00815.81
7.2.130.0130.00915.74
7.2.120.0170.00915.74
7.2.110.0360.00815.76
7.2.100.0230.00915.67
7.2.90.0240.00815.71
7.2.80.0250.00915.70
7.2.70.0230.00915.75
7.2.60.0230.00915.76
7.2.50.0240.00815.79
7.2.40.0250.00915.84
7.2.30.0210.00715.83
7.2.20.0270.00915.83
7.2.10.0250.00815.79
7.2.00.0220.00915.86
7.1.330.0150.00815.03
7.1.320.0190.00714.83
7.1.310.0140.00714.95
7.1.300.0210.00714.83
7.1.290.0130.00814.79
7.1.280.0100.00814.80
7.1.270.0170.00814.74
7.1.260.0190.00714.71
7.1.250.0170.00814.68
7.1.240.0210.00614.60
7.1.230.0190.00814.62
7.1.220.0320.00614.59
7.1.210.0290.00814.60
7.1.200.0240.00914.65
7.1.190.0260.00714.55
7.1.180.0270.00914.54
7.1.170.0280.00814.58
7.1.160.0300.00814.64
7.1.150.0320.00714.73
7.1.140.0190.00814.67
7.1.130.0200.00914.68
7.1.120.0220.01014.65
7.1.110.0220.00714.66
7.1.100.0230.00714.66
7.1.90.0290.00714.63
7.1.80.0310.00714.65
7.1.70.0320.00814.60
7.1.60.0320.00716.44
7.1.50.0220.00916.30
7.1.40.0280.00716.24
7.1.30.0380.00816.37
7.1.20.0320.00816.36
7.1.10.0210.00914.45
7.1.00.0260.00814.48
7.0.330.0170.00814.56
7.0.320.0230.00814.81
7.0.310.0350.00914.74
7.0.300.0310.00914.70
7.0.290.0250.01014.82
7.0.280.0230.00814.73
7.0.270.0220.00814.87
7.0.260.0260.00814.82
7.0.250.0190.00814.82
7.0.240.0180.00714.87
7.0.230.0190.01014.82
7.0.220.0240.00614.84
7.0.210.0350.00914.73
7.0.200.0440.00814.65
7.0.190.0350.00814.66
7.0.180.0280.00714.68
7.0.170.0400.00814.61
7.0.160.0410.00814.60
7.0.150.0320.00714.60
7.0.140.0220.00714.63
7.0.130.0230.00914.65
7.0.120.0350.00714.65
7.0.110.0260.01014.62
7.0.100.0250.00614.62
7.0.90.0260.01014.61
7.0.80.0270.00914.65
7.0.70.0320.00714.56
7.0.60.0220.00814.59
7.0.50.0310.00714.57
7.0.40.0300.00814.61
7.0.30.0340.00714.59
7.0.20.0240.00914.64
7.0.10.0190.00614.67
7.0.00.0200.00814.73
5.6.400.0120.01014.68
5.6.390.0140.00714.74
5.6.380.0130.00814.69
5.6.370.0120.01215.04
5.6.360.0140.00915.00
5.6.350.0150.00814.89
5.6.340.0130.01114.94
5.6.330.0130.00914.87
5.6.320.0120.01214.95
5.6.310.0140.00914.98
5.6.300.0120.01215.27
5.6.290.0120.01515.33
5.6.280.0120.01515.38
5.6.270.0120.01415.33
5.6.260.0130.01315.35
5.6.250.0120.01415.30
5.6.240.0180.01315.33
5.6.230.0140.01315.32
5.6.220.0140.01415.28
5.6.210.0130.01215.24
5.6.200.0140.01315.32
5.6.190.0140.01315.35
5.6.180.0140.01215.36
5.6.170.0130.01215.36
5.6.160.0110.01415.35
5.6.150.0130.01315.33
5.6.140.0140.01315.31
5.6.130.0120.01315.34
5.6.120.0130.01415.26
5.6.110.0140.01315.34
5.6.100.0150.01115.30
5.6.90.0140.01315.38
5.6.80.0130.01315.20
5.6.70.0130.01315.30
5.6.60.0140.01215.15
5.6.50.0120.01315.27
5.6.40.0110.01415.25
5.6.30.0120.01315.24
5.6.20.0130.01315.21
5.6.10.0120.01315.21
5.6.00.0120.01315.22

preferences:
53.88 ms | 403 KiB | 5 Q