3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I1 { public static function foo($bar) : int; } interface I2 { public static function foo($bar) : string; } class A implements I1, I2 { // which interface should be inherited here? public static function foo($bar) : int {} }

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.5.30.0110.00720.73
8.5.20.0100.00719.61
8.5.10.0090.00816.88
8.5.00.0100.01120.09
8.4.180.0160.00721.95
8.4.170.0140.01121.95
8.4.160.0100.01220.23
8.4.150.0050.00816.77
8.4.140.0120.01117.46
8.4.130.0060.00320.39
8.4.120.0100.00920.68
8.4.110.0040.00622.41
8.4.100.0100.01117.44
8.4.90.0140.00718.45
8.4.80.0130.00619.56
8.4.70.0090.01117.68
8.4.60.0100.01018.60
8.4.50.0130.00721.81
8.4.40.0100.01019.56
8.4.30.0080.01217.61
8.4.20.0070.01319.76
8.4.10.0000.00917.65
8.3.300.0120.00818.29
8.3.290.0100.00920.71
8.3.280.0120.00818.39
8.3.270.0080.01116.76
8.3.260.0130.00716.86
8.3.250.0130.00618.84
8.3.240.0120.00716.70
8.3.230.0120.00416.51
8.3.220.0120.00717.09
8.3.210.0090.00916.92
8.3.200.0030.00616.62
8.3.190.0100.00918.95
8.3.180.0120.00817.10
8.3.170.0130.00616.65
8.3.160.0110.00716.72
8.3.150.0190.00017.27
8.3.140.0030.00620.79
8.3.130.0090.00018.55
8.3.120.0060.01218.75
8.3.110.0090.00620.94
8.3.100.0040.00424.06
8.3.90.0090.00626.77
8.3.80.0090.00018.68
8.3.70.0070.00718.43
8.3.60.0070.01518.68
8.3.50.0190.00517.31
8.3.40.0140.00018.54
8.3.30.0000.01418.54
8.3.20.0000.00723.52
8.3.10.0000.00823.48
8.3.00.0050.00221.60
8.2.300.0150.00622.08
8.2.290.0130.00620.41
8.2.280.0090.01018.61
8.2.270.0150.00316.67
8.2.260.0000.00822.16
8.2.250.0030.00618.17
8.2.240.0040.00416.70
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0090.00626.77
8.2.200.0040.00718.41
8.2.190.0140.00716.63
8.2.180.0110.00416.63
8.2.170.0140.00722.96
8.2.160.0090.00922.09
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00420.52
8.2.120.0050.00326.35
8.2.110.0030.00721.19
8.2.100.0060.00617.59
8.2.90.0030.00619.27
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0000.00818.10
8.2.40.0000.00820.64
8.2.30.0000.00719.26
8.2.20.0040.00418.08
8.2.10.0000.00717.96
8.2.00.0060.00317.89
8.1.340.0120.01221.52
8.1.330.0110.00822.02
8.1.320.0110.00816.00
8.1.310.0170.00016.71
8.1.300.0090.00916.01
8.1.290.0030.00518.88
8.1.280.0040.01125.92
8.1.270.0040.00422.11
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00020.89
8.1.230.0080.00317.57
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0050.00317.10
8.1.180.0000.00718.10
8.1.170.0050.00320.29
8.1.160.0040.00418.68
8.1.150.0040.00418.82
8.1.140.0040.00418.98
8.1.130.0030.00317.75
8.1.120.0000.00817.39
8.1.110.0030.00617.33
8.1.100.0000.00717.38
8.1.90.0030.00717.28
8.1.80.0000.00817.36
8.1.70.0030.00317.27
8.1.60.0040.00417.52
8.1.50.0070.00617.43
8.1.40.0040.00417.48
8.1.30.0040.00417.49
8.1.20.0000.00717.54
8.1.10.0050.00217.26
8.1.00.0000.00717.27
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0070.00018.38
8.0.270.0070.00017.18
8.0.260.0000.00617.10
8.0.250.0030.00316.91
8.0.240.0070.00016.85
8.0.230.0000.00716.82
8.0.220.0040.00416.91
8.0.210.0020.00516.90
8.0.200.0080.00016.86
8.0.190.0070.00016.92
8.0.180.0040.00416.90
8.0.170.0080.00016.91
8.0.160.0000.00916.90
8.0.150.0040.00416.90
8.0.140.0030.00616.84
8.0.130.0040.00413.28
8.0.120.0060.00316.89
8.0.110.0040.00416.83
8.0.100.0000.00816.82
8.0.90.0000.00716.71
8.0.80.0040.01116.84
8.0.70.0050.00316.91
8.0.60.0050.00316.84
8.0.50.0050.00216.91
8.0.30.0130.00616.98
8.0.20.0120.00617.40
8.0.10.0000.00716.91
8.0.00.0110.00616.62
7.4.330.0030.00316.79
7.4.320.0030.00316.45
7.4.300.0000.00616.37
7.4.290.0030.00516.41
7.4.280.0060.00316.55
7.4.270.0000.00716.35
7.4.260.0030.00316.35
7.4.250.0030.00316.39
7.4.240.0000.00816.33
7.4.230.0070.00016.45
7.4.220.0080.00016.54
7.4.210.0090.00516.55
7.4.200.0030.00316.51
7.4.160.0070.01016.45
7.4.150.0100.00717.40
7.4.140.0130.00817.86
7.4.130.0100.01616.46
7.4.120.0100.00916.52
7.4.110.0100.01316.38
7.4.100.0070.02216.52
7.4.90.0070.01016.42
7.4.80.0130.00319.39
7.4.70.0090.01516.41
7.4.60.0100.00616.28
7.4.50.0130.00316.58
7.4.40.0060.01116.55
7.4.30.0040.01116.46
7.4.00.0020.01414.77
7.3.330.0000.00613.21
7.3.320.0000.00713.14
7.3.310.0040.00416.25
7.3.300.0070.00016.24
7.3.290.0060.00016.10
7.3.280.0050.01116.27
7.3.270.0110.00717.40
7.3.260.0100.00816.33
7.3.250.0130.00716.38
7.3.240.0160.00716.37
7.3.230.0100.00716.29
7.3.210.0150.00916.10
7.3.200.0090.01216.42
7.3.190.0030.01216.43
7.3.180.0040.01116.38
7.3.170.0100.00616.37
7.3.160.0120.00616.29
7.3.120.0170.00014.90
7.3.110.0070.00714.96
7.3.100.0040.00814.86
7.3.90.0100.00314.67
7.3.80.0060.00314.79
7.3.70.0050.00514.74
7.3.60.0000.00914.47
7.3.50.0100.00014.46
7.3.40.0110.00314.71
7.3.30.0090.00314.57
7.3.20.0030.00816.59
7.3.10.0070.00716.62
7.3.00.0060.00616.52
7.2.330.0030.01316.33
7.2.320.0120.00516.43
7.2.310.0100.00716.39
7.2.300.0030.01716.24
7.2.290.0130.00316.62
7.2.250.0060.01314.99
7.2.240.0070.01314.93
7.2.230.0100.00614.85
7.2.220.0040.01115.12
7.2.210.0070.00714.58
7.2.200.0070.00715.03
7.2.190.0130.00314.67
7.2.180.0060.00914.93
7.2.170.0060.00614.75
7.2.130.0030.01016.72
7.2.120.0030.01016.68
7.2.110.0050.00616.41
7.2.100.0040.01116.81
7.2.90.0040.00716.89
7.2.80.0070.00716.57
7.2.70.0060.00316.82
7.2.60.0030.01216.80
7.2.50.0060.01016.52
7.2.40.0070.01016.89
7.2.30.0070.00416.83
7.2.20.0050.00816.68
7.2.10.0080.00816.66
7.2.00.0060.00818.59
7.1.330.0030.01015.65
7.1.320.0030.00615.71
7.1.310.0030.01015.32
7.1.300.0040.01115.51
7.1.290.0070.00715.56
7.1.280.0000.01015.38
7.1.270.0060.00915.61
7.1.260.0000.01415.60
7.1.250.0040.00715.60
7.1.200.0000.00915.71
7.1.120.0040.01118.64
7.1.110.0030.00918.06
7.1.100.0090.00317.74
7.1.90.0060.01217.99
7.1.80.0040.01118.22
7.1.70.0030.00916.74
7.1.60.0200.00734.93
7.1.50.0190.00634.73
7.1.40.0150.01134.14
7.1.30.0200.01034.38
7.1.20.0170.01434.51
7.1.10.0060.00616.32
7.1.00.0060.01016.58

preferences:
60.2 ms | 1594 KiB | 5 Q