3v4l.org

run code in 300+ 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)
8.4.20.0170.00318.00
8.4.10.0060.00317.78
8.3.150.0140.00417.20
8.3.140.0100.01016.71
8.3.130.0060.00318.59
8.3.120.0100.01018.64
8.3.110.0050.00520.94
8.3.100.0030.00616.65
8.3.90.0120.00626.77
8.3.80.0060.00320.28
8.3.70.0140.00716.74
8.3.60.0120.00616.75
8.3.50.0160.00222.12
8.3.40.0120.00318.78
8.3.30.0110.00418.96
8.3.20.0050.00220.34
8.3.10.0080.00023.71
8.3.00.0070.00020.58
8.2.270.0040.01417.08
8.2.260.0150.00316.55
8.2.250.0000.00818.21
8.2.240.0030.00618.96
8.2.230.0030.00622.58
8.2.220.0000.00824.06
8.2.210.0040.00426.77
8.2.200.0060.00318.29
8.2.190.0110.00416.88
8.2.180.0120.00416.34
8.2.170.0100.00722.96
8.2.160.0070.00722.25
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00822.09
8.2.110.0040.00422.10
8.2.100.0040.01117.91
8.2.90.0090.00019.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0090.00017.93
8.2.50.0080.00018.07
8.2.40.0040.00419.28
8.2.30.0020.00518.13
8.2.20.0060.00317.72
8.2.10.0040.00417.63
8.2.00.0000.00817.82
8.1.310.0040.00418.51
8.1.300.0000.01018.47
8.1.290.0000.00930.84
8.1.280.0130.00625.92
8.1.270.0030.00523.83
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00623.92
8.1.230.0110.00019.10
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.48
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0060.00318.42
8.1.160.0040.00422.06
8.1.150.0000.00718.55
8.1.140.0000.00717.45
8.1.130.0040.00417.82
8.1.120.0000.00717.41
8.1.110.0050.00217.48
8.1.100.0030.00517.46
8.1.90.0000.00717.48
8.1.80.0030.00317.47
8.1.70.0040.00417.43
8.1.60.0040.00417.64
8.1.50.0050.00517.45
8.1.40.0000.00717.55
8.1.30.0060.00317.59
8.1.20.0000.00717.55
8.1.10.0080.00017.61
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0000.00817.05
8.0.280.0030.00318.47
8.0.270.0030.00317.12
8.0.260.0000.00816.77
8.0.250.0040.00416.90
8.0.240.0030.00717.00
8.0.230.0040.00417.07
8.0.220.0000.00716.96
8.0.210.0000.00716.81
8.0.200.0030.00316.89
8.0.190.0030.00316.94
8.0.180.0050.00216.86
8.0.170.0000.00917.01
8.0.160.0070.00016.84
8.0.150.0030.00316.93
8.0.140.0040.00416.88
8.0.130.0000.00513.33
8.0.120.0000.00816.83
8.0.110.0030.00516.99
8.0.100.0050.00216.89
8.0.90.0070.00016.89
8.0.80.0100.00616.89
8.0.70.0040.00416.93
8.0.60.0040.00416.89
8.0.50.0040.00416.97
8.0.30.0100.00716.99
8.0.20.0100.00817.40
8.0.10.0040.00416.93
8.0.00.0110.00816.77
7.4.330.0000.00515.00
7.4.320.0030.00316.49
7.4.300.0030.00316.48
7.4.290.0070.00016.59
7.4.280.0030.00316.41
7.4.270.0030.00316.42
7.4.260.0020.00516.58
7.4.250.0080.00016.51
7.4.240.0020.00716.48
7.4.230.0000.00716.66
7.4.220.0070.01116.68
7.4.210.0060.01016.56
7.4.200.0000.00716.40
7.4.190.0050.00316.58
7.4.160.0180.00016.67
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0150.00516.49
7.4.120.0080.01216.50
7.4.110.0070.01016.25
7.4.100.0090.00916.63
7.4.90.0120.00616.60
7.4.80.0130.00716.57
7.4.70.0100.00616.33
7.4.60.0090.01216.49
7.4.50.0040.00016.57
7.4.40.0060.00622.77
7.4.30.0060.01316.70
7.4.10.0100.00714.94
7.4.00.0080.00915.01
7.3.330.0000.00613.32
7.3.320.0000.00613.32
7.3.310.0030.00316.25
7.3.300.0000.00716.36
7.3.290.0100.01016.34
7.3.280.0020.01316.31
7.3.270.0070.01017.40
7.3.260.0090.00916.39
7.3.250.0070.01016.42
7.3.240.0130.01016.42
7.3.230.0140.00416.64
7.3.210.0100.00616.52
7.3.200.0030.01919.39
7.3.190.0100.00716.48
7.3.180.0060.01116.61
7.3.170.0070.01016.45
7.3.160.0130.00316.71
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.330.0100.00716.35
7.2.320.0030.01316.73
7.2.310.0100.00716.50
7.2.300.0070.01016.72
7.2.290.0110.00616.78
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

preferences:
30.11 ms | 403 KiB | 5 Q