3v4l.org

run code in 300+ PHP versions simultaneously
<?php final readonly class ObjectCollector { private SplObjectStorage $storage; public function __construct() { $this->storage = new SplObjectStorage(); } public function add(object $object): void { $this->storage->attach($object); } } (new ObjectCollector())->add(new stdClass());

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.0050.00426.09
8.4.110.0100.00722.54
8.4.100.0100.01117.46
8.4.90.0120.00918.58
8.4.80.0040.00417.79
8.4.70.0100.00717.76
8.4.60.0140.00817.48
8.4.50.0110.00922.39
8.4.40.0130.00317.48
8.4.30.0130.00618.80
8.4.20.0130.00719.56
8.4.10.0000.00819.39
8.3.250.0110.00619.04
8.3.240.0090.01017.02
8.3.230.0140.00716.56
8.3.220.0100.00717.24
8.3.210.0120.00816.69
8.3.200.0130.00616.53
8.3.190.0130.00716.50
8.3.180.0100.00516.48
8.3.170.0110.00718.93
8.3.160.0150.00416.76
8.3.150.0090.00917.41
8.3.140.0070.00416.47
8.3.130.0110.00816.89
8.3.120.0070.00320.84
8.3.110.0030.00722.58
8.3.100.0000.00920.94
8.3.90.0000.00920.94
8.3.80.0200.00716.25
8.3.70.0230.00316.38
8.3.60.0220.00616.50
8.3.50.0040.00718.31
8.3.40.0150.01117.25
8.3.30.0160.00617.23
8.3.20.0250.00017.25
8.3.10.0210.00317.13
8.3.00.0140.01117.00
8.2.290.0140.00520.54
8.2.280.0060.00418.58
8.2.270.0050.00317.25
8.2.260.0040.01418.34
8.2.250.0120.00316.68
8.2.240.0100.01017.07
8.2.230.0070.01022.58
8.2.220.0100.01022.58
8.2.210.0080.00022.58
8.2.200.0100.00016.60
8.2.190.0150.00616.50
8.2.180.0160.00616.24
8.2.170.0240.00017.38
8.2.160.0200.00317.50
8.2.150.0170.00717.13
8.2.140.0160.00817.11
8.2.130.0170.01017.13
8.2.120.0150.01017.50
8.2.110.0240.00317.38
8.2.100.0230.00017.37
8.2.90.0180.00317.25
8.2.80.0130.01317.25
8.2.70.0140.00717.25
8.2.60.0170.00317.25
8.2.50.0200.00317.25
8.2.40.0140.00717.25
8.2.30.0180.00417.10
8.2.20.0180.00417.00
8.2.10.0220.00017.00
8.2.00.0080.01217.25
8.1.330.0140.00421.71
8.1.320.0090.01016.13
8.1.310.0000.00818.63
8.1.300.0100.00720.02
8.1.290.0170.00515.98
8.1.280.0150.00715.88
8.1.270.0210.00317.13
8.1.260.0100.01417.10
8.1.250.0170.00617.00
8.1.240.0150.00416.75
8.1.230.0120.00616.88
8.1.220.0150.00616.87
8.1.210.0180.00416.88
8.1.200.0200.00016.88
8.1.190.0130.00816.75
8.1.180.0220.00016.85
8.1.170.0170.00317.00
8.1.160.0160.00816.63
8.1.150.0210.00016.88
8.1.140.0150.00517.00
8.1.130.0180.00316.75
8.1.120.0160.00516.86
8.1.110.0180.00316.84
8.1.100.0130.00716.75
8.1.90.0120.00617.00
8.1.80.0160.00316.85
8.1.70.0170.00316.98
8.1.60.0210.00017.00
8.1.50.0130.00817.00
8.1.40.0160.00617.00
8.1.30.0160.00817.25
8.1.20.0200.00317.13
8.1.10.0220.00017.00
8.1.00.0160.01016.88

preferences:
27.42 ms | 403 KiB | 5 Q