3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Collection { } interface Geocoder { public function geocode(): Collection; } class MyCollection implements Collection { } class MyGeocoder implements Geocoder { public function geocode(): MyCollection { return new MyCollection(); } } class Consumer { public function __construct(MyGeocoder $gecoder) { // } }

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.90.0080.00026.77
8.3.80.0040.00419.36
8.3.70.0070.01016.58
8.3.60.0100.00716.75
8.3.50.0270.00722.04
8.3.40.0140.00718.66
8.3.30.0090.00618.34
8.3.20.0030.00620.42
8.3.10.0080.00021.64
8.3.00.0040.00421.85
8.2.210.0080.00026.77
8.2.200.0040.00818.88
8.2.190.0180.00316.58
8.2.180.0100.00718.16
8.2.170.0140.00722.96
8.2.160.0070.00721.95
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0040.00419.84
8.2.120.0070.00026.35
8.2.110.0090.00020.47
8.2.100.0030.00917.72
8.2.90.0030.00519.11
8.2.80.0040.00417.97
8.2.70.0080.00317.50
8.2.60.0050.00317.80
8.2.50.0040.00418.10
8.2.40.0050.00220.55
8.2.30.0040.00419.20
8.2.20.0080.00017.99
8.2.10.0000.00718.00
8.2.00.0040.00417.71
8.1.290.0090.00330.84
8.1.280.0100.01025.92
8.1.270.0030.00621.92
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0030.00620.84
8.1.230.0080.00419.04
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0000.00718.10
8.1.170.0030.00618.59
8.1.160.0000.01022.15
8.1.150.0040.00422.15
8.1.140.0000.00819.36
8.1.130.0040.00417.54
8.1.120.0070.00017.38
8.1.110.0030.00517.29
8.1.100.0000.00717.30
8.1.90.0030.00517.26
8.1.80.0040.00417.39
8.1.70.0000.00817.28
8.1.60.0030.00617.52
8.1.50.0040.00417.40
8.1.40.0050.00317.36
8.1.30.0040.00417.49
8.1.20.0040.00417.45
8.1.10.0000.00717.39
8.1.00.0040.00417.21
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.36
8.0.270.0000.00717.13
8.0.260.0000.00817.18
8.0.250.0030.00316.86
8.0.240.0000.00716.75
8.0.230.0000.00716.86
8.0.220.0040.00416.67
8.0.210.0070.00016.75
8.0.200.0040.00416.89
8.0.190.0030.00716.89
8.0.180.0000.00816.73
8.0.170.0030.00516.79
8.0.160.0000.00716.90
8.0.150.0070.00016.79
8.0.140.0030.00416.81
8.0.130.0090.00013.24
8.0.120.0030.00516.75
8.0.110.0000.00716.84
8.0.100.0000.00816.68
8.0.90.0000.00716.84
8.0.80.0090.00616.81
8.0.70.0040.00416.69
8.0.60.0000.00716.86
8.0.50.0000.00716.70
8.0.30.0100.00817.19
8.0.20.0120.00817.40
8.0.10.0040.00416.82
8.0.00.0110.00616.59
7.4.330.0000.00515.55
7.4.320.0000.00716.53
7.4.300.0000.00616.42
7.4.290.0030.00316.51
7.4.280.0030.00516.38
7.4.270.0070.00016.43
7.4.260.0000.00716.56
7.4.250.0070.00016.39
7.4.240.0000.00716.39
7.4.230.0030.00316.55
7.4.220.0100.01016.34
7.4.210.0090.01216.43
7.4.200.0000.00716.32
7.4.160.0080.01116.40
7.4.150.0120.00617.40
7.4.140.0080.00817.86
7.4.130.0110.00916.48
7.4.120.0060.01016.38
7.4.110.0120.00616.48
7.4.100.0130.00716.44
7.4.90.0140.00316.31
7.4.80.0090.00919.39
7.4.70.0090.00616.41
7.4.60.0080.00816.29
7.4.50.0060.00816.29
7.4.40.0170.02716.56
7.4.30.0030.01316.24
7.4.00.0090.00514.90
7.3.330.0000.00613.23
7.3.320.0060.00013.23
7.3.310.0040.00416.05
7.3.300.0030.00316.09
7.3.290.0060.00916.24
7.3.280.0090.01016.24
7.3.270.0110.00717.40
7.3.260.0090.00816.32
7.3.250.0070.01116.38
7.3.240.0130.00616.42
7.3.230.0140.00516.43
7.3.210.0130.00316.24
7.3.200.0100.01316.50
7.3.190.0110.01116.39
7.3.180.0070.01216.33
7.3.170.0090.00916.42
7.3.160.0120.00816.44
7.3.120.0040.01414.79
7.3.110.0070.01014.87
7.3.100.0060.00614.81
7.3.90.0100.01014.47
7.3.80.0040.01114.55
7.3.70.0090.00314.84
7.3.60.0070.00714.80
7.3.50.0060.00314.78
7.3.40.0030.01014.85
7.3.30.0000.01114.73
7.3.20.0060.01016.48
7.3.10.0100.00716.57
7.3.00.0080.00016.75
7.2.330.0090.00916.63
7.2.320.0070.01116.29
7.2.310.0060.00916.55
7.2.300.0060.01216.31
7.2.290.0120.00916.49
7.2.250.0100.01014.89
7.2.240.0070.01015.09
7.2.230.0090.00614.83
7.2.220.0070.01314.48
7.2.210.0080.00814.89
7.2.200.0100.00714.75
7.2.190.0030.01414.58
7.2.180.0070.00714.93
7.2.170.0100.00314.61
7.2.60.0030.01016.68
7.2.00.0130.00619.31
7.1.330.0040.01215.56
7.1.320.0030.01015.83
7.1.310.0030.01315.75
7.1.300.0030.01015.70
7.1.290.0040.01115.63
7.1.280.0080.00415.40
7.1.270.0030.00615.66
7.1.260.0080.00415.68
7.1.200.0070.00715.79
7.1.100.0030.00917.89
7.1.70.0030.00316.91
7.1.60.0040.00717.27
7.1.50.0200.01216.62
7.1.00.0000.07722.36
7.0.200.0240.00316.47
7.0.120.0070.05722.21
7.0.110.0100.05722.03
7.0.100.0100.05322.09
7.0.90.0030.06022.06
7.0.80.0030.05722.11
7.0.70.0130.07021.97
7.0.60.0030.06021.73
7.0.50.0030.05722.16
7.0.40.0130.04722.06
7.0.30.0100.05022.20
7.0.20.0100.05321.98
7.0.10.0100.06722.10
7.0.00.0070.07021.98
5.6.270.0070.05320.89
5.6.260.0100.05720.88
5.6.250.0030.06021.05
5.6.240.0030.06320.88
5.6.230.0100.05321.09
5.6.220.0100.07321.00
5.6.210.0130.05020.95
5.6.200.0100.05321.04
5.6.190.0000.06720.80
5.6.180.0070.05320.93
5.6.170.0070.05321.04
5.6.160.0100.05320.87
5.6.150.0200.05021.04
5.6.140.0070.06020.75
5.6.130.0000.06320.83
5.6.120.0070.06320.83
5.6.110.0130.05020.99
5.6.100.0030.06320.87
5.6.90.0100.06021.01
5.6.80.0130.06320.39
5.6.70.0100.05020.38
5.6.60.0070.05320.21
5.6.50.0100.05020.45
5.6.40.0130.04720.40
5.6.30.0030.06020.20
5.6.20.0030.06020.39
5.6.10.0030.05720.30
5.6.00.0030.05320.40

preferences:
29.38 ms | 401 KiB | 5 Q