3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class ServiceManager { /** * Specify a factory for a given service name. * */ public function setFactory(string $serviceName, string|callable|Factory\FactoryInterface $factory): void {} /** * Create a new instance with an already resolved name */ private function doCreate(string $resolvedName, ?array $options = null): string|bool|object|array {} }

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.140.0120.00616.49
8.3.130.0090.00016.78
8.3.120.0100.00720.62
8.3.110.0080.00820.94
8.3.100.0090.00324.06
8.3.90.0060.00326.77
8.3.80.0050.00519.36
8.3.70.0090.01218.27
8.3.60.0070.00718.43
8.3.50.0110.00924.49
8.3.40.0120.00318.51
8.3.30.0140.00418.72
8.3.20.0110.00724.18
8.3.10.0080.00024.66
8.3.00.0050.00226.16
8.2.250.0040.00418.21
8.2.240.0030.00618.71
8.2.230.0050.00322.58
8.2.220.0130.00737.54
8.2.210.0040.01426.77
8.2.200.0060.00618.88
8.2.190.0100.00716.58
8.2.180.0090.01225.92
8.2.170.0150.00018.77
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0110.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00026.35
8.2.110.0030.00620.47
8.2.100.0060.00320.39
8.1.300.0030.00717.72
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0050.00323.99
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0100.00022.05
8.1.230.0030.00920.27
7.4.70.0000.01716.24
7.4.60.0140.00316.49
7.4.50.0170.00016.43
7.4.40.0000.01816.55
7.4.30.0070.00716.48
7.4.20.0090.00716.34
7.4.10.0120.00416.42
7.4.00.0090.01216.53
7.3.190.0090.00616.33
7.3.180.0050.00916.34
7.3.170.0170.00416.19
7.3.160.0130.01116.16
7.3.150.0030.01316.33
7.3.140.0100.00516.32
7.3.130.0130.00616.21
7.3.120.0110.00516.19
7.3.110.0080.00816.10
7.3.100.0090.00516.32
7.3.90.0160.00416.34
7.3.80.0050.01116.08
7.3.70.0060.01016.22
7.3.60.0080.00816.17
7.3.50.0040.01116.20
7.3.40.0050.00916.21
7.3.30.0090.00716.27
7.3.20.0130.00716.14
7.3.10.0100.00716.35
7.3.00.0060.01016.13
7.2.310.0060.01016.43
7.2.300.0150.00516.19
7.2.290.0130.00816.30
7.2.280.0130.00716.27
7.2.270.0100.00616.14
7.2.260.0070.00716.49
7.2.250.0070.01016.35
7.2.240.0070.00816.27
7.2.230.0080.00816.36
7.2.220.0100.01316.43
7.2.210.0070.01016.41
7.2.200.0050.01016.29
7.2.190.0080.00816.32
7.2.180.0030.01216.27
7.2.170.0030.01216.25
7.2.160.0100.00716.45
7.2.150.0070.01416.33
7.2.140.0100.00916.35
7.2.130.0070.01416.34
7.2.120.0070.01016.42
7.2.110.0100.00616.27
7.2.100.0140.00316.36
7.2.90.0080.00816.41
7.2.80.0030.01616.07
7.2.70.0120.00316.44
7.2.60.0080.00816.40
7.2.50.0160.00016.45
7.2.40.0090.00916.43
7.2.30.0090.00916.37
7.2.20.0090.00916.49
7.2.10.0090.00916.29
7.2.00.0040.01416.46

preferences:
27.72 ms | 403 KiB | 5 Q