3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait PropertyHelperTrait { protected function splitPropertyParts(): void { } } trait OrmPropertyHelperTrait { abstract protected function splitPropertyParts(): void; protected function addJoinsForNestedProperty(): void { $this->splitPropertyParts(); } } trait SearchFilterTrait { use PropertyHelperTrait; } abstract class AbstractFilter { use OrmPropertyHelperTrait, PropertyHelperTrait; public function apply(): void { $this->filterProperty(); } abstract protected function filterProperty(): void; } class SearchFilter extends AbstractFilter { use SearchFilterTrait; protected function filterProperty(): void { $this->addJoinsForNestedProperty(); } } class FilterExtension { public function applyToCollection(): void { (new SearchFilter())->apply(); } } (new FilterExtension)->applyToCollection();

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.120.0140.00620.84
8.4.110.0120.00822.52
8.4.100.0100.01117.32
8.4.90.0140.00720.33
8.4.80.0150.00518.82
8.4.70.0050.00419.00
8.4.60.0120.00920.82
8.4.50.0090.00817.61
8.4.40.0000.00917.65
8.4.30.0090.00918.73
8.4.20.0130.00619.57
8.4.10.0080.00019.49
8.3.250.0080.00718.96
8.3.240.0110.00516.70
8.3.230.0040.00516.73
8.3.220.0020.00518.78
8.3.210.0110.00816.76
8.3.200.0040.00516.37
8.3.190.0100.00818.54
8.3.180.0100.01018.20
8.3.170.0130.00619.04
8.3.160.0120.00317.15
8.3.150.0040.01516.93
8.3.140.0130.00616.40
8.3.130.0000.00818.52
8.3.120.0100.01020.88
8.3.110.0060.00316.65
8.3.100.0050.00524.06
8.3.90.0140.00726.77
8.3.80.0200.00623.35
8.3.70.0240.00623.61
8.3.60.0230.00726.54
8.3.50.0140.00725.74
8.3.40.0270.00426.88
8.3.30.0230.00626.91
8.3.20.0250.00526.88
8.3.10.0210.00626.91
8.3.00.0280.00626.91
8.2.290.0120.00816.37
8.2.280.0110.00718.34
8.2.270.0100.01017.29
8.2.260.0060.00318.45
8.2.250.0130.00618.23
8.2.240.0140.00416.49
8.2.230.0030.00620.94
8.2.220.0120.00637.54
8.2.210.0170.00626.77
8.2.200.0220.00626.12
8.2.190.0200.00727.81
8.2.180.0200.00727.81
8.2.170.0280.00626.98
8.2.160.0240.00426.95
8.2.150.0240.00626.99
8.2.140.0230.00726.98
8.2.130.0230.00826.96
8.2.120.0250.00626.99
8.2.110.0270.00526.97
8.2.100.0240.00726.94
8.2.90.0230.00826.99
8.2.80.0250.00826.93
8.2.70.0320.00726.93
8.2.60.0260.00826.93
8.2.50.0280.00626.94
8.2.40.0290.00726.98
8.2.30.0300.00726.91
8.2.20.0270.00626.95
8.2.10.0260.00626.94
8.2.00.0290.00526.93
8.1.330.0130.00716.34
8.1.320.0110.00917.95
8.1.310.0090.00918.21
8.1.300.0060.00317.77
8.1.290.0240.00726.09
8.1.280.0260.00527.06
8.1.270.0260.00926.90
8.1.260.0280.00526.91
8.1.250.0250.00626.88
8.1.240.0240.00626.93
8.1.230.0230.00726.90
8.1.220.0240.00626.93
8.1.210.0240.00526.86
8.1.200.0200.00726.88
8.1.190.0240.00426.90
8.1.180.0200.00726.85
8.1.170.0220.00726.93
8.1.160.0200.00827.09
8.1.150.0230.00726.89
8.1.140.0250.00726.87
8.1.130.0250.00727.10
8.1.120.0240.00826.88
8.1.110.0270.00626.93
8.1.100.0270.00426.90
8.1.90.0220.00626.91
8.1.80.0230.00826.92
8.1.70.0220.00626.92
8.1.60.0260.00626.93
8.1.50.0240.00526.95
8.1.40.0270.00826.91
8.1.30.0290.00926.95
8.1.20.0320.00726.93
8.1.10.0300.00526.90
8.1.00.0250.00726.91

preferences:
28.96 ms | 403 KiB | 5 Q