3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyService { public function __construct(AnObject $service, $value) { $this->service = $service; $this->value = $value; // pretty common right? } } class MyServiceFactory { private $request; private $provider; function __construct(Request $request, \Auryn\Provider $provider) { $this->request = $request; $this->provider = $provider; } public function create() { $userSuppliedValue = $this->request->getValue('postValue'); return $this->provider->make('MyService', [':value' => $userSuppliedValue]); } } class Controller { public function indexAction(MyServiceFactory $factory) { $service = $factory->create(); } }

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.40.0170.00318.68
8.3.30.0140.00018.92
8.3.20.0040.00420.25
8.3.10.0000.00823.60
8.3.00.0080.00020.95
8.2.170.0150.00622.96
8.2.160.0090.00620.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.01126.16
8.2.120.0080.00019.11
8.2.110.0080.00022.17
8.2.100.0060.00619.38
8.2.90.0000.00817.63
8.2.80.0040.00418.66
8.2.70.0060.00319.39
8.2.60.0000.00917.50
8.2.50.0000.00817.50
8.2.40.0040.00417.62
8.2.30.0000.00718.12
8.2.20.0040.00417.56
8.2.10.0050.00317.93
8.2.00.0060.00317.60
8.1.270.0090.00023.87
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0120.00919.98
8.1.230.0060.00617.57
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00817.10
8.1.190.0060.00317.11
8.1.180.0050.00318.10
8.1.170.0080.00017.62
8.1.160.0040.00421.95
8.1.150.0000.00718.45
8.1.140.0000.00717.33
8.1.130.0040.00419.55
8.1.120.0080.00017.37
8.1.110.0070.00017.23
8.1.100.0040.00417.37
8.1.90.0040.00417.35
8.1.80.0070.00017.32
8.1.70.0030.00317.29
8.1.60.0030.00517.51
8.1.50.0070.00017.28
8.1.40.0040.00417.33
8.1.30.0050.00317.38
8.1.20.0000.00717.53
8.1.10.0040.00417.43
8.1.00.0030.00617.29
8.0.300.0060.00318.77
8.0.290.0040.00416.58
8.0.280.0030.00518.22
8.0.270.0040.00417.04
8.0.260.0000.00617.10
8.0.250.0080.00016.79
8.0.240.0070.00016.88
8.0.230.0000.00716.81
8.0.220.0070.00016.82
8.0.210.0070.00016.77
8.0.200.0000.00616.87
8.0.190.0000.00716.79
8.0.180.0000.00816.85
8.0.170.0080.00016.68
8.0.160.0000.00716.62
8.0.150.0000.00716.82
8.0.140.0000.00716.73
8.0.130.0000.00613.23
8.0.120.0040.00416.74
8.0.110.0040.00416.75
8.0.100.0070.00016.68
8.0.90.0070.00016.63
8.0.80.0140.00616.72
8.0.70.0000.00816.81
8.0.60.0040.00416.76
8.0.50.0030.00516.71
8.0.30.0150.00516.97
8.0.20.0090.00917.40
8.0.10.0000.00716.75
8.0.00.0110.00916.65
7.4.330.0000.00515.07
7.4.320.0060.00016.45
7.4.300.0000.00616.45
7.4.290.0000.00716.30
7.4.280.0040.00416.51
7.4.270.0030.00316.49
7.4.260.0000.00816.45
7.4.250.0000.00816.37
7.4.240.0030.00416.35
7.4.230.0070.00016.33
7.4.220.0090.00916.54
7.4.210.0000.01316.36
7.4.200.0030.00316.57
7.4.160.0120.00616.41
7.4.150.0150.00317.40
7.4.140.0180.00217.86
7.4.130.0120.00516.33
7.4.120.0100.00616.29
7.4.110.0060.01816.43
7.4.100.0040.01716.40
7.4.90.0130.00616.45
7.4.80.0120.00819.39
7.4.70.0070.01316.53
7.4.60.0130.00316.30
7.4.50.0040.00416.44
7.4.40.0100.01316.05
7.4.30.0130.00316.29
7.4.00.0130.00514.84
7.3.330.0000.00713.20
7.3.320.0050.00013.19
7.3.310.0080.00016.08
7.3.300.0000.00716.13
7.3.290.0070.00716.22
7.3.280.0060.00916.20
7.3.270.0070.01017.40
7.3.260.0060.01216.14
7.3.250.0110.01216.19
7.3.240.0100.01016.09
7.3.230.0100.01016.39
7.3.210.0120.00916.24
7.3.200.0060.01019.39
7.3.190.0080.00816.53
7.3.180.0030.01316.48
7.3.170.0140.00316.41
7.3.160.0060.00916.34
7.3.120.0070.00714.68
7.3.110.0090.00614.92
7.3.100.0060.00914.64
7.3.90.0060.01014.56
7.3.80.0060.00914.60
7.3.70.0000.01114.74
7.3.60.0090.00914.53
7.3.50.0000.01714.62
7.3.40.0060.00314.62
7.3.30.0040.01114.57
7.3.20.0130.00316.63
7.3.10.0030.01016.51
7.3.00.0070.00716.60
7.2.330.0070.01016.55
7.2.320.0100.00716.34
7.2.310.0150.00316.52
7.2.300.0070.01016.48
7.2.290.0210.01816.50
7.2.250.0140.00714.94
7.2.240.0000.01914.65
7.2.230.0060.00914.55
7.2.220.0000.01014.82
7.2.210.0040.01115.04
7.2.200.0090.00615.00
7.2.190.0080.01114.61
7.2.180.0070.00714.92
7.2.170.0060.00914.68
7.2.60.0000.01016.80
7.2.50.0040.00816.76
7.1.330.0100.00315.46
7.1.320.0040.00715.50
7.1.310.0070.00715.55
7.1.300.0080.00815.70
7.1.290.0030.00615.51
7.1.280.0090.00615.55
7.1.270.0000.01515.58
7.1.260.0000.01115.77
7.1.200.0060.00615.59
7.1.100.0030.00917.92
7.1.70.0070.00317.07
7.1.60.0100.01419.70
7.1.50.0140.01016.85
7.1.00.0030.07722.54
7.0.200.0000.01016.82
7.0.140.0000.07021.92
7.0.100.0230.05720.15
7.0.90.0300.07019.88
7.0.80.0270.05320.09
7.0.70.0070.08019.84
7.0.60.0070.07719.90
7.0.50.0100.07720.25
7.0.40.0030.04720.06
7.0.30.0100.08020.09
7.0.20.0030.08719.96
7.0.10.0170.07319.91
7.0.00.0000.07020.14
5.6.280.0030.07321.05
5.6.250.0070.08320.60
5.6.240.0070.07720.56
5.6.230.0100.08020.51
5.6.220.0030.08020.52
5.6.210.0070.04720.71
5.6.200.0100.08021.08
5.6.190.0130.08021.14
5.6.180.0100.06320.93
5.6.170.0100.07721.02
5.6.160.0130.03021.14
5.6.150.0170.06320.93
5.6.140.0030.08721.00
5.6.130.0130.08020.97
5.6.120.0000.08020.93
5.6.110.0170.07021.13
5.6.100.0070.04721.07
5.6.90.0070.06321.05
5.6.80.0000.04320.46
5.6.70.0070.07020.36
5.6.60.0230.04020.36
5.6.50.0030.07320.43
5.6.40.0030.05720.34
5.6.30.0000.04020.27
5.6.20.0130.05020.43
5.6.10.0130.06320.41
5.6.00.0200.06720.33
5.5.380.0030.05020.48
5.5.370.0030.05020.32
5.5.360.0070.08320.36
5.5.350.0030.09720.31
5.5.340.0070.08020.90
5.5.330.0130.07020.84
5.5.320.0030.06020.89
5.5.310.0200.06720.80
5.5.300.0070.06320.86
5.5.290.0100.08020.85
5.5.280.0100.05320.86
5.5.270.0070.06020.83
5.5.260.0170.04020.84
5.5.250.0030.07320.64
5.5.240.0070.03720.16
5.5.230.0070.03720.15
5.5.220.0100.05720.21
5.5.210.0030.04720.25
5.5.200.0030.07020.11
5.5.190.0100.04720.22
5.5.180.0070.07019.96
5.5.160.0100.03020.21
5.5.150.0030.05720.23
5.5.140.0170.07019.96
5.5.130.0030.03720.16
5.5.120.0070.05320.09
5.5.110.0070.07020.23
5.5.100.0030.08019.99
5.5.90.0070.08320.13
5.5.80.0030.03720.13
5.5.70.0070.07719.91
5.5.60.0130.06720.13
5.5.50.0100.04320.13
5.5.40.0100.07319.97
5.5.30.0000.04020.12
5.5.20.0130.07020.07
5.5.10.0070.06020.07
5.5.00.0030.06720.02
5.4.450.0100.07319.42
5.4.440.0130.07019.36
5.4.430.0130.07719.20
5.4.420.0100.07719.20
5.4.410.0030.07719.38
5.4.400.0000.08019.21
5.4.390.0070.07019.13
5.4.380.0070.07019.05
5.4.370.0100.06319.14
5.4.360.0100.06319.21
5.4.350.0100.07719.14
5.4.340.0130.07019.16
5.4.320.0030.06319.13
5.4.310.0100.04719.03
5.4.300.0130.06319.20
5.4.290.0070.06719.18
5.4.280.0030.06718.95
5.4.270.0070.04719.05
5.4.260.0070.05318.95
5.4.250.0000.08019.06
5.4.240.0070.05018.90
5.4.230.0200.06319.10
5.4.220.0100.08019.04
5.4.210.0030.05019.13
5.4.200.0100.05018.89
5.4.190.0130.07019.02
5.4.180.0100.03319.17
5.4.170.0070.03319.13
5.4.160.0000.06319.07
5.4.150.0100.07019.02
5.4.140.0030.05316.44
5.4.130.0000.04716.42
5.4.120.0000.03716.34
5.4.110.0030.03716.48
5.4.100.0130.05316.55
5.4.90.0030.05016.38
5.4.80.0000.03716.32
5.4.70.0030.03316.31
5.4.60.0100.02716.37
5.4.50.0070.05316.39
5.4.40.0070.06016.35
5.4.30.0100.07016.39
5.4.20.0030.06316.36
5.4.10.0100.06716.40
5.4.00.0000.03715.82
5.3.290.0070.03314.82
5.3.280.0130.05314.67
5.3.270.0100.03314.73
5.3.260.0030.06314.67
5.3.250.0000.04314.68
5.3.240.0100.06714.63
5.3.230.0030.05014.63
5.3.220.0070.07014.51
5.3.210.0030.05014.71
5.3.200.0030.03714.56
5.3.190.0100.07014.60
5.3.180.0070.07714.63
5.3.170.0100.03014.52
5.3.160.0070.04014.67
5.3.150.0030.04314.55
5.3.140.0000.06314.66
5.3.130.0070.05014.55
5.3.120.0030.07314.68
5.3.110.0000.04014.49
5.3.100.0100.04014.19
5.3.90.0000.05013.96
5.3.80.0030.07713.95
5.3.70.0100.03714.11
5.3.60.0070.06314.04
5.3.50.0070.06713.84
5.3.40.0030.06013.97
5.3.30.0070.05313.90
5.3.20.0030.06713.77
5.3.10.0130.05713.68
5.3.00.0100.02713.71
5.2.170.0070.02711.17
5.2.160.0030.06011.25
5.2.150.0070.04011.21
5.2.140.0100.05311.17
5.2.130.0030.06311.22
5.2.120.0000.03011.17
5.2.110.0170.04711.17
5.2.100.0070.03011.17
5.2.90.0070.05711.21
5.2.80.0030.03711.17
5.2.70.0070.03011.19
5.2.60.0000.05011.17
5.2.50.0030.02711.17
5.2.40.0000.05711.17
5.2.30.0000.05311.17
5.2.20.0000.03011.17
5.2.10.0030.03711.17
5.2.00.0170.04711.17
5.1.60.0100.03711.17
5.1.50.0070.05011.17
5.1.40.0030.07011.17
5.1.30.0000.04011.17
5.1.20.0000.02711.17
5.1.10.0030.02011.17
5.1.00.0000.05711.17
5.0.50.0030.04711.17
5.0.40.0000.04711.17
5.0.30.0000.05311.17
5.0.20.0000.02311.17
5.0.10.0030.04711.17
5.0.00.0030.06011.17
4.4.90.0070.01011.17
4.4.80.0000.01311.17
4.4.70.0000.01311.17
4.4.60.0030.03011.17
4.4.50.0000.01711.17
4.4.40.0000.05711.17
4.4.30.0030.01311.17
4.4.20.0070.03311.17
4.4.10.0030.03711.17
4.4.00.0000.05311.17
4.3.110.0030.03311.17
4.3.100.0000.03011.17
4.3.90.0000.03311.17
4.3.80.0000.05711.17
4.3.70.0000.03711.17
4.3.60.0030.01711.17
4.3.50.0000.01711.17
4.3.40.0030.04711.17
4.3.30.0030.02311.17
4.3.20.0030.01311.17
4.3.10.0000.01711.17
4.3.00.0000.01711.17

preferences:
46.41 ms | 400 KiB | 5 Q