3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo implements DateTimeInterface { /** * @inheritDoc */ public function diff($datetime2, $absolute = false) { // TODO: Implement diff() method. } /** * @inheritDoc */ public function format($format) { // TODO: Implement format() method. } /** * @inheritDoc */ public function getOffset() { // TODO: Implement getOffset() method. } /** * @inheritDoc */ public function getTimestamp() { // TODO: Implement getTimestamp() method. } /** * @inheritDoc */ public function getTimezone() { // TODO: Implement getTimezone() method. } /** * @inheritDoc */ public function __wakeup() { // TODO: Implement __wakeup() method. } }

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.0140.00716.88
8.3.50.0040.01116.52
8.3.40.0110.00418.84
8.3.30.0120.00418.36
8.3.20.0000.00820.33
8.3.10.0000.00823.66
8.3.00.0040.00421.89
8.2.180.0110.01118.29
8.2.170.0100.01022.96
8.2.160.0130.00320.35
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0080.00021.18
8.2.120.0070.00026.35
8.2.110.0090.00020.26
8.2.100.0040.00817.79
8.2.90.0000.00919.14
8.2.80.0000.00817.97
8.2.70.0060.00317.38
8.2.60.0060.00317.68
8.2.50.0000.00918.09
8.2.40.0000.00822.14
8.2.30.0040.00419.47
8.2.20.0040.00417.67
8.2.10.0040.00417.87
8.2.00.0040.00417.98
8.1.280.0140.00725.92
8.1.270.0090.00622.14
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0080.00021.02
8.1.230.0040.00717.70
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0060.00318.50
8.1.160.0040.00420.75
8.1.150.0000.00719.00
8.1.140.0030.00619.39
8.1.130.0030.00617.70
8.1.120.0040.00417.43
8.1.110.0080.00017.43
8.1.100.0070.00017.44
8.1.90.0000.00817.41
8.1.80.0000.00817.40
8.1.70.0000.00817.46
8.1.60.0050.00317.44
8.1.50.0000.00917.36
8.1.40.0050.01117.49
8.1.30.0000.00917.66
8.1.20.0000.00817.48
8.1.10.0040.00417.37
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0040.00418.38
8.0.270.0000.00717.16
8.0.260.0060.00017.09
8.0.250.0050.00216.84
8.0.240.0060.00316.97
8.0.230.0070.00016.91
8.0.220.0030.00316.91
8.0.210.0000.00716.91
8.0.200.0000.00716.83
8.0.190.0040.00416.82
8.0.180.0000.00816.88
8.0.170.0040.00416.95
8.0.160.0000.00716.72
8.0.150.0070.00016.75
8.0.140.0000.00716.84
8.0.130.0030.00313.27
8.0.120.0040.00416.89
8.0.110.0000.00716.80
8.0.100.0040.00416.86
8.0.90.0000.00716.84
8.0.80.0060.01116.94
8.0.70.0000.00716.98
8.0.60.0040.00416.73
8.0.50.0040.00416.71
8.0.30.0110.00917.07
8.0.20.0140.00617.40
8.0.10.0030.00517.05
8.0.00.0120.00616.74
7.4.330.0000.00516.67
7.4.320.0060.00016.53
7.4.300.0040.00416.56
7.4.290.0030.00316.40
7.4.280.0040.00416.54
7.4.270.0000.00716.45
7.4.260.0000.00716.41
7.4.250.0040.00416.45
7.4.240.0080.00016.59
7.4.230.0000.00716.59
7.4.220.0180.00916.32
7.4.210.0090.00916.44
7.4.200.0000.00716.51
7.4.160.0100.00516.39
7.4.150.0140.00417.40
7.4.140.0110.01117.86
7.4.130.0110.00616.40
7.4.120.0070.01016.47
7.4.110.0150.00316.44
7.4.100.0110.00716.56
7.4.90.0130.00716.42
7.4.80.0130.00719.39
7.4.70.0100.01016.62
7.4.60.0060.01016.37
7.4.50.0090.00616.21
7.4.40.0040.01816.34
7.4.30.0080.01216.44
7.4.00.0030.01015.05
7.3.330.0000.00513.10
7.3.320.0000.00613.23
7.3.310.0040.00416.05
7.3.300.0040.00416.25
7.3.290.0000.00716.12
7.3.280.0130.00616.23
7.3.270.0070.01117.40
7.3.260.0070.01716.34
7.3.250.0090.01116.21
7.3.240.0130.00316.42
7.3.230.0140.00416.51
7.3.210.0100.01016.34
7.3.200.0060.00919.39
7.3.190.0140.00716.29
7.3.180.0070.01016.21
7.3.170.0100.01516.34
7.3.160.0130.00316.31
7.3.10.0130.00316.36
7.3.00.0090.00616.48
7.2.330.0090.00916.66
7.2.320.0060.01316.50
7.2.310.0100.00616.34
7.2.300.0090.00916.26
7.2.290.0100.00716.33
7.2.130.0140.00616.71
7.2.120.0090.00616.30
7.2.110.0110.00716.48
7.2.100.0140.00716.58
7.2.90.0110.00816.80
7.2.80.0140.01116.63
7.2.70.0140.01016.42
7.2.60.0090.00616.65
7.2.50.0150.00616.22
7.2.40.0120.00616.82
7.2.30.0070.01016.27
7.2.20.0140.00316.66
7.2.10.0140.00316.61
7.2.00.0050.00817.98
7.1.250.0040.01115.39
7.1.200.0070.00315.71
7.1.100.0030.00617.82
7.1.70.0030.00616.88
7.1.60.0100.01419.40
7.1.50.0090.00916.70
7.1.00.0030.07722.33
7.0.200.0590.00814.13
7.0.60.0200.07021.84
7.0.50.0070.08017.87
7.0.40.0000.06320.11
7.0.30.0370.07320.16
7.0.20.0430.06020.21
7.0.10.0070.09020.21
7.0.00.0070.08320.06
5.6.280.0000.03321.05
5.6.210.0100.08720.61
5.6.200.0000.05018.29
5.6.190.0000.05720.64
5.6.180.0300.07720.39
5.6.170.0230.08720.47
5.6.160.0030.05720.52
5.6.150.0030.06718.15
5.6.140.0100.06018.18
5.6.130.0100.08018.17
5.6.120.0070.05321.06
5.6.110.0130.07721.09
5.6.100.0070.06321.00
5.6.90.0170.06020.85
5.6.80.0230.06720.40
5.5.350.0070.06020.34
5.5.340.0070.04318.09
5.5.330.0030.05020.23
5.5.320.0300.03720.27
5.5.310.0370.07020.30
5.5.300.0070.07717.93
5.5.290.0030.04017.92
5.5.280.0070.05320.88
5.5.270.0070.05720.79
5.5.260.0170.04320.88
5.5.250.0030.09020.67
5.5.240.0100.07720.13

preferences:
51.85 ms | 400 KiB | 5 Q