3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IModel { } abstract class AModel implements IModel { } abstract class ARepository { public function delete(IModel $model){ } } interface IAttachment extends IModel { } class Attachment extends AModel implements IAttachment { } class AttachmentRepository extends ARepository { public function delete(IAttachment $model) { } } $attachment = new Attachment(); $attachmentRepository = new AttachmentRepository(); $attachmentRepository->delete($attachment);

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.70.0170.00318.43
8.3.60.0100.01018.55
8.3.50.0100.00616.27
8.3.40.0060.00918.57
8.3.30.0110.00418.59
8.3.20.0040.00421.89
8.3.10.0040.00423.53
8.3.00.0090.00023.66
8.2.180.0120.00619.88
8.2.170.0080.00822.96
8.2.160.0030.01220.39
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00420.77
8.2.120.0040.00426.35
8.2.110.0050.00520.94
8.2.100.0120.00017.72
8.2.90.0050.00319.35
8.2.80.0040.00417.97
8.2.70.0060.00317.80
8.2.60.0000.00817.50
8.2.50.0040.00418.10
8.2.40.0040.00420.61
8.2.30.0030.00620.61
8.2.20.0040.00417.86
8.2.10.0000.00817.88
8.2.00.0000.00718.04
8.1.280.0000.01525.92
8.1.270.0050.00224.02
8.1.260.0020.00526.35
8.1.250.0050.00328.09
8.1.240.0060.00322.34
8.1.230.0110.00322.63
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0000.00817.22
8.1.190.0040.00417.11
8.1.180.0000.00818.10
8.1.170.0040.00418.63
8.1.160.0040.00418.84
8.1.150.0030.00320.27
8.1.140.0040.00417.60
8.1.130.0000.00818.84
8.1.120.0000.00717.30
8.1.110.0040.00417.29
8.1.100.0040.00417.36
8.1.90.0050.00317.33
8.1.80.0000.00717.38
8.1.70.0040.00417.44
8.1.60.0040.00417.54
8.1.50.0070.00317.46
8.1.40.0030.00517.35
8.1.30.0020.00517.56
8.1.20.0040.00417.65
8.1.10.0030.00617.44
8.1.00.0040.00417.18
8.0.300.0000.00719.97
8.0.290.0040.00416.63
8.0.280.0000.00718.39
8.0.270.0000.00717.09
8.0.260.0000.00616.70
8.0.250.0030.00516.95
8.0.240.0020.00516.86
8.0.230.0040.00416.92
8.0.220.0000.00816.79
8.0.210.0000.00716.88
8.0.200.0000.00616.94
8.0.190.0000.00716.85
8.0.180.0070.00016.92
8.0.170.0100.00016.84
8.0.160.0000.00716.94
8.0.150.0070.00016.81
8.0.140.0030.00516.86
8.0.130.0070.00013.32
8.0.120.0000.00916.90
8.0.110.0000.00816.92
8.0.100.0000.00716.87
8.0.90.0020.00516.80
8.0.80.0130.00316.86
8.0.70.0080.00016.96
8.0.60.0000.00816.96
8.0.50.0000.00716.76
8.0.30.0100.00916.93
8.0.20.0080.01017.40
8.0.10.0040.00416.88
8.0.00.0090.00916.59
7.4.330.0060.00015.55
7.4.320.0030.00316.65
7.4.300.0030.00316.60
7.4.290.0000.00716.59
7.4.280.0080.00016.40
7.4.270.0080.00016.61
7.4.260.0000.00716.52
7.4.250.0030.00516.40
7.4.240.0000.00716.44
7.4.230.0000.00716.54
7.4.220.0000.00916.67
7.4.210.0120.00516.59
7.4.200.0040.00416.54
7.4.160.0100.00716.58
7.4.140.0090.01017.86
7.4.130.0100.01016.51
7.4.120.0090.00916.58
7.4.110.0060.01716.53
7.4.100.0120.00316.65
7.4.90.0130.00416.50
7.4.80.0150.00419.39
7.4.70.0110.00616.62
7.4.60.0130.00316.41
7.4.50.0030.00916.36
7.4.40.0090.00616.54
7.4.00.0030.01314.97
7.3.330.0000.00513.13
7.3.320.0040.00413.35
7.3.310.0000.00716.43
7.3.300.0030.00316.37
7.3.290.0030.00316.32
7.3.280.0110.00516.31
7.3.260.0150.00616.41
7.3.250.0120.00516.29
7.3.240.0140.00416.49
7.3.230.0090.00916.30
7.3.210.0100.01016.37
7.3.200.0070.01016.56
7.3.190.0090.01516.39
7.3.180.0100.00716.26
7.3.170.0170.00016.27
7.3.160.0060.01016.47
7.2.330.0140.00416.41
7.2.320.0060.01616.73
7.2.310.0090.00916.70
7.2.300.0120.00616.50
7.2.290.0100.00716.77
7.2.60.0140.00017.05
7.2.30.0140.01317.72
7.2.20.0180.01017.73
7.2.10.0140.01717.96
7.2.00.0110.01618.04
7.1.200.0000.01415.85
7.1.150.0130.01216.93
7.1.140.0120.01316.72
7.1.130.0120.01216.70
7.1.120.0170.00916.71
7.1.110.0460.01016.07
7.1.100.0110.01416.10
7.1.90.0180.01616.08
7.1.80.0090.01316.21
7.1.70.0100.01015.25
7.1.60.0280.01633.26
7.1.50.0380.01432.96
7.1.40.0290.01932.52
7.1.30.0360.01732.62
7.1.20.0720.01832.79
7.1.10.0130.01014.67
7.1.00.0110.00814.92

preferences:
70.78 ms | 401 KiB | 5 Q