3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); interface Animal {} class Cat implements Animal {} class Shelter { function adopt(Animal $a) {} } class CatShelter { function adopt(Cat $a) {} } $cat = new Cat; $shelter = new Shelter; $shelter->adopt($cat); $catShelter = new CatShelter; $catShelter->adopt($cat);

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.0070.01016.50
8.3.50.0240.01221.97
8.3.40.0000.01418.72
8.3.30.0090.00618.96
8.3.20.0080.00020.34
8.3.10.0040.00423.70
8.3.00.0040.00419.54
8.2.180.0060.00916.88
8.2.170.0100.00722.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.28
8.2.110.0030.00622.38
8.2.100.0120.00017.84
8.2.90.0000.00819.22
8.2.80.0080.00017.97
8.2.70.0060.00317.34
8.2.60.0080.00017.93
8.2.50.0050.00318.07
8.2.40.0060.00318.22
8.2.30.0040.00418.07
8.2.20.0000.00717.57
8.2.10.0070.00019.34
8.2.00.0040.00417.75
8.1.280.0140.00725.92
8.1.270.0040.00423.79
8.1.260.0000.00826.35
8.1.250.0030.01028.09
8.1.240.0060.00323.84
8.1.230.0100.00019.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0000.00817.63
8.1.180.0000.00818.10
8.1.170.0080.00018.58
8.1.160.0030.00522.04
8.1.150.0000.00818.63
8.1.140.0000.00717.51
8.1.130.0030.00317.83
8.1.120.0040.00417.52
8.1.110.0000.00817.34
8.1.100.0040.00417.46
8.1.90.0040.00417.51
8.1.80.0000.00717.38
8.1.70.0000.00717.39
8.1.60.0000.00717.62
8.1.50.0030.00617.49
8.1.40.0090.00017.57
8.1.30.0030.00617.57
8.1.20.0000.00817.65
8.1.10.0040.00417.56
8.1.00.0080.00017.34
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0030.00318.32
8.0.270.0050.00217.27
8.0.260.0030.00316.88
8.0.250.0030.00316.99
8.0.240.0040.00417.07
8.0.230.0000.00716.93
8.0.220.0060.00016.87
8.0.210.0000.00716.96
8.0.200.0060.00016.93
8.0.190.0030.00616.95
8.0.180.0000.00716.99
8.0.170.0040.00416.97
8.0.160.0000.00716.96
8.0.150.0020.00516.93
8.0.140.0040.00416.96
8.0.130.0000.00613.37
8.0.120.0050.00316.95
8.0.110.0000.00716.84
8.0.100.0040.00416.76
8.0.90.0040.00416.93
8.0.80.0040.01117.01
8.0.70.0070.00017.07
8.0.60.0000.00917.02
8.0.50.0050.00316.89
8.0.30.0120.00717.10
8.0.20.0070.01217.40
8.0.10.0040.00416.96
8.0.00.0080.01316.75
7.4.330.0000.00615.08
7.4.320.0070.00016.50
7.4.300.0040.00416.43
7.4.290.0030.00316.52
7.4.280.0000.00816.50
7.4.270.0030.00316.55
7.4.260.0000.00816.60
7.4.250.0000.00716.58
7.4.240.0030.00516.51
7.4.230.0000.00716.59
7.4.220.0060.01216.57
7.4.210.0070.00816.49
7.4.200.0070.00016.35
7.4.190.0040.00416.41
7.4.160.0090.01516.61
7.4.150.0130.00917.40
7.4.140.0090.01217.86
7.4.130.0080.01016.48
7.4.120.0140.00316.46
7.4.110.0100.00616.43
7.4.100.0040.01416.67
7.4.90.0110.00716.65
7.4.80.0070.01016.55
7.4.70.0150.00316.68
7.4.60.0120.00816.40
7.4.50.0000.00616.45
7.4.40.0040.01022.77
7.4.30.0060.00916.41
7.4.00.0070.01015.23
7.3.330.0050.00013.17
7.3.320.0000.00613.18
7.3.310.0030.00516.10
7.3.300.0060.00016.08
7.3.290.0070.00716.23
7.3.280.0080.00716.24
7.3.270.0120.00617.40
7.3.260.0190.00416.48
7.3.250.0130.00816.37
7.3.240.0100.00616.30
7.3.230.0140.00316.39
7.3.210.0110.00716.39
7.3.200.0080.00619.39
7.3.190.0130.00716.23
7.3.180.0100.00716.25
7.3.170.0030.01316.43
7.3.160.0170.00716.37
7.3.120.0100.00514.74
7.3.110.0070.01114.64
7.3.100.0030.00814.63
7.3.90.0000.00914.53
7.3.80.0000.01114.47
7.3.70.0080.00814.80
7.3.60.0000.01314.49
7.3.50.0120.00314.42
7.3.40.0090.00914.48
7.3.30.0090.00314.63
7.3.20.0040.00716.63
7.3.10.0110.00416.31
7.3.00.0060.00716.48
7.2.330.0150.00316.47
7.2.320.0060.00916.79
7.2.310.0170.00016.44
7.2.300.0080.00816.59
7.2.290.0000.01616.53
7.2.250.0110.00715.27
7.2.240.0130.00014.95
7.2.230.0030.01414.98
7.2.220.0040.01114.91
7.2.210.0060.01115.02
7.2.200.0120.00614.88
7.2.190.0060.00614.80
7.2.180.0000.01415.07
7.2.170.0070.00715.01
7.2.130.0130.00716.51
7.2.120.0180.00316.32
7.2.110.0170.00316.45
7.2.100.0230.00016.57
7.2.90.0070.01316.62
7.2.80.0140.00716.61
7.2.70.0110.01516.53
7.2.60.0090.00616.72
7.2.50.0170.00716.32
7.2.40.0210.00616.53
7.2.30.0120.00916.05
7.2.20.0180.00315.90
7.2.10.0040.01716.34
7.2.00.0130.01216.78
7.1.330.0030.00915.68
7.1.320.0100.00315.43
7.1.310.0090.00615.66
7.1.300.0000.01015.89
7.1.290.0100.00715.51
7.1.280.0120.00315.85
7.1.270.0030.01015.57
7.1.260.0030.00615.70
7.1.250.0110.00814.80
7.1.200.0030.01015.41
7.1.70.0000.00716.87
7.1.60.0110.01419.29
7.1.50.0070.01617.09
7.1.00.0100.07022.28
7.0.200.0040.00416.88
7.0.140.0070.06721.99
7.0.60.0130.07719.90
7.0.50.0000.07317.96
7.0.40.0070.04020.24
7.0.30.0300.04720.08
7.0.20.0400.07720.05
7.0.10.0000.09020.25
7.0.00.0030.06020.18
5.6.280.0100.06721.00
5.6.210.0100.07720.75
5.6.200.0100.04318.29
5.6.190.0100.06320.52
5.6.180.0330.07720.63
5.6.170.0330.02720.51
5.6.160.0100.07320.48
5.6.150.0100.04318.19
5.6.140.0070.03718.18
5.6.130.0030.05718.22
5.6.120.0030.07321.03
5.6.110.0030.04320.96
5.6.100.0100.08721.13
5.6.90.0130.04320.86
5.6.80.0200.05320.41
5.6.70.4500.03720.53
5.5.350.0130.07720.42
5.5.340.0100.07718.07
5.5.330.0030.04720.37
5.5.320.0130.07320.26
5.5.310.0270.04320.30
5.5.300.0000.04318.02
5.5.290.0070.06717.98
5.5.280.0000.07720.86
5.5.270.0070.07020.89
5.5.260.0100.04720.77
5.5.250.0000.08320.62
5.5.240.0230.02320.29
5.4.450.0800.06319.58
5.4.440.0830.05019.47
5.4.430.0730.07019.33
5.4.420.0630.00019.45
5.4.410.0230.04318.97
5.4.400.0170.05718.84
5.4.390.0200.05318.81
5.4.380.0170.05718.73
5.4.370.0230.04018.75
5.4.360.0070.03718.84
5.4.350.0060.04512.02
5.4.340.0100.03412.02
5.4.320.0100.04712.51
5.4.310.0060.04512.50
5.4.300.0050.03812.51
5.4.290.0050.03812.50
5.4.280.0050.03812.39
5.4.270.0070.05012.40
5.4.260.0060.03712.37
5.4.250.0040.03912.37
5.4.240.0040.03712.37
5.4.230.0040.03812.36
5.4.220.0020.03912.36
5.4.210.0060.03412.36
5.4.200.0090.03412.36
5.4.190.0040.03712.36
5.4.180.0060.03512.36
5.4.170.0050.03612.36
5.4.160.0030.03812.37
5.4.150.0050.03712.36
5.4.140.0080.03412.04
5.4.130.0040.03612.03
5.4.120.0060.03411.99
5.4.110.0020.03811.98
5.4.100.0060.03411.98
5.4.90.0050.03611.98
5.4.80.0030.04011.98
5.4.70.0040.03511.98
5.4.60.0040.03511.98
5.4.50.0050.03411.98
5.4.40.0030.03511.96
5.4.30.0080.03111.96
5.4.20.0040.03811.96
5.4.10.0030.03611.96
5.4.00.0060.03411.45
5.3.290.0050.04312.80
5.3.280.0070.03612.71
5.3.270.0060.03712.72
5.3.260.0060.03712.72
5.3.250.0040.04812.72
5.3.240.0070.03912.72
5.3.230.0070.03612.71
5.3.220.0060.03812.68
5.3.210.0070.04012.68
5.3.200.0010.04012.68
5.3.190.0060.03612.68
5.3.180.0090.03212.67
5.3.170.0040.03712.67
5.3.160.0030.03812.68
5.3.150.0080.03512.67
5.3.140.0070.03512.66
5.3.130.0040.04012.65
5.3.120.0040.04112.66
5.3.110.0070.03712.66
5.3.100.0080.04212.12
5.3.90.0070.05212.09
5.3.80.0080.04212.07
5.3.70.0070.03312.07
5.3.60.0060.03512.07
5.3.50.0040.03712.00
5.3.40.0040.03712.00
5.3.30.0080.03111.95
5.3.20.0030.03711.73
5.3.10.0050.03411.70
5.3.00.0020.03911.68
5.2.170.0040.0309.19
5.2.160.0080.0249.18
5.2.150.0110.0259.18
5.2.140.0040.0319.18
5.2.130.0080.0259.14
5.2.120.0060.0279.14
5.2.110.0050.0329.15
5.2.100.0060.0299.15
5.2.90.0040.0349.14
5.2.80.0070.0429.13
5.2.70.0040.0359.13
5.2.60.0060.0329.09
5.2.50.0070.0429.06
5.2.40.0060.0319.04
5.2.30.0060.0309.01
5.2.20.0050.0309.00
5.2.10.0060.0388.92
5.2.00.0060.0318.76
5.1.60.0060.0298.05
5.1.50.0030.0288.05
5.1.40.0060.0298.04
5.1.30.0040.0258.38
5.1.20.0040.0298.41
5.1.10.0050.0278.14
5.1.00.0050.0238.13
5.0.50.0050.0186.61
5.0.40.0030.0196.47
5.0.30.0000.0346.29
5.0.20.0020.0206.25
5.0.10.0060.0176.23
5.0.00.0050.0296.22
4.4.90.0040.0134.78
4.4.80.0040.0134.76
4.4.70.0000.0174.76
4.4.60.0020.0164.75
4.4.50.0040.0154.77
4.4.40.0030.0254.71
4.4.30.0030.0154.76
4.4.20.0040.0164.84
4.4.10.0030.0204.85
4.4.00.0070.0254.76
4.3.110.0050.0144.67
4.3.100.0050.0134.66
4.3.90.0030.0144.63
4.3.80.0020.0254.59
4.3.70.0050.0144.63
4.3.60.0000.0214.63
4.3.50.0000.0214.63
4.3.40.0060.0204.54
4.3.30.0020.0153.27
4.3.20.0020.0163.25
4.3.10.0020.0153.22
4.3.00.0170.0206.78

preferences:
47.31 ms | 401 KiB | 5 Q