3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Controller { public function __construct(B $b) { $this->b = $b; } } class B { public function __construct(C $c) { $this->c = $c; } } class C { public function __construct(Guzzle $guzzle) { $this->guzzle = $guzzle; } } class Guzzle { } $getReflectedConstructorParams = function($className) { return (new \ReflectionClass($className))->getConstructor()->getParameters(); }; $className = 'Controller'; $graph = [$className]; // I hate recursion, there's much better ways while (!empty($getReflectedConstructorParams($className))) { $className = $getReflectedConstructorParams($className); $graph[] = $className; } var_dump($className);

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.60.0120.00316.63
8.3.50.0110.00521.27
8.3.40.0120.00418.79
8.3.30.0110.00718.73
8.3.20.0070.00020.20
8.3.10.0070.00023.66
8.3.00.0080.00017.93
8.2.180.0160.00616.38
8.2.170.0120.00322.96
8.2.160.0130.00020.45
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0070.00321.11
8.2.100.0070.00418.16
8.2.90.0000.00719.20
8.2.80.0030.00517.97
8.2.70.0030.00517.75
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0030.00621.11
8.2.30.0030.00320.70
8.2.20.0040.00417.75
8.2.10.0000.00718.15
8.2.00.0040.00418.14
8.1.280.0140.00725.92
8.1.270.0030.01523.81
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00321.39
8.1.230.0080.00317.77
8.1.220.0060.00317.79
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0040.00417.38
8.1.180.0080.00018.10
8.1.170.0040.00420.31
8.1.160.0000.00721.92
8.1.150.0040.00418.92
8.1.140.0030.00521.30
8.1.130.0000.00717.73
8.1.120.0040.00417.49
8.1.110.0070.00017.50
8.1.100.0040.00417.50
8.1.90.0000.00717.49
8.1.80.0040.00417.50
8.1.70.0000.00717.47
8.1.60.0060.00317.50
8.1.50.0040.00717.60
8.1.40.0000.00917.43
8.1.30.0070.00417.55
8.1.20.0030.00617.59
8.1.10.0000.00717.59
8.1.00.0000.00717.55
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0050.00318.42
8.0.270.0000.00717.15
8.0.260.0040.00417.24
8.0.250.0070.00017.02
8.0.240.0000.00717.03
8.0.230.0090.00017.05
8.0.220.0030.00316.99
8.0.210.0040.00416.93
8.0.200.0060.00317.09
8.0.190.0040.00716.91
8.0.180.0040.00716.93
8.0.170.0000.00716.93
8.0.160.0050.00316.95
8.0.150.0000.00816.90
8.0.140.0000.00716.96
8.0.130.0000.00513.43
8.0.120.0030.00616.95
8.0.110.0070.00016.84
8.0.100.0000.00716.92
8.0.90.0070.00017.02
8.0.80.0090.00616.96
8.0.70.0040.00416.86
8.0.60.0030.00316.97
8.0.50.0000.00717.01
8.0.30.0100.01017.18
8.0.20.0130.00517.40
8.0.10.0030.00517.16
8.0.00.0060.01116.67
7.4.330.0020.00215.08
7.4.320.0060.00016.50
7.4.300.0040.00416.63
7.4.290.0070.00016.62
7.4.280.0000.00816.50
7.4.270.0030.00316.51
7.4.260.0030.00316.55
7.4.250.0040.00416.50
7.4.240.0060.00216.58
7.4.230.0030.00316.68
7.4.220.0130.00916.64
7.4.210.0090.00616.64
7.4.200.0030.00316.46
7.4.160.0100.00616.50
7.4.150.0080.00817.40
7.4.140.0130.00817.86
7.4.130.0050.01416.68
7.4.120.0070.01216.63
7.4.110.0150.00316.59
7.4.100.0130.01016.51
7.4.90.0130.00316.50
7.4.80.0130.00319.39
7.4.70.0060.01116.58
7.4.60.0100.01016.56
7.4.50.0070.00016.54
7.4.40.0140.00316.55
7.4.30.0140.00716.52
7.4.00.0040.01114.96
7.3.330.0050.00013.32
7.3.320.0000.00513.16
7.3.310.0000.00716.47
7.3.300.0000.00616.29
7.3.290.0060.00816.37
7.3.280.0080.01016.34
7.3.270.0070.01117.40
7.3.260.0100.00716.53
7.3.250.0110.00716.53
7.3.240.0130.00816.45
7.3.230.0090.00916.49
7.3.210.0060.01016.62
7.3.200.0140.00716.60
7.3.190.0100.00716.41
7.3.180.0070.01016.59
7.3.170.0080.00716.45
7.3.160.0140.00316.45
7.2.330.0120.00516.60
7.2.320.0090.00916.73
7.2.310.0060.01216.61
7.2.300.0100.00716.82
7.2.290.0060.01216.59
7.2.60.0080.00816.79
7.2.00.0030.01219.53
7.1.200.0040.00815.59
7.1.100.0060.00918.13
7.1.70.0090.00617.27
7.1.60.0210.00419.50
7.1.50.0090.01316.67
7.1.00.0030.07322.40
7.0.200.0060.00616.64
7.0.60.0030.05319.91
7.0.50.0130.07717.89
7.0.40.0130.07720.26
7.0.30.0230.08320.16
7.0.20.0200.08720.20
7.0.10.0100.03720.19
7.0.00.0030.06320.05
5.6.280.0030.04321.00
5.6.210.0070.08020.63
5.6.200.0170.07718.15
5.6.190.0200.07320.61
5.6.180.0300.07320.57
5.6.170.0270.08020.48
5.6.160.0070.04020.56
5.6.150.0030.04718.12
5.6.140.0070.06718.25
5.6.130.0030.04718.28
5.6.120.0070.06321.12
5.6.110.0070.07721.05
5.6.100.0100.05021.02
5.6.90.0100.05720.96
5.6.80.0000.07720.37
5.5.350.0230.08020.39
5.5.340.0070.05317.95
5.5.330.0030.08020.27
5.5.320.0300.04720.29
5.5.310.1200.04720.35
5.5.300.0070.08318.08
5.5.290.0070.04017.98
5.5.280.0000.04320.78
5.5.270.0030.04320.89
5.5.260.0100.08020.85
5.5.250.0170.06020.59
5.5.240.0030.07720.04
5.4.450.0570.06719.48
5.4.440.0600.05019.49
5.4.430.0430.05719.47
5.4.420.0470.06019.47
5.4.410.0530.07319.34
5.4.400.0370.05319.38
5.4.390.0370.05719.29
5.4.380.0400.05019.23
5.4.370.0800.05718.98
5.4.360.0630.06719.29
5.4.350.0730.05018.88
5.4.340.0800.06319.06
5.4.320.0800.06019.20
5.4.310.0800.05018.87
5.4.300.0730.05719.14
5.4.290.0700.05319.15
5.4.280.0630.06019.25
5.4.270.0270.04019.26
5.4.260.0470.06319.25
5.4.250.0700.05719.14
5.4.240.0200.05019.15
5.4.230.0800.05719.28
5.4.220.0700.05719.14
5.4.210.0730.06319.37
5.4.200.0700.05019.13
5.4.190.0700.05719.14
5.4.180.0700.06319.00
5.4.170.0130.05018.98
5.4.160.0100.05719.13
5.4.150.0870.05019.13
5.4.140.0070.05016.62
5.4.130.0270.05016.54
5.4.120.0730.04016.36
5.4.110.0770.06316.47
5.4.100.0800.05716.32
5.4.90.0770.05716.69
5.4.80.0700.05716.66
5.4.70.0670.05316.32
5.4.60.0100.05716.17
5.4.50.0200.05316.49
5.4.40.0870.04316.23
5.4.30.0670.04716.58
5.4.20.0670.04716.59
5.4.10.0730.05716.59
5.4.00.0670.05016.21

preferences:
104.23 ms | 401 KiB | 5 Q