3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User {} interface UserGateway { function find($id): User; } class UserGateway_MySql implements UserGateway { // must return User or subtype of User function find($id) { return new User(); } } ?>

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.60.0150.00616.63
8.3.50.0120.00521.11
8.3.40.0120.00318.58
8.3.30.0070.00718.59
8.3.20.0040.00420.33
8.3.10.0080.00023.67
8.3.00.0040.00423.48
8.2.180.0080.00618.16
8.2.170.0070.00722.96
8.2.160.0070.01020.53
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0080.00021.04
8.2.120.0060.00326.35
8.2.110.0000.00920.16
8.2.100.0120.00017.55
8.2.90.0030.00619.09
8.2.80.0040.00417.97
8.2.70.0030.00617.48
8.2.60.0050.00317.80
8.2.50.0050.00318.09
8.2.40.0050.00322.33
8.2.30.0040.00419.36
8.2.20.0050.00519.48
8.2.10.0050.00217.89
8.2.00.0000.00717.86
8.1.280.0070.00725.92
8.1.270.0130.00622.02
8.1.260.0080.00028.09
8.1.250.0020.00528.09
8.1.240.0050.00523.90
8.1.230.0070.00420.98
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0040.00417.13
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0080.00020.64
8.1.150.0040.00418.81
8.1.140.0000.00819.56
8.1.130.0070.00017.50
8.1.120.0000.00717.40
8.1.110.0000.00717.32
8.1.100.0030.00317.29
8.1.90.0070.00017.28
8.1.80.0030.00517.39
8.1.70.0040.00417.40
8.1.60.0030.00617.41
8.1.50.0030.00617.45
8.1.40.0030.00617.49
8.1.30.0030.00517.59
8.1.20.0030.00617.47
8.1.10.0040.00417.32
8.1.00.0040.00417.28
8.0.300.0000.00718.77
8.0.290.0050.00316.58
8.0.280.0080.00018.36
8.0.270.0030.00317.18
8.0.260.0000.00617.04
8.0.250.0000.00716.93
8.0.240.0030.00616.94
8.0.230.0040.00416.90
8.0.220.0000.00716.89
8.0.210.0000.00816.85
8.0.200.0060.00016.86
8.0.190.0040.00416.93
8.0.180.0000.00816.88
8.0.170.0040.00416.93
8.0.160.0040.00416.77
8.0.150.0030.00316.71
8.0.140.0040.00416.75
8.0.130.0030.00313.34
8.0.120.0040.00416.80
8.0.110.0040.00416.78
8.0.100.0050.00216.82
8.0.90.0040.00416.82
8.0.80.0070.00716.92
8.0.70.0040.00416.92
8.0.60.0040.00416.83
8.0.50.0040.00416.78
8.0.30.0130.00616.99
8.0.20.0050.01417.40
8.0.10.0040.00416.84
8.0.00.0070.01216.70
7.4.330.0000.00516.73
7.4.320.0060.00016.51
7.4.300.0000.00816.36
7.4.290.0000.00716.45
7.4.280.0040.00416.43
7.4.270.0000.00716.43
7.4.260.0040.00416.39
7.4.250.0040.00416.41
7.4.240.0050.00216.43
7.4.230.0030.00316.37
7.4.220.0030.01216.50
7.4.210.0030.01116.50
7.4.200.0070.00016.56
7.4.160.0090.00616.35
7.4.150.0070.01317.40
7.4.140.0110.00717.86
7.4.130.0090.01616.26
7.4.120.0120.00616.35
7.4.110.0100.01416.37
7.4.100.0100.00716.43
7.4.90.0030.01316.50
7.4.80.0060.01619.39
7.4.70.0160.00416.69
7.4.60.0090.00916.62
7.4.50.0110.00316.49
7.4.40.0090.00616.36
7.4.30.0160.00716.43
7.4.00.0080.00615.17
7.3.330.0030.00513.24
7.3.320.0000.00613.02
7.3.310.0070.00016.13
7.3.300.0050.00216.25
7.3.290.0050.00216.20
7.3.280.0110.00816.23
7.3.270.0140.00317.40
7.3.260.0100.00716.24
7.3.240.0100.00716.43
7.3.230.0080.01116.39
7.3.210.0140.00316.39
7.3.200.0070.01019.39
7.3.190.0030.01316.28
7.3.180.0030.02016.26
7.3.170.0160.00616.27
7.3.160.0120.00416.53
7.2.330.0100.00716.61
7.2.320.0040.01416.58
7.2.310.0050.01116.44
7.2.300.0110.00616.49
7.2.290.0040.01416.53
7.2.60.0040.01116.84
7.2.00.0040.01119.18
7.1.200.0060.00615.45
7.1.100.0060.00317.95
7.1.70.0070.00016.89
7.1.60.0100.01319.40
7.1.50.0060.01616.61
7.1.00.0030.07722.29
7.0.200.0030.00616.76
7.0.60.0000.08021.80
7.0.50.0100.08017.87
7.0.40.0070.05020.02
7.0.30.0270.07720.13
7.0.20.0370.07020.16
7.0.10.0000.04720.07
7.0.00.0000.05720.23
5.6.280.0100.05321.08
5.6.210.0130.07320.78
5.6.200.0100.06018.19
5.6.190.0070.07320.42
5.6.180.0230.07320.61
5.6.170.0300.05020.44
5.6.160.0130.08020.52
5.6.150.0000.05018.23
5.6.140.0130.04018.29
5.6.130.0130.07018.19
5.6.120.0070.05021.02
5.6.110.0200.07721.09
5.6.100.0070.05321.09
5.6.90.0070.06721.00
5.6.80.0030.08320.43
5.5.350.4000.03720.39
5.5.340.0100.03717.96
5.5.330.0070.07720.57
5.5.320.0170.04320.31
5.5.310.0300.06320.39
5.5.300.0000.04318.02
5.5.290.0030.04317.95
5.5.280.0070.06320.62
5.5.270.0030.06320.95
5.5.260.0070.05320.73
5.5.250.0070.07020.69
5.5.240.0270.05320.19

preferences:
44.68 ms | 401 KiB | 5 Q