3v4l.org

run code in 200+ PHP versions simultaneously
<?php $jobTiers = array("tier_1" => array("jobs_to_inc" => 10, "jobs_to_dec" => 8), "tier_2" => array("jobs_to_inc" => 20, "jobs_to_dec" => 16)); $jobCount = 10; $test = array_walk_recursive($jobTiers, function($arr) use ($jobCount) { // I want it to return the array where jobCount is in-between jobs_to_dec and jobs_to_inc return ($jobCount >= $arr['jobs_to_dec'] && $jobCount <= $arr['jobs_to_inc']) ? $arr : false; }); var_dump($test);

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.0100.00714.94
7.4.00.0080.00915.01
7.3.130.0110.00814.86
7.3.120.0090.00514.84
7.3.110.0090.00914.88
7.3.100.0080.00514.83
7.3.90.0120.00414.88
7.3.80.0050.00714.84
7.3.70.0070.00814.84
7.3.60.0050.00814.72
7.3.50.0080.00714.84
7.3.40.0050.01014.70
7.3.30.0020.01214.82
7.3.20.0070.00616.67
7.3.10.0050.00916.56
7.3.00.0090.00616.62
7.2.260.0050.01415.06
7.2.250.0060.01315.02
7.2.240.0100.00714.99
7.2.230.0050.00815.05
7.2.220.0070.00615.14
7.2.210.0070.00715.09
7.2.200.0040.01214.87
7.2.190.0070.00714.99
7.2.180.0050.00814.93
7.2.170.0080.00814.91
7.2.160.0050.00714.87
7.2.150.0060.00716.84
7.2.140.0030.01316.89
7.2.130.0060.00816.94
7.2.120.0050.01016.92
7.2.110.0060.00716.74
7.2.100.0050.00816.83
7.2.90.0060.00816.70
7.2.80.0040.00816.84
7.2.70.0050.01016.88
7.2.60.0070.00716.81
7.2.50.0060.01116.88
7.2.40.0030.01016.98
7.2.30.0100.00317.06
7.2.20.0050.00616.98
7.2.10.0080.00716.73
7.2.00.0070.00817.56
7.1.330.0040.00915.65
7.1.320.0050.00815.80
7.1.310.0070.00615.84
7.1.300.0070.00515.75
7.1.290.0070.00615.69
7.1.280.0040.00915.70
7.1.270.0040.00615.68
7.1.260.0070.00415.79
7.1.250.0070.00615.74
7.1.240.0050.00415.67
7.1.230.0070.00515.58
7.1.220.0050.01015.88
7.1.210.0120.00215.86
7.1.200.0060.00915.88
7.1.190.0030.01115.89
7.1.180.0090.00415.70
7.1.170.0050.00715.86
7.1.160.0040.01115.73
7.1.150.0070.00515.89
7.1.140.0070.00715.79
7.1.130.0030.01015.67
7.1.120.0050.00815.80
7.1.110.0110.00315.84
7.1.100.0050.00916.65
7.1.90.0050.00715.82
7.1.80.0030.01115.74
7.1.70.0070.00816.21
7.1.60.0090.01017.02
7.1.50.0070.01016.20
7.1.40.0080.00715.83
7.1.30.0100.00315.70
7.1.20.0070.00715.60
7.1.10.0060.01015.77
7.1.00.0080.02918.03
7.0.330.0040.00815.27
7.0.320.0050.00815.41
7.0.310.0030.00815.37
7.0.300.0030.00615.22
7.0.290.0110.00615.28
7.0.280.0090.00815.23
7.0.270.0070.00715.22
7.0.260.0040.00915.50
7.0.250.0090.00615.36
7.0.240.0030.00815.43
7.0.230.0070.00915.35
7.0.220.0030.00915.30
7.0.210.0030.00715.37
7.0.200.0060.00815.83
7.0.190.0060.00615.51
7.0.180.0020.00915.22
7.0.170.0030.00915.47
7.0.160.0070.00615.38
7.0.150.0050.00815.39
7.0.140.0040.03017.55
7.0.130.0050.00715.34
7.0.120.0070.00715.39
7.0.110.0080.00515.48
7.0.100.0030.01215.16
7.0.90.0040.00715.40
7.0.80.0100.00515.44
7.0.70.0040.03317.59
7.0.60.0080.02117.51
7.0.50.0090.03217.67
7.0.40.0020.02215.63
7.0.30.0060.03115.75
7.0.20.0020.03915.65
7.0.10.0080.03315.70
7.0.00.0060.03115.63
5.6.400.0080.00614.34
5.6.390.0000.01014.28
5.6.380.0070.00514.57
5.6.370.0000.01514.64
5.6.360.0030.00614.28
5.6.350.0060.00914.34
5.6.340.0080.00314.20
5.6.330.0080.00814.54
5.6.320.0110.00214.32
5.6.310.0090.00514.38
5.6.300.0020.01214.35
5.6.290.0050.01014.24
5.6.280.0050.02916.66
5.6.270.0030.01114.18
5.6.260.0030.00814.22
5.6.250.0050.00714.12
5.6.240.0030.00914.55
5.6.230.0020.01414.49
5.6.220.0020.03316.46
5.6.210.0060.02516.41
5.6.200.0090.03216.63
5.6.190.0000.02716.66
5.6.180.0070.03116.45
5.6.170.0040.03016.51
5.6.160.0060.03416.56
5.6.150.0070.03316.55
5.6.140.0070.02416.49
5.6.130.0070.03216.64
5.6.120.0060.03016.53
5.6.110.0050.03416.49
5.6.100.0060.03116.66
5.6.90.0040.03316.67
5.6.80.0040.03416.28
5.6.70.0060.03416.29
5.6.60.0020.03616.29
5.6.50.0070.03316.31
5.6.40.0030.03416.44
5.6.30.0030.03516.38
5.6.20.0040.03216.25
5.6.10.0070.02316.20
5.6.00.0060.01916.33
5.5.380.0060.00914.04
5.5.370.0070.00514.30
5.5.360.0030.03516.26
5.5.350.0060.03116.17
5.5.340.0020.03716.53
5.5.330.0030.02416.36
5.5.320.0020.03616.40
5.5.310.0030.03516.40
5.5.300.0100.03016.57
5.5.290.0070.02616.44
5.5.280.0060.03416.30
5.5.270.0040.03416.49
5.5.260.0050.02416.43
5.5.250.0050.03516.24
5.5.240.0050.03216.15
5.5.230.0050.02516.07
5.5.220.0050.03116.13
5.5.210.0040.02616.16
5.5.200.0030.03216.17
5.5.190.0030.03416.13
5.5.180.0010.03616.27
5.5.170.0020.01114.21
5.5.160.0030.03216.06
5.5.150.0060.02816.01
5.5.140.0050.03116.04
5.5.130.0120.02716.02
5.5.120.0060.03416.17
5.5.110.0070.03216.04
5.5.100.0050.02016.09
5.5.90.0070.03016.05
5.5.80.0100.02816.07
5.5.70.0080.03116.13
5.5.60.0070.02116.04
5.5.50.0090.02916.17
5.5.40.0030.01816.04
5.5.30.0050.02216.25
5.5.20.0090.02815.97
5.5.10.0080.01616.08
5.5.00.0050.02116.05
5.4.450.0010.03014.18
5.4.440.0030.03114.17
5.4.430.0080.02714.20
5.4.420.0020.03114.15
5.4.410.0070.02614.06
5.4.400.0070.03114.13
5.4.390.0030.03414.16
5.4.380.0010.03114.14
5.4.370.0020.03114.08
5.4.360.0030.03314.12
5.4.350.0060.01813.94
5.4.340.0050.03014.11
5.4.330.0030.00611.62
5.4.320.0080.02814.13
5.4.310.0030.03214.08
5.4.300.0030.03114.05
5.4.290.0050.03014.17
5.4.280.0030.03214.05
5.4.270.0040.02413.99
5.4.260.0040.03214.04
5.4.250.0050.03013.99
5.4.240.0040.03114.00
5.4.230.0040.02514.08
5.4.220.0040.02814.16
5.4.210.0010.02613.97
5.4.200.0050.01714.04
5.4.190.0000.02814.09
5.4.180.0030.02014.08
5.4.170.0040.02814.03
5.4.160.0040.03113.97
5.4.150.0070.02314.08
5.4.140.0040.03113.14
5.4.130.0070.02113.07
5.4.120.0040.02813.15
5.4.110.0070.02913.24
5.4.100.0030.02913.08
5.4.90.0050.02813.24
5.4.80.0050.02713.16
5.4.70.0060.02713.15
5.4.60.0060.02613.20
5.4.50.0040.02013.04
5.4.40.0040.03113.24
5.4.30.0020.03113.11
5.4.20.0080.02413.17
5.4.10.0080.02213.13
5.4.00.0040.02413.08
5.3.290.0070.02112.96
5.3.280.0050.02912.83
5.3.270.0010.03412.96
5.3.260.0030.03212.94
5.3.250.0060.02212.95
5.3.240.0010.02812.81
5.3.230.0060.02912.92
5.3.220.0070.02812.90
5.3.210.0050.02612.93
5.3.200.0080.02512.85
5.3.190.0040.02512.85
5.3.180.0010.02312.99
5.3.170.0030.02912.96
5.3.160.0050.03012.95
5.3.150.0020.02812.88
5.3.140.0050.02712.91
5.3.130.0050.02912.93
5.3.120.0040.02412.94
5.3.110.0070.01512.92
5.3.100.0050.02912.96
5.3.90.0010.03312.99
5.3.80.0080.02412.80
5.3.70.0030.02512.89
5.3.60.0050.02812.85
5.3.50.0090.02412.93
5.3.40.0010.03012.94
5.3.30.0030.02912.95
5.3.20.0090.01212.93
5.3.10.0040.01712.89
5.3.00.0030.01712.78
5.2.170.0070.05315.85
5.2.160.0000.06015.85
5.2.150.0030.06315.85
5.2.140.0030.04315.85
5.2.130.0030.02715.85
5.2.120.0000.04715.85
5.2.110.0030.04015.85
5.2.100.0070.05715.85
5.2.90.0030.04315.85
5.2.80.0030.03315.85
5.2.70.0030.03015.85
5.2.60.0000.03315.85
5.2.50.0000.03015.85
5.2.40.0000.03015.85
5.2.30.0000.03315.85
5.2.20.0000.03315.85
5.2.10.0030.02715.85
5.2.00.0030.03015.85
5.1.60.0070.02015.85
5.1.50.0000.02715.85
5.1.40.0000.02315.85
5.1.30.0000.03015.85
5.1.20.0000.02715.85
5.1.10.0030.04015.85
5.1.00.0030.02315.85
5.0.50.0000.02015.85
5.0.40.0030.01715.85
5.0.30.0030.04315.85
5.0.20.0000.02015.85
5.0.10.0000.04715.85
5.0.00.0030.06715.85
4.4.90.0030.02315.85
4.4.80.0030.02715.85
4.4.70.0000.01715.85
4.4.60.0000.01715.85
4.4.50.0000.01715.85
4.4.40.0100.01015.85
4.4.30.0000.01715.85
4.4.20.0000.02315.85
4.4.10.0030.01715.85
4.4.00.0030.04715.85
4.3.110.0030.01315.85
4.3.100.0000.01715.85
4.3.90.0000.03315.85
4.3.80.0100.01715.85
4.3.70.0000.04015.85
4.3.60.0000.03315.85
4.3.50.0000.02715.85
4.3.40.0030.03715.85
4.3.30.0000.02015.85
4.3.20.0000.01715.85
4.3.10.0000.01715.85
4.3.00.0000.01715.85