3v4l.org

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

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.0080.00016.48
8.3.130.0090.00616.39
8.3.120.0090.00018.74
8.3.110.0040.00416.63
8.3.100.0070.00324.06
8.3.90.0060.00326.77
8.3.80.0060.00319.36
8.3.70.0140.00418.34
8.3.60.0080.00818.43
8.3.50.0090.01124.58
8.3.40.0070.01318.72
8.3.30.0030.01718.64
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.250.0060.00318.28
8.2.240.0120.00618.65
8.2.230.0060.00320.94
8.2.220.0030.00537.54
8.2.210.0090.00926.77
8.2.200.0060.00318.88
8.2.190.0100.00616.58
8.2.180.0150.00325.92
8.2.170.0030.01618.77
8.2.160.0110.00322.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0070.01126.16
8.2.120.0040.00426.35
8.2.110.0130.00320.54
8.2.100.0070.00717.50
8.2.90.0030.00619.14
8.2.80.0080.00017.97
8.2.70.0000.00817.38
8.2.60.0030.00517.91
8.2.50.0040.00418.05
8.2.40.0000.00717.97
8.2.30.0040.00417.99
8.2.20.0050.00217.92
8.2.10.0000.00718.99
8.2.00.0000.00819.22
8.1.300.0030.00616.16
8.1.290.0060.00330.84
8.1.280.0070.01125.92
8.1.270.0050.00323.99
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0070.00419.01
8.1.230.0030.00917.63
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.00817.23
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0040.00418.49
8.1.160.0040.00418.65
8.1.150.0040.00418.77
8.1.140.0030.00418.82
8.1.130.0070.00017.23
8.1.120.0070.00017.35
8.1.110.0090.00017.34
8.1.100.0040.00417.31
8.1.90.0040.00417.22
8.1.80.0060.00317.34
8.1.70.0030.00317.21
8.1.60.0040.00417.44
8.1.50.0040.00417.27
8.1.40.0040.00417.38
8.1.30.0040.00417.50
8.1.20.0060.00317.54
8.1.10.0030.00717.39
8.1.00.0040.00417.38
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00618.29
8.0.270.0030.00317.75
8.0.260.0000.00616.60
8.0.250.0070.00016.80
8.0.240.0000.00716.88
8.0.230.0040.00416.84
8.0.220.0000.00816.77
8.0.210.0000.00816.65
8.0.200.0070.00016.71
8.0.190.0040.00416.71
8.0.180.0070.00016.71
8.0.170.0060.00316.73
8.0.160.0040.00416.59
8.0.150.0030.00316.74
8.0.140.0050.00316.61
8.0.130.0000.00513.20
8.0.120.0040.00416.71
8.0.110.0050.00216.58
8.0.100.0060.00316.59
8.0.90.0050.00216.77
8.0.80.0100.00616.68
8.0.70.0050.00216.63
8.0.60.0000.00716.63
8.0.50.0050.00316.57
8.0.30.0100.00616.73
8.0.20.0170.00616.95
8.0.10.0050.00216.96
8.0.00.0160.00616.58
7.4.330.0040.00015.55
7.4.320.0030.00316.39
7.4.300.0060.00316.38
7.4.290.0070.00016.31
7.4.280.0040.00416.47
7.4.270.0000.00616.52
7.4.260.0030.00313.26
7.4.250.0000.01016.41
7.4.240.0040.00416.39
7.4.230.0000.00716.39
7.4.220.0040.00416.42
7.4.210.0060.00716.46
7.4.200.0040.00416.56
7.4.130.0120.00916.29
7.4.120.0030.02216.25
7.4.110.0070.01016.29
7.4.100.0120.00316.47
7.4.90.0060.01216.55
7.4.80.0070.01119.39
7.4.70.0100.00516.16
7.4.60.0000.01716.18
7.4.50.0180.00316.27
7.4.40.0110.00816.09
7.4.30.0120.01216.40
7.4.20.0060.01616.36
7.4.10.0130.00716.41
7.4.00.0080.00816.30
7.3.330.0000.00716.14
7.3.320.0000.00613.17
7.3.310.0040.00416.23
7.3.300.0000.00616.14
7.3.290.0070.00716.20
7.3.280.0060.00916.11
7.3.260.0060.01116.04
7.3.230.0090.00616.44
7.3.210.0090.00816.16
7.3.200.0190.00316.12
7.3.190.0030.01216.44
7.3.180.0080.00816.29
7.3.170.0120.00616.20
7.3.160.0070.01116.34
7.3.150.0040.01516.18
7.3.140.0110.01116.25
7.3.130.0200.00016.21
7.3.120.0160.00016.27
7.3.110.0110.00716.11
7.3.100.0150.00416.09
7.3.90.0090.00916.36
7.3.80.0090.01316.14
7.3.70.0130.01016.21
7.3.60.0130.00616.16
7.3.50.0080.01216.25
7.3.40.0110.00816.23
7.3.30.0060.00915.98
7.3.20.0100.00716.12
7.3.10.0130.00416.24
7.3.00.0100.00716.18
7.2.330.0120.00616.40
7.2.320.0100.00616.31
7.2.310.0100.00716.39
7.2.300.0100.01016.51
7.2.290.0180.00416.18
7.2.280.0040.01516.23
7.2.270.0140.00516.57
7.2.260.0120.00616.43
7.2.250.0030.01616.34
7.2.240.0150.00316.56
7.2.230.0080.01216.48
7.2.220.0110.00916.45
7.2.210.0080.01616.43
7.2.200.0110.00716.44
7.2.190.0090.00916.36
7.2.180.0060.01516.25
7.2.170.0030.01216.34
7.2.160.0120.00616.29
7.2.150.0120.00916.31
7.2.140.0160.00316.43
7.2.130.0110.00616.57
7.2.120.0150.00316.26
7.2.110.0150.00316.38
7.2.100.0030.01416.48
7.2.90.0090.01216.41
7.2.80.0080.01216.54
7.2.70.0110.00816.27
7.2.60.0110.00816.27
7.2.50.0180.00616.31
7.2.40.0090.01016.34
7.2.30.0080.00916.41
7.2.20.0070.01116.34
7.2.10.0110.00916.27
7.2.00.0140.00316.37

preferences:
42.46 ms | 403 KiB | 5 Q