3v4l.org

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

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.0040.01416.50
8.3.50.0100.01017.82
8.3.40.0090.00618.70
8.3.30.0110.00418.72
8.3.20.0070.00020.77
8.3.10.0060.00323.37
8.3.00.0070.00022.50
8.2.180.0090.00618.07
8.2.170.0070.00722.96
8.2.160.0100.01022.11
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00721.12
8.2.120.0080.00026.35
8.2.110.0070.00322.08
8.2.100.0070.00717.84
8.2.90.0040.00417.75
8.2.80.0060.00317.97
8.2.70.0000.00817.91
8.2.60.0060.00318.16
8.2.50.0040.00418.10
8.2.40.0040.00419.29
8.2.30.0040.00419.15
8.2.20.0030.00517.97
8.2.10.0000.00719.21
8.2.00.0030.00517.89
8.1.280.0070.01025.92
8.1.270.0000.00922.02
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.42
8.1.230.0000.01519.03
8.1.220.0080.00017.74
8.1.210.0040.00420.92
8.1.200.0030.00617.23
8.1.190.0050.00317.11
8.1.180.0080.00018.10
8.1.170.0000.00818.56
8.1.160.0000.00718.75
8.1.150.0070.00018.74
8.1.140.0070.00020.13
8.1.130.0030.00318.81
8.1.120.0000.00717.31
8.1.110.0030.00617.37
8.1.100.0000.00717.35
8.1.90.0040.00417.34
8.1.80.0000.00817.32
8.1.70.0000.00717.37
8.1.60.0040.00417.52
8.1.50.0040.00417.48
8.1.40.0000.00917.51
8.1.30.0040.00417.46
8.1.20.0040.00417.58
8.1.10.0040.00417.37
8.1.00.0060.00317.34
8.0.300.0000.00721.64
8.0.290.0000.00816.75
8.0.280.0040.00418.39
8.0.270.0040.00417.22
8.0.260.0000.00618.42
8.0.250.0030.00316.95
8.0.240.0030.00316.99
8.0.230.0070.00016.93
8.0.220.0000.00816.89
8.0.210.0070.00016.92
8.0.200.0070.00016.93
8.0.190.0040.00816.96
8.0.180.0040.00416.78
8.0.170.0040.00416.92
8.0.160.0080.00016.80
8.0.150.0040.00416.92
8.0.140.0050.00316.82
8.0.130.0000.00513.32
8.0.120.0000.00716.87
8.0.110.0070.00016.77
8.0.100.0040.00416.85
8.0.90.0040.00416.76
8.0.80.0040.01116.84
8.0.70.0000.00816.91
8.0.60.0030.00316.87
8.0.50.0000.00816.86
8.0.30.0100.00716.95
8.0.20.0150.00616.91
8.0.10.0000.00717.07
8.0.00.0070.01116.65
7.4.330.0050.00015.55
7.4.320.0000.00616.50
7.4.300.0000.00616.57
7.4.290.0070.00016.48
7.4.280.0000.00716.53
7.4.270.0070.00016.50
7.4.260.0000.00716.36
7.4.250.0000.00716.48
7.4.240.0000.00716.41
7.4.230.0070.00016.53
7.4.220.0000.00816.33
7.4.210.0070.00716.43
7.4.200.0040.00416.53
7.4.160.0080.00716.34
7.4.140.0110.00717.86
7.4.130.0150.00916.32
7.4.120.0170.00016.25
7.4.110.0090.00616.32
7.4.100.0100.01016.43
7.4.90.0070.01316.35
7.4.80.0060.01619.39
7.4.70.0080.01116.26
7.4.60.0090.00616.41
7.4.50.0090.00916.16
7.4.40.0070.01616.57
7.4.00.0070.00714.64
7.3.330.0080.00013.19
7.3.320.0030.00313.20
7.3.310.0000.00716.33
7.3.300.0030.00316.21
7.3.290.0000.00716.10
7.3.280.0070.01016.18
7.3.260.0150.00516.42
7.3.240.0120.00616.36
7.3.230.0060.01116.55
7.3.210.0060.00916.28
7.3.200.0000.01516.23
7.3.190.0110.01116.23
7.3.180.0100.00716.26
7.3.170.0090.01216.41
7.3.160.0220.00016.41
7.3.30.0110.01114.52
7.3.20.1750.00314.62
7.3.10.1580.01314.65
7.3.00.1930.01014.59
7.2.330.0150.00616.20
7.2.320.0080.01116.48
7.2.310.0080.00816.41
7.2.300.0000.01616.60
7.2.290.0100.00716.57
7.2.160.0090.00614.50
7.2.150.1360.01314.87
7.2.140.1540.01014.66
7.2.130.1440.00315.02
7.2.120.1600.00714.95
7.2.110.1380.00714.64
7.2.100.1490.00314.85
7.2.90.1740.00714.50
7.2.80.1640.01014.81
7.2.70.1680.01014.83
7.2.60.2160.01314.70
7.2.50.1560.01014.99
7.2.40.1430.01014.96
7.2.30.1810.01014.71
7.2.20.1280.00314.80
7.2.10.1190.00614.91
7.2.00.1070.00714.79
7.1.270.1400.01013.70
7.1.260.1910.00313.64
7.1.250.1740.00713.58

preferences:
56.52 ms | 400 KiB | 5 Q