3v4l.org

run code in 300+ PHP versions simultaneously
<?php // The controller class Controller { public function indexAction(MyLibrary $obj) { $variable = rand(1,10); // this is the variable my library needs // But this is NOT DI'd as it's only decided here } } // A random object that is a dependency of MyLibrary class AnotherObject { } // This is what is DI'd into my controller class MyLibrary { public function __construct(AnotherObject $obj2, $variable) { } } // Auryn won't know about the $variable until my controller gets it

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)
7.4.10.0050.01415.06
7.4.00.0100.00714.89
7.3.130.0100.01014.73
7.3.120.0110.00714.57
7.3.110.0060.01214.64
7.3.100.0110.01114.58
7.3.90.0080.00514.92
7.3.80.0070.00714.75
7.3.70.0030.00914.53
7.3.60.0070.00414.75
7.3.50.0030.01014.47
7.3.40.0030.00614.68
7.3.30.0070.00714.54
7.3.20.0040.01116.52
7.3.10.0050.00816.51
7.3.00.0000.01116.53
7.2.260.0030.01414.86
7.2.250.0030.01615.11
7.2.240.0090.00914.89
7.2.230.0130.00314.74
7.2.220.0060.00614.49
7.2.210.0040.00814.74
7.2.200.0070.00314.81
7.2.190.0000.01214.98
7.2.180.0030.01314.59
7.2.170.0000.00914.49
7.2.160.0000.01414.92
7.2.150.0030.00916.86
7.2.140.0040.01116.66
7.2.130.0070.00716.68
7.2.120.0060.00816.43
7.2.110.0030.00916.80
7.2.100.0050.00816.71
7.2.90.0060.00616.69
7.2.80.0070.00516.70
7.2.70.0090.00516.68
7.2.60.0070.00716.79
7.2.50.0050.00716.83
7.2.40.0070.00416.82
7.2.30.0110.00616.75
7.2.20.0100.00516.57
7.2.10.0050.01116.47
7.2.00.0030.01016.77
7.1.330.0070.01115.82
7.1.320.0070.00715.68
7.1.310.0040.00415.52
7.1.300.0030.01315.70
7.1.290.0060.01215.73
7.1.280.0030.01015.59
7.1.270.0040.00415.46
7.1.260.0060.00615.29
7.1.250.0080.00515.55
7.1.240.0030.00615.61
7.1.230.0030.00615.73
7.1.220.0070.00715.44
7.1.210.0030.00815.56
7.1.200.0080.00415.61
7.1.190.0110.00715.61
7.1.180.0000.01515.71
7.1.170.0090.00315.29
7.1.160.0060.00315.21
7.1.150.0090.00615.79
7.1.140.0100.00315.72
7.1.130.0100.00615.48
7.1.120.0120.00315.64
7.1.110.0030.01315.70
7.1.100.0070.00415.50
7.1.90.0060.00615.59
7.1.80.0070.00715.61
7.1.70.0050.00616.18
7.1.60.0090.00517.33
7.1.50.0170.00825.24
7.1.40.0030.01015.76
7.1.30.0070.00315.32
7.1.20.0040.00715.38
7.1.10.0070.01015.35
7.1.00.0030.02018.88
7.0.330.0000.01315.37
7.0.320.0060.00915.30
7.0.310.0080.00015.25
7.0.300.0090.00415.22
7.0.290.0070.00715.46
7.0.280.0070.00715.27
7.0.270.0070.00715.16
7.0.260.0060.00915.24
7.0.250.0060.01015.51
7.0.240.0070.00715.25
7.0.230.0030.01215.28
7.0.220.0060.00915.06
7.0.210.0110.00415.25
7.0.200.0150.00714.99
7.0.190.0000.01315.30
7.0.180.0080.00615.34
7.0.170.0000.00814.99
7.0.160.0030.00915.24
7.0.150.0040.00815.27
7.0.140.0060.03818.76
7.0.130.0050.00315.20
7.0.120.0090.00315.05
7.0.110.0110.00415.37
7.0.100.0000.05017.81
7.0.90.0040.04517.49
7.0.80.0020.04017.49
7.0.70.0120.02617.50
7.0.60.0090.02117.63
7.0.50.0100.02317.95
7.0.40.0030.04816.55
7.0.30.0060.02716.65
7.0.20.0060.03816.78
7.0.10.0020.02916.69
7.0.00.0030.03616.69
5.6.400.0030.00614.31
5.6.390.0070.00414.06
5.6.380.0070.00714.17
5.6.370.0100.00714.38
5.6.360.0000.01514.24
5.6.350.0030.01414.03
5.6.340.0030.00614.22
5.6.330.0080.00814.04
5.6.320.0060.00613.98
5.6.310.0060.00913.91
5.6.300.0000.00814.34
5.6.290.0030.00714.35
5.6.280.0000.04317.60
5.6.270.0000.01214.02
5.6.260.0040.00414.00
5.6.250.0030.02717.35
5.6.240.0020.02617.25
5.6.230.0050.04317.29
5.6.220.0070.03217.48
5.6.210.0080.03917.26
5.6.200.0070.04317.51
5.6.190.0110.02317.64
5.6.180.0030.03317.72
5.6.170.0030.04417.55
5.6.160.0040.04617.70
5.6.150.0100.03517.58
5.6.140.0050.04617.51
5.6.130.0100.03817.51
5.6.120.0050.02517.67
5.6.110.0100.04017.53
5.6.100.0090.02417.72
5.6.90.0050.04717.41
5.6.80.0060.03017.23
5.6.70.0080.04217.34
5.6.60.0090.03517.29
5.6.50.0050.04717.30
5.6.40.0050.01917.14
5.6.30.0030.03417.32
5.6.20.0050.03817.32
5.6.10.0080.04117.25
5.6.00.0090.02217.17
5.5.380.0050.02517.29
5.5.370.0060.04317.23
5.5.360.0030.03317.28
5.5.350.0120.03517.33
5.5.340.0060.04217.51
5.5.330.0060.04517.24
5.5.320.0080.04817.36
5.5.310.0070.04617.45
5.5.300.0030.03117.45
5.5.290.0050.02317.28
5.5.280.0110.03717.48
5.5.270.0130.04117.31
5.5.260.0040.03217.41
5.5.250.0070.04517.16
5.5.240.0030.04117.02
5.5.230.0030.02717.12
5.5.220.0000.02617.14
5.5.210.0140.03217.12
5.5.200.0080.02217.11
5.5.190.0120.03817.08
5.5.180.0050.04017.14
5.5.170.0030.00713.99
5.5.160.0070.02217.05
5.5.150.0060.02517.09
5.5.140.0070.03816.89
5.5.130.0100.04217.12
5.5.120.0080.02617.07
5.5.110.0030.04216.81
5.5.100.0060.04317.01
5.5.90.0030.04216.89
5.5.80.0070.02616.91
5.5.70.0080.04016.92
5.5.60.0080.04016.97
5.5.50.0100.03216.94
5.5.40.0050.02317.00
5.5.30.0100.03317.15
5.5.20.0050.04516.98
5.5.10.0020.04516.91
5.5.00.0080.03716.92
5.4.450.0050.03515.08
5.4.440.0060.02615.14
5.4.430.0070.04415.15
5.4.420.0030.03715.02
5.4.410.0050.04415.00
5.4.400.0040.03315.01
5.4.390.0050.04214.86
5.4.380.0080.02114.98
5.4.370.0030.03414.99
5.4.360.0020.04414.98
5.4.350.0070.03214.96
5.4.340.0090.03814.86
5.4.330.0030.00310.42
5.4.320.0050.04014.90
5.4.310.0110.03714.70
5.4.300.0080.03814.95
5.4.290.0030.03315.03
5.4.280.0020.02914.99
5.4.270.0080.03514.96
5.4.260.0050.03414.84
5.4.250.0070.04214.78
5.4.240.0000.03314.87
5.4.230.0050.03214.84
5.4.220.0060.03514.87
5.4.210.0020.04014.78
5.4.200.0070.02914.88
5.4.190.0020.04414.96
5.4.180.0070.03414.76
5.4.170.0070.03714.99
5.4.160.0060.03814.97
5.4.150.0020.04414.90
5.4.140.0090.03513.45
5.4.130.0050.03813.52
5.4.120.0050.02013.72
5.4.110.0040.04213.65
5.4.100.0050.01813.54
5.4.90.0070.02713.68
5.4.80.0070.03313.63
5.4.70.0060.03013.55
5.4.60.0030.03313.62
5.4.50.0060.03613.48
5.4.40.0070.01713.72
5.4.30.0100.03013.63
5.4.20.0050.04013.60
5.4.10.0070.03213.66
5.4.00.0050.01913.25
5.3.290.0050.03912.61
5.3.280.0070.03812.30
5.3.270.0090.03512.53
5.3.260.0030.03212.31
5.3.250.0110.01512.48
5.3.240.0020.04012.30
5.3.230.0030.04212.47
5.3.220.0050.03912.42
5.3.210.0030.01712.47
5.3.200.0080.03512.37
5.3.190.0050.03912.50
5.3.180.0050.04012.35
5.3.170.0020.03812.56
5.3.160.0050.02812.49
5.3.150.0020.02212.36
5.3.140.0020.02212.44
5.3.130.0040.04212.53
5.3.120.0080.04612.48
5.3.110.0060.04112.45
5.3.100.0080.03512.23
5.3.90.0030.01812.17
5.3.80.0030.02212.13
5.3.70.0050.03812.13
5.3.60.0040.01812.09
5.3.50.0070.03412.07
5.3.40.0030.01812.16
5.3.30.0080.03212.13
5.3.20.0050.03612.01
5.3.10.0050.03711.69
5.3.00.0070.03811.84
5.2.170.0030.03713.60
5.2.160.0100.05713.60
5.2.150.0000.02713.60
5.2.140.0000.04313.60
5.2.130.0000.06013.60
5.2.120.0070.05713.60
5.2.110.0100.04313.60
5.2.100.0100.05713.60
5.2.90.0130.05013.60
5.2.80.0070.05313.60
5.2.70.0000.03713.60
5.2.60.0030.05313.60
5.2.50.0000.06013.60
5.2.40.0070.03313.60
5.2.30.0030.05313.60
5.2.20.0000.05013.60
5.2.10.0000.06313.60
5.2.00.0000.06313.60
5.1.60.0070.04313.60
5.1.50.0130.04713.60
5.1.40.0100.04013.60
5.1.30.0030.02313.60
5.1.20.0030.05713.60
5.1.10.0030.03713.60
5.1.00.0030.02013.60
5.0.50.0070.03313.60
5.0.40.0030.04713.60
5.0.30.0070.02313.60
5.0.20.0000.03713.60
5.0.10.0030.04313.60
5.0.00.0070.06313.60
4.4.90.0030.01013.60
4.4.80.0000.02713.60
4.4.70.0000.01713.60
4.4.60.0070.03013.60
4.4.50.0070.03013.60
4.4.40.0030.02013.60
4.4.30.0030.03313.60
4.4.20.0030.03313.60
4.4.10.0070.02713.60
4.4.00.0000.04713.60
4.3.110.0070.03013.60
4.3.100.0000.02713.60
4.3.90.0030.03313.60
4.3.80.0030.02013.60
4.3.70.0100.02713.60
4.3.60.0100.02713.60
4.3.50.0000.01713.60
4.3.40.0030.05013.60
4.3.30.0000.01713.60
4.3.20.0030.03313.60
4.3.10.0000.01313.60
4.3.00.0000.02713.60

preferences:
46.14 ms | 401 KiB | 5 Q