3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Repository { public function setAccessLevel(); } interface ContactRepository extends Repository {} abstract class ElasticSearchRepository implements Repository { public function setAccessLevel() : ElasticSearchRepository { return $this; } } abstract class DatabaseRepository implements Repository { public function setAccessLevel() : DatabaseRepository { return $this; } } class ContactESRepository extends ElasticSearchRepository implements ContactRepository { public function setAccessLevel() : ContactRepository { return new class extends ContactESRepository {}; } } $cesr = new ContactESRepository(); $cesr->setAccessLevel();

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.4.140.0120.01017.43
8.4.130.0040.00617.98
8.4.120.0110.00920.69
8.4.110.0100.00720.51
8.4.100.0040.00517.73
8.4.90.0120.00920.79
8.4.80.0100.00819.03
8.4.70.0120.00718.95
8.4.60.0150.00720.39
8.4.50.0140.00618.59
8.4.40.0060.00317.83
8.4.30.0060.01119.25
8.4.20.0080.01219.40
8.4.10.0060.00317.57
8.3.270.0140.00516.63
8.3.260.0110.00716.64
8.3.250.0140.00618.76
8.3.240.0040.00616.61
8.3.230.0120.00716.70
8.3.220.0110.00818.70
8.3.210.0120.00716.84
8.3.200.0030.00516.75
8.3.190.0060.01217.28
8.3.180.0110.00820.84
8.3.170.0090.00917.08
8.3.160.0120.00616.56
8.3.150.0150.00416.34
8.3.140.0150.00416.57
8.3.130.0060.00316.76
8.3.120.0080.00818.78
8.3.110.0110.00420.94
8.3.100.0130.00624.06
8.3.90.0000.00826.77
8.3.80.0050.00516.75
8.3.70.0040.01816.58
8.3.60.0090.00918.43
8.3.50.0080.00716.46
8.3.40.0180.00018.68
8.3.30.0140.00018.63
8.3.20.0070.00021.78
8.3.10.0030.00623.61
8.3.00.0050.00319.43
8.2.290.0060.00317.19
8.2.280.0110.00818.28
8.2.270.0030.00516.79
8.2.260.0000.01517.05
8.2.250.0060.01316.59
8.2.240.0060.00316.95
8.2.230.0060.01022.58
8.2.220.0070.01337.54
8.2.210.0150.00626.77
8.2.200.0030.00616.38
8.2.190.0000.01516.58
8.2.180.0090.00925.92
8.2.170.0140.00718.91
8.2.160.0100.00720.48
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00420.35
8.2.120.0000.00826.35
8.2.110.0050.00519.30
8.2.100.0090.00317.78
8.2.90.0050.00317.78
8.2.80.0050.00318.09
8.2.70.0040.00417.63
8.2.60.0040.00417.50
8.2.50.0080.00017.55
8.2.40.0030.00619.23
8.2.30.0000.00719.48
8.2.20.0050.00317.99
8.2.10.0050.00217.50
8.2.00.0050.00317.89
8.1.330.0090.00716.12
8.1.320.0100.00916.16
8.1.310.0140.00416.46
8.1.300.0090.00617.82
8.1.290.0030.00618.88
8.1.280.0150.00625.92
8.1.270.0040.00423.82
8.1.260.0000.00726.35
8.1.250.0000.01028.09
8.1.240.0090.00022.41
8.1.230.0080.00422.66
8.1.220.0000.00717.74
8.1.210.0040.00419.04
8.1.200.0040.00417.22
8.1.190.0050.00317.10
8.1.180.0080.00018.10
8.1.170.0000.00717.63
8.1.160.0000.00718.84
8.1.150.0000.00720.17
8.1.140.0070.00017.64
8.1.130.0030.00518.99
8.1.120.0020.00517.38
8.1.110.0000.01017.40
8.1.100.0000.00717.38
8.1.90.0070.00017.29
8.1.80.0040.00417.31
8.1.70.0000.00717.41
8.1.60.0050.00317.41
8.1.50.0040.00417.46
8.1.40.0050.00317.45
8.1.30.0030.00617.53
8.1.20.0040.00417.63
8.1.10.0040.00417.38
8.1.00.0000.00817.29
8.0.300.0070.00019.78
8.0.290.0040.00416.63
8.0.280.0080.00018.34
8.0.270.0030.00317.13
8.0.260.0030.00316.72
8.0.250.0000.00716.96
8.0.240.0040.00417.01
8.0.230.0070.00016.86
8.0.220.0030.00316.87
8.0.210.0000.00716.87
8.0.200.0050.00216.84
8.0.190.0040.00416.96
8.0.180.0020.00516.90
8.0.170.0030.00616.92
8.0.160.0040.00416.93
8.0.150.0050.00316.83
8.0.140.0040.00416.86
8.0.130.0050.00313.40
8.0.120.0030.00516.85
8.0.110.0000.00716.90
8.0.100.0040.00416.76
8.0.90.0000.00816.68
8.0.80.0070.01416.85
8.0.70.0050.00316.91
8.0.60.0000.00716.79
8.0.50.0000.00816.72
8.0.30.0080.00917.02
8.0.20.0150.01217.40
8.0.10.0000.00716.86
8.0.00.0090.00816.69
7.4.330.0000.00615.55
7.4.320.0030.00616.54
7.4.300.0060.00016.44
7.4.290.0040.00416.54
7.4.280.0030.00616.55
7.4.270.0000.00716.36
7.4.260.0040.00416.42
7.4.250.0030.00316.51
7.4.240.0040.00416.52
7.4.230.0000.00716.33
7.4.220.0000.00716.50
7.4.210.0060.01216.48
7.4.200.0000.00716.33
7.4.160.0100.00716.40
7.4.140.0090.00817.86
7.4.130.0120.00616.44
7.4.120.0080.01116.40
7.4.110.0040.01316.22
7.4.100.0090.00916.50
7.4.90.0080.01516.37
7.4.80.0000.02219.39
7.4.70.0170.00416.34
7.4.60.0000.01516.23
7.4.50.0060.00916.36
7.4.40.0100.00616.56
7.4.00.0000.01615.05
7.3.330.0030.00313.26
7.3.320.0000.00513.17
7.3.310.0040.00416.32
7.3.300.0000.00716.22
7.3.290.0000.00716.14
7.3.280.0110.00716.39
7.3.260.0090.00816.32
7.3.240.0140.00516.32
7.3.230.0070.01016.32
7.3.210.0070.01016.37
7.3.200.0110.00616.61
7.3.190.0100.00716.35
7.3.180.0090.00616.32
7.3.170.0060.01016.32
7.3.160.0000.01716.59
7.2.330.0090.01416.51
7.2.320.0120.01216.61
7.2.310.0070.01016.32
7.2.300.0140.00316.51
7.2.290.0090.00616.34
7.2.60.0080.00816.75
7.2.30.0180.01017.95
7.2.20.0530.01017.72
7.2.10.0130.01417.92
7.2.00.0110.01517.71
7.1.200.0030.00915.69
7.1.150.0160.00916.51
7.1.140.0120.01116.98
7.1.130.0120.01316.76
7.1.120.0090.01116.65
7.1.110.0080.01516.15
7.1.100.0130.01116.41
7.1.90.0080.01116.21
7.1.80.0110.00816.25
7.1.70.0080.01215.11
7.1.60.0790.01632.90
7.1.50.0290.01832.97
7.1.40.0350.01932.29
7.1.30.0380.01832.46
7.1.20.0390.01932.70
7.1.10.0100.01214.74
7.1.00.0080.01114.52

preferences:
143.11 ms | 403 KiB | 5 Q