3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): string { return ''; } 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.20.0170.00319.56
8.4.10.0160.00019.39
8.3.150.0090.00916.99
8.3.140.0080.00018.31
8.3.130.0050.00516.82
8.3.120.0060.00918.98
8.3.110.0060.00316.50
8.3.100.0090.00024.06
8.3.90.0040.01126.77
8.3.80.0030.00916.63
8.3.70.0110.00318.30
8.3.60.0110.00716.50
8.3.50.0130.00417.41
8.3.40.0070.00718.60
8.3.30.0040.01118.54
8.3.20.0070.00021.85
8.3.10.0040.00423.48
8.3.00.0090.00019.42
8.2.270.0140.00417.14
8.2.260.0140.00418.22
8.2.250.0030.00618.24
8.2.240.0070.00417.30
8.2.230.0040.01120.94
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0000.00916.50
8.2.190.0110.01116.63
8.2.180.0080.00818.26
8.2.170.0040.01118.66
8.2.160.0110.00422.96
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00421.00
8.2.110.0100.00722.26
8.2.100.0040.00817.59
8.2.90.0040.00420.42
8.2.80.0000.00817.97
8.2.70.0040.00417.91
8.2.60.0040.00417.97
8.2.50.0100.00018.10
8.2.40.0040.00420.34
8.2.30.0030.00319.30
8.2.20.0030.00717.80
8.2.10.0040.00417.79
8.2.00.0070.00017.88
8.1.310.0040.00416.12
8.1.300.0000.00820.18
8.1.290.0090.00018.88
8.1.280.0070.00725.92
8.1.270.0080.00023.95
8.1.260.0090.00626.35
8.1.250.0070.00728.09
8.1.240.0070.00422.38
8.1.230.0000.01120.91
8.1.220.0080.00017.74
8.1.210.0000.00818.83
8.1.200.0040.00417.23
8.1.190.0060.00317.00
8.1.180.0000.00818.10
8.1.170.0030.00618.59
8.1.160.0070.00018.74
8.1.150.0070.00018.84
8.1.140.0030.00417.63
8.1.130.0000.00717.36
8.1.120.0000.00717.23
8.1.110.0070.00017.24
8.1.100.0030.00517.34
8.1.90.0040.00417.31
8.1.80.0050.00317.30
8.1.70.0000.00817.34
8.1.60.0090.00317.50
8.1.50.0040.00417.33
8.1.40.0000.00717.46
8.1.30.0000.00817.43
8.1.20.0040.00417.51
8.1.10.0000.00817.39
8.1.00.0000.00917.19
8.0.300.0060.00319.86
8.0.290.0040.00416.63
8.0.280.0040.00418.30
8.0.270.0030.00316.64
8.0.260.0050.00316.79
8.0.250.0030.00316.77
8.0.240.0030.00316.84
8.0.230.0030.00316.78
8.0.220.0040.00416.76
8.0.210.0030.00316.75
8.0.200.0050.00516.86
8.0.190.0000.00816.82
8.0.180.0040.00416.79
8.0.170.0040.00416.72
8.0.160.0030.00316.82
8.0.150.0030.00316.72
8.0.140.0040.00416.69
8.0.130.0030.00313.18
8.0.120.0000.00716.63
8.0.110.0000.00716.61
8.0.100.0040.00416.77
8.0.90.0040.00416.64
8.0.80.0070.00716.64
8.0.70.0040.00416.61
8.0.60.0040.00416.77
8.0.50.0080.00016.78
8.0.30.0090.00916.82
8.0.20.0090.00917.40
8.0.10.0000.00716.94
8.0.00.0110.00916.70
7.4.330.0000.00515.55
7.4.320.0060.00016.52
7.4.300.0000.00716.52
7.4.290.0000.00716.54
7.4.280.0080.00016.36
7.4.270.0000.00716.44
7.4.260.0070.00016.56
7.4.250.0000.00816.53
7.4.240.0000.00716.52
7.4.230.0070.00016.34
7.4.220.0030.00516.43
7.4.210.0070.00716.46
7.4.200.0030.00316.43
7.4.160.0100.00816.39
7.4.140.0090.00817.86
7.4.130.0160.00516.55
7.4.120.0130.00616.47
7.4.110.0080.01116.35
7.4.100.0110.01416.37
7.4.90.0100.01016.42
7.4.80.0070.01517.95
7.4.70.0120.00816.36
7.4.60.0100.01016.31
7.4.50.0070.01116.38
7.4.40.0100.01016.45
7.4.30.0160.00916.32
7.4.20.0120.00916.55
7.4.10.0100.01016.27
7.4.00.0080.01215.78
7.3.330.0050.00013.06
7.3.320.0050.00013.09
7.3.310.0000.00816.23
7.3.300.0000.00616.24
7.3.290.0070.00016.24
7.3.280.0110.00816.20
7.3.260.0110.00616.33
7.3.250.0170.00916.15
7.3.240.0100.01016.23
7.3.230.0090.00916.31
7.3.220.0070.01716.35
7.3.210.0110.00816.27
7.3.200.0070.01616.38
7.3.190.0090.00816.37
7.3.180.0110.00916.40
7.3.170.0100.00816.39
7.3.160.0160.00516.24
7.3.150.0090.01216.49
7.3.140.0080.01016.40
7.3.130.0110.00916.39
7.3.120.0060.01515.83
7.3.110.0090.01215.96
7.3.100.0110.01015.84
7.3.90.0090.00915.95
7.3.80.0120.00515.66
7.3.70.0080.00815.42
7.3.60.0100.00715.47
7.3.50.0080.01015.41
7.3.40.0090.00915.46
7.3.30.0080.00915.48
7.3.20.0210.00815.95
7.3.10.0280.00715.80
7.3.00.0270.00715.83
7.2.340.0090.00916.39
7.2.330.0060.01316.59
7.2.320.0110.01416.50
7.2.310.0110.00716.24
7.2.300.0090.01216.27
7.2.290.0100.01316.49
7.2.280.0060.01616.38
7.2.270.0090.01116.38
7.2.260.0110.01216.50
7.2.250.0120.00816.08
7.2.240.0090.01316.09
7.2.230.0060.01115.89
7.2.220.0120.00716.01
7.2.210.0120.00615.71
7.2.200.0070.01115.63
7.2.190.0110.00915.56
7.2.180.0110.00915.60
7.2.170.0100.00615.64
7.2.160.0110.00915.74
7.2.150.0310.00915.91
7.2.140.0370.00915.95
7.2.130.0260.00815.87
7.2.120.0400.00715.93
7.2.110.0290.00815.88
7.2.100.0240.00815.90
7.2.90.0210.01015.88
7.2.80.0260.00815.83
7.2.70.0250.01115.84
7.2.60.0240.01115.94
7.2.50.0240.01015.87
7.2.40.0400.00816.06
7.2.30.0350.00816.10
7.2.20.0240.01216.11
7.2.10.0370.01016.06
7.2.00.0400.01016.09
7.1.330.0140.00815.27
7.1.320.0130.00815.38
7.1.310.0130.00915.11
7.1.300.0110.01015.09
7.1.290.0140.00815.14
7.1.280.0160.00515.11
7.1.270.0100.01115.09
7.1.260.0130.00615.13
7.1.250.0370.01014.77
7.1.240.0280.01214.66
7.1.230.0310.00914.60
7.1.220.0350.01014.68
7.1.210.0320.01014.63
7.1.200.0320.00814.75
7.1.190.0350.00714.67
7.1.180.0390.00614.54
7.1.170.0370.00814.62
7.1.160.0420.00814.84
7.1.150.0480.00914.92
7.1.140.0440.00814.91
7.1.130.0260.01014.90
7.1.120.0400.01014.92
7.1.110.0430.00814.83
7.1.100.0330.00914.76
7.1.90.0330.01114.89
7.1.80.0360.00814.91
7.1.70.0250.00914.67
7.1.60.0480.00816.98
7.1.50.0400.00916.97
7.1.40.0570.01016.93
7.1.30.0370.01016.93
7.1.20.0230.01116.92
7.1.10.0350.01014.51
7.1.00.0330.01214.63
7.0.330.0260.00714.87
7.0.320.0340.00814.44
7.0.310.0460.00814.30
7.0.300.0290.00814.40
7.0.290.0460.01314.71
7.0.280.0310.00914.35
7.0.270.0490.00814.64
7.0.260.0450.01014.66
7.0.250.0410.01114.64
7.0.240.0480.01114.60
7.0.230.0400.00814.60
7.0.220.0390.00514.44
7.0.210.0380.00814.40
7.0.200.0400.01014.41
7.0.190.0360.01014.40
7.0.180.0400.00814.30
7.0.170.0320.00914.37
7.0.160.0360.01014.31
7.0.150.0350.01214.35
7.0.140.0430.00714.36
7.0.130.0340.01014.46
7.0.120.0280.00914.48
7.0.110.0650.01314.39
7.0.100.0370.00914.41
7.0.90.0370.00914.35
7.0.80.0340.01114.43
7.0.70.0350.01214.30
7.0.60.0370.01014.42
7.0.50.0380.00814.36
7.0.40.0220.01014.38
7.0.30.0370.00814.49
7.0.20.0340.00914.36
7.0.10.0370.00914.38
7.0.00.0420.00714.40
5.6.400.0180.01015.06
5.6.390.0170.00715.14
5.6.380.0130.01214.74
5.6.370.0120.01315.10
5.6.360.0160.00914.91
5.6.350.0170.00814.96
5.6.340.0150.00914.93
5.6.330.0130.01414.97
5.6.320.0170.00814.97
5.6.310.0160.00915.03
5.6.300.0180.01816.05
5.6.290.0170.01916.00
5.6.280.0160.02015.99
5.6.270.0150.02015.98
5.6.260.0140.02315.98
5.6.250.0160.01916.01
5.6.240.0190.02316.09
5.6.230.0180.01715.96
5.6.220.0160.02315.95
5.6.210.0150.01715.86
5.6.200.0160.01815.89
5.6.190.0160.02215.93
5.6.180.0110.02015.90
5.6.170.0130.02415.86
5.6.160.0140.02115.84
5.6.150.0140.02015.96
5.6.140.0130.02215.89
5.6.130.0150.02315.97
5.6.120.0160.02215.95
5.6.110.0170.01915.91
5.6.100.0160.01915.95
5.6.90.0170.01915.86
5.6.80.0180.01615.68
5.6.70.0150.01915.77
5.6.60.0120.02015.81
5.6.50.0160.01915.79
5.6.40.0190.01615.86
5.6.30.0170.01815.78
5.6.20.0150.02015.78
5.6.10.0130.02015.79
5.6.00.0140.02315.74

preferences:
30.19 ms | 403 KiB | 5 Q