3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Animal { public static function communicate(); public static function whatever(); } class Dog implements Animal { public static function communicate() { echo 'bark'; } public static function whatever() { } } class Cat implements Animal { public static function communicate() { echo 'meow'; } public static function whatever() { } }

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.0120.00916.50
8.3.50.0090.01218.21
8.3.40.0120.00618.84
8.3.30.0110.00418.75
8.3.20.0040.00420.78
8.3.10.0080.00023.55
8.3.00.0050.00322.46
8.2.180.0150.00618.41
8.2.170.0090.00622.96
8.2.160.0130.00022.26
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00021.12
8.2.120.0000.00726.35
8.2.110.0060.00321.12
8.2.100.0120.00319.06
8.2.90.0000.00719.17
8.2.80.0050.00318.04
8.2.70.0050.00317.91
8.2.60.0050.00318.09
8.2.50.0110.00418.10
8.2.40.0030.00619.20
8.2.30.0000.00719.30
8.2.20.0000.00717.91
8.2.10.0070.00019.24
8.2.00.0070.00018.04
8.1.280.0060.01225.92
8.1.270.0000.00718.76
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00322.18
8.1.230.0070.00319.10
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0070.00317.35
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0000.00718.80
8.1.150.0000.00718.86
8.1.140.0030.00320.16
8.1.130.0040.00417.25
8.1.120.0000.00717.41
8.1.110.0000.01017.38
8.1.100.0020.00517.26
8.1.90.0040.00417.38
8.1.80.0000.01017.35
8.1.70.0040.00417.38
8.1.60.0030.00617.52
8.1.50.0040.00417.52
8.1.40.0030.00517.32
8.1.30.0000.00717.59
8.1.20.0090.00017.48
8.1.10.0040.00417.33
8.1.00.0040.00417.19
8.0.300.0040.00419.69
8.0.290.0030.00616.63
8.0.280.0000.00718.38
8.0.270.0080.00017.19
8.0.260.0020.00516.63
8.0.250.0000.00716.88
8.0.240.0000.00716.84
8.0.230.0000.00716.86
8.0.220.0050.00316.75
8.0.210.0040.00416.78
8.0.200.0000.00716.90
8.0.190.0050.00216.85
8.0.180.0000.00716.85
8.0.170.0000.00816.86
8.0.160.0070.00016.66
8.0.150.0060.00316.76
8.0.140.0000.00716.81
8.0.130.0050.00013.21
8.0.120.0000.00716.68
8.0.110.0070.00016.69
8.0.100.0080.00016.72
8.0.90.0040.00416.78
8.0.80.0090.00616.73
8.0.70.0040.00416.87
8.0.60.0030.00516.62
8.0.50.0030.00516.69
8.0.30.0150.00616.97
8.0.20.0110.00817.09
8.0.10.0000.00716.81
8.0.00.0090.01116.76
7.4.330.0000.00515.55
7.4.320.0060.00016.46
7.4.300.0000.00716.55
7.4.290.0000.00816.32
7.4.280.0000.00816.53
7.4.270.0070.00016.34
7.4.260.0000.00916.34
7.4.250.0030.00316.51
7.4.240.0030.00616.46
7.4.230.0070.00016.50
7.4.220.0040.00416.62
7.4.210.0070.00716.43
7.4.200.0030.00316.18
7.4.160.0040.01216.27
7.4.140.0100.00817.86
7.4.130.0130.00716.31
7.4.120.0070.01016.40
7.4.110.0100.00716.63
7.4.100.0070.01016.56
7.4.90.0140.00316.33
7.4.80.0080.01519.39
7.4.70.0070.01016.44
7.4.60.0000.01516.45
7.4.50.0000.00916.34
7.4.40.0090.00916.17
7.4.00.0130.00614.61
7.3.330.0000.00513.07
7.3.320.0030.00313.18
7.3.310.0000.00716.07
7.3.300.0070.00016.04
7.3.290.0040.00416.03
7.3.280.0070.01116.18
7.3.260.0090.00816.26
7.3.240.0090.00916.47
7.3.230.0030.01316.35
7.3.210.0160.00516.41
7.3.200.0060.01116.10
7.3.190.0100.01016.38
7.3.180.0070.01016.26
7.3.170.0080.01416.25
7.3.160.0090.00816.27
7.3.120.0060.01314.78
7.3.110.0070.01114.32
7.3.100.0100.00314.90
7.3.90.0110.00014.39
7.3.80.0080.00414.59
7.3.70.0030.01014.64
7.3.60.0000.01314.65
7.3.50.0070.00714.70
7.3.40.0000.01414.65
7.3.30.0060.01014.59
7.3.20.2180.00215.59
7.3.10.1710.00715.56
7.3.00.1560.00615.45
7.2.330.0120.00616.64
7.2.320.0100.01316.18
7.2.310.0080.00816.31
7.2.300.0060.00916.24
7.2.290.0160.00016.64
7.2.250.0090.00314.75
7.2.240.0040.01815.10
7.2.230.0060.01014.80
7.2.220.0030.00714.95
7.2.210.0030.01214.96
7.2.200.0030.01014.82
7.2.190.0120.00314.67
7.2.180.0030.01014.64
7.2.170.0090.00815.03
7.2.160.0110.00914.79
7.2.150.1670.00815.82
7.2.140.2380.01015.74
7.2.130.1600.00815.77
7.2.120.1700.00315.66
7.2.110.2140.00715.55
7.2.100.1790.00615.73
7.2.90.1570.00515.84
7.2.80.1430.00715.81
7.2.70.1470.01115.74
7.2.60.1630.00715.63
7.2.50.1690.00415.91
7.2.40.2160.00615.59
7.2.30.1620.00915.98
7.2.20.1460.01015.77
7.2.10.1730.00515.71
7.2.00.1690.01015.96
7.1.330.0030.01415.66
7.1.320.0070.00715.77
7.1.310.0030.00915.71
7.1.300.0090.00615.47
7.1.290.0030.00915.47
7.1.280.0040.01515.35
7.1.270.1980.00914.70
7.1.260.2230.00214.63
7.1.250.1910.00914.77

preferences:
63.86 ms | 401 KiB | 5 Q