3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); (function():int{ 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.3.70.0070.01418.45
8.3.60.0170.00318.25
8.3.50.0160.00221.21
8.3.40.0100.00318.57
8.3.30.0150.00418.67
8.3.20.0040.00420.35
8.3.10.0070.00021.76
8.3.00.0040.00419.68
8.2.180.0110.00416.50
8.2.170.0150.00022.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0070.00322.29
8.2.100.0090.00317.75
8.2.90.0000.00719.21
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0050.00219.29
8.2.30.0080.00019.85
8.2.20.0000.00817.79
8.2.10.0030.00517.93
8.2.00.0000.00817.96
8.1.280.0030.01425.92
8.1.270.0040.00420.32
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.53
8.1.230.0090.00317.48
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0060.00317.38
8.1.190.0000.00917.10
8.1.180.0060.00318.10
8.1.170.0000.00818.65
8.1.160.0000.00722.06
8.1.150.0000.00718.76
8.1.140.0050.00317.29
8.1.130.0000.00717.62
8.1.120.0070.00017.39
8.1.110.0070.00017.38
8.1.100.0000.00717.30
8.1.90.0070.00017.29
8.1.80.0000.00717.40
8.1.70.0000.00717.40
8.1.60.0090.00017.55
8.1.50.0040.00417.47
8.1.40.0000.00817.42
8.1.30.0060.00317.59
8.1.20.0020.00517.64
8.1.10.0000.00817.39
8.1.00.0060.00317.41
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.45
8.0.270.0070.00017.11
8.0.260.0030.00317.25
8.0.250.0000.00716.96
8.0.240.0000.00816.95
8.0.230.0050.00316.92
8.0.220.0030.00316.89
8.0.210.0000.00716.92
8.0.200.0030.00316.84
8.0.190.0040.00816.88
8.0.180.0000.00816.97
8.0.170.0030.00516.89
8.0.160.0040.00416.91
8.0.150.0000.00716.93
8.0.140.0050.00216.85
8.0.130.0000.00513.41
8.0.120.0000.00816.86
8.0.110.0080.00016.89
8.0.100.0050.00216.84
8.0.90.0030.00616.81
8.0.80.0060.00916.90
8.0.70.0030.00616.72
8.0.60.0080.00016.98
8.0.50.0050.00216.81
8.0.30.0080.01116.98
8.0.20.0080.01717.40
8.0.10.0050.00316.98
8.0.00.0060.01216.72
7.4.330.0030.00315.08
7.4.320.0030.00316.58
7.4.300.0060.00016.42
7.4.290.0070.00016.49
7.4.280.0000.00816.57
7.4.270.0030.00316.51
7.4.260.0070.00016.46
7.4.250.0050.00316.59
7.4.240.0040.00416.54
7.4.230.0000.00816.38
7.4.220.0000.01516.43
7.4.210.0120.00816.67
7.4.200.0000.00716.61
7.4.160.0160.00316.29
7.4.150.0100.01017.40
7.4.140.0080.01117.86
7.4.130.0090.00916.46
7.4.120.0030.01316.44
7.4.110.0120.00616.38
7.4.100.0060.01216.33
7.4.90.0080.01216.34
7.4.80.0110.00519.39
7.4.70.0060.01116.43
7.4.60.0100.00616.50
7.4.50.0090.00016.58
7.4.40.0070.01016.50
7.4.30.0120.00616.41
7.4.00.0070.00914.67
7.3.330.0000.00613.30
7.3.320.0060.00013.23
7.3.310.0050.00216.28
7.3.300.0030.00316.29
7.3.290.0030.00316.10
7.3.280.0100.00816.28
7.3.270.0140.00717.40
7.3.260.0100.00716.36
7.3.240.0170.00316.39
7.3.230.0100.00716.44
7.3.210.0100.00716.41
7.3.200.0120.00816.19
7.3.190.0270.01816.37
7.3.180.0030.01316.45
7.3.170.0110.01116.46
7.3.160.0120.00916.48
7.3.120.0070.01114.86
7.3.110.0070.01114.55
7.3.100.0040.01114.81
7.3.90.0040.01414.61
7.3.80.0070.00714.97
7.3.70.0080.00614.74
7.3.60.0100.00714.67
7.3.50.0060.00314.77
7.3.40.0040.00714.70
7.3.30.0070.00714.50
7.3.20.0100.00716.51
7.3.10.0030.01216.62
7.3.00.0080.00416.79
7.2.330.0070.01116.36
7.2.320.0090.00916.47
7.2.310.0130.00316.39
7.2.300.0060.01816.32
7.2.290.0150.00316.61
7.2.250.0040.01514.84
7.2.240.0030.01614.89
7.2.230.0130.00315.18
7.2.220.0110.00014.93
7.2.210.0060.01015.06
7.2.200.0070.00314.75
7.2.190.0090.00615.11
7.2.180.0030.00914.89
7.2.170.0060.00614.98
7.2.60.0040.01116.45
7.2.00.0030.01019.28
7.1.330.0080.00415.78
7.1.320.0030.00915.81
7.1.310.0030.01315.62
7.1.300.0090.00615.59
7.1.290.0070.00715.58
7.1.280.0030.01015.48
7.1.270.0100.00315.79
7.1.260.0000.01515.50
7.1.200.0000.01415.67
7.1.100.0040.01117.48
7.1.70.0000.00817.01
7.1.60.0040.00819.12
7.1.50.0070.01416.99
7.1.00.0030.07722.57
7.0.200.0070.01116.78
7.0.60.0100.06720.06
7.0.50.0070.03717.86
7.0.40.0100.03720.40
7.0.30.0270.08020.26
7.0.20.0300.06720.18
7.0.10.0030.08720.20
7.0.00.0030.04720.23
5.6.280.0100.06021.02
5.6.210.0000.09020.55
5.6.200.0100.08318.25
5.6.190.0170.07720.64
5.6.180.0230.03320.34
5.6.170.0230.08020.55
5.6.160.0100.08320.43
5.6.150.0030.07718.14
5.6.140.0070.04018.21
5.6.130.0100.04718.29
5.6.120.0070.05020.99
5.6.110.0100.07721.02
5.6.100.0100.05321.10
5.6.90.0100.08321.00
5.6.80.0000.06720.36
5.6.70.0330.06020.28
5.5.350.0230.08020.43
5.5.340.0030.07717.97
5.5.330.0030.08020.13
5.5.320.0400.06320.36
5.5.310.0170.07320.28
5.5.300.0070.05318.08
5.5.290.0130.04317.98
5.5.280.0030.06720.95
5.5.270.0070.08320.84
5.5.260.0170.07320.88
5.5.250.0030.08320.54
5.5.240.0270.06720.26
5.4.450.0470.07019.57
5.4.440.0470.07719.32
5.4.430.0770.07019.11
5.4.420.0800.06319.59
5.4.410.0870.05719.39
5.4.400.0830.06019.16
5.4.390.0700.06318.97
5.4.380.0500.07319.21
5.4.370.0530.06018.80
5.4.360.0500.05719.05
5.4.350.0730.05719.22
5.4.340.0500.06718.95
5.4.320.0570.06019.07
5.4.310.0500.05319.23
5.4.300.0670.05019.27
5.4.290.0530.05019.16
5.4.280.0430.05319.05
5.4.270.0570.05019.23
5.4.260.0570.05019.34
5.4.250.0500.06319.25
5.4.240.0470.06018.94
5.4.230.0570.05019.05
5.4.220.0500.05719.34
5.4.210.0570.05319.22
5.4.200.0630.04719.23
5.4.190.0670.05718.91
5.4.180.0570.05319.22
5.4.170.0530.06019.20
5.4.160.0600.04718.90
5.4.150.0470.06019.25
5.4.140.0470.05716.59
5.4.130.0630.04016.61
5.4.120.0500.05016.77
5.4.110.0500.05316.64
5.4.100.0500.05716.61
5.4.90.0670.04716.46
5.4.80.0470.06016.63
5.4.70.0130.05716.44
5.4.60.0230.04316.34
5.4.50.0130.06316.19
5.4.40.0030.07016.52
5.4.30.0100.04716.50
5.4.20.0000.07716.34

preferences:
50.06 ms | 401 KiB | 5 Q