3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = array(1, 'test' => array('a' => array('percy', 'mitch'),'b','c')); $helper = array(); array_walk_recursive( $testArray, function ($item, $key) use (&$helper) { if ($key === 'a') { //$helper[] = $item; var_dump($item); } } ); //var_dump($helper);

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.0120.00318.85
8.3.30.0100.00318.92
8.3.20.0050.00320.29
8.3.10.0040.00423.70
8.3.00.0080.00020.83
8.2.170.0090.00622.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0110.00426.16
8.2.120.0040.00420.62
8.2.110.0030.00622.10
8.2.100.0000.01217.84
8.2.90.0080.00019.16
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0080.00017.79
8.2.50.0040.00418.07
8.2.40.0030.00618.16
8.2.30.0100.00018.24
8.2.20.0040.00417.61
8.2.10.0070.00018.03
8.2.00.0070.00017.74
8.1.270.0100.00023.67
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.24
8.1.230.0040.00819.04
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.13
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00818.60
8.1.160.0050.00222.12
8.1.150.0040.00418.52
8.1.140.0040.00417.36
8.1.130.0030.00317.82
8.1.120.0040.00417.48
8.1.110.0000.00817.45
8.1.100.0040.00417.35
8.1.90.0040.00417.49
8.1.80.0000.00717.52
8.1.70.0030.00317.41
8.1.60.0000.00817.57
8.1.50.0000.00817.54
8.1.40.0080.00017.41
8.1.30.0040.00417.66
8.1.20.0030.00517.65
8.1.10.0050.00217.46
8.1.00.0000.00817.42
8.0.300.0000.00818.77
8.0.290.0030.00517.16
8.0.280.0000.00818.43
8.0.270.0050.00217.27
8.0.260.0070.00017.13
8.0.250.0000.00716.93
8.0.240.0040.00416.84
8.0.230.0000.00716.85
8.0.220.0000.00616.89
8.0.210.0030.00316.93
8.0.200.0030.00317.02
8.0.190.0030.00516.93
8.0.180.0070.00016.94
8.0.170.0050.00316.89
8.0.160.0000.00716.96
8.0.150.0000.00716.79
8.0.140.0000.00816.75
8.0.130.0000.00713.36
8.0.120.0000.00816.84
8.0.110.0050.00216.89
8.0.100.0030.00516.94
8.0.90.0070.00016.80
8.0.80.0040.01116.84
8.0.70.0030.00616.90
8.0.60.0050.00316.78
8.0.50.0040.00416.95
8.0.30.0090.01117.10
8.0.20.0120.00617.40
8.0.10.0050.00317.07
8.0.00.0120.00616.89
7.4.330.0030.00315.11
7.4.320.0040.00416.50
7.4.300.0040.00416.52
7.4.290.0000.00716.53
7.4.280.0060.00416.51
7.4.270.0000.00716.50
7.4.260.0050.00516.46
7.4.250.0040.00416.48
7.4.240.0030.00416.59
7.4.230.0000.00716.53
7.4.220.0060.01216.63
7.4.210.0060.00616.64
7.4.200.0070.00016.61
7.4.160.0070.01016.59
7.4.150.0130.00417.40
7.4.140.0100.00817.86
7.4.130.0080.01016.43
7.4.120.0100.00716.54
7.4.110.0100.01316.54
7.4.100.0090.00916.41
7.4.90.0090.00916.47
7.4.80.0120.00919.39
7.4.70.0060.01016.64
7.4.60.0050.01116.49
7.4.50.0000.00716.58
7.4.40.0090.00916.57
7.4.30.0070.01016.46
7.4.10.0090.00614.89
7.4.00.0100.00515.13
7.3.330.0080.00013.43
7.3.320.0000.00613.23
7.3.310.0070.00016.36
7.3.300.0030.00316.28
7.3.290.0070.00716.38
7.3.280.0080.01216.35
7.3.270.0120.00617.40
7.3.260.0100.00716.42
7.3.250.0100.00716.46
7.3.240.0080.01216.75
7.3.230.0090.00916.39
7.3.210.0130.00316.65
7.3.200.0100.00819.39
7.3.190.0100.01316.27
7.3.180.0060.00916.45
7.3.170.0100.00616.63
7.3.160.0090.00616.38
7.3.130.0120.00314.98
7.3.120.0100.00614.74
7.3.110.0100.00714.83
7.3.100.0040.01214.73
7.3.90.0080.00514.93
7.3.80.0100.00014.56
7.3.70.0030.01214.63
7.3.60.0070.00714.82
7.3.50.0100.00314.67
7.3.40.0150.00014.79
7.3.30.0100.00714.96
7.3.20.0070.00416.66
7.3.10.0070.01016.75
7.3.00.0030.00616.57
7.2.330.0060.01016.70
7.2.320.0070.01016.66
7.2.310.0130.00316.41
7.2.300.0040.01316.52
7.2.290.0120.00916.57
7.2.260.0030.01315.24
7.2.250.0060.01314.95
7.2.240.0120.00414.95
7.2.230.0070.00714.88
7.2.220.0060.01214.88
7.2.210.0000.01714.67
7.2.200.0030.01215.00
7.2.190.0060.00915.08
7.2.180.0030.01314.91
7.2.170.0040.01115.06
7.2.160.0000.01014.98
7.2.150.0070.01016.82
7.2.140.0030.01216.89
7.2.130.0040.01216.98
7.2.120.0040.01117.01
7.2.110.0090.00616.97
7.2.100.0040.01116.79
7.2.90.0030.00917.06
7.2.80.0030.00616.74
7.2.70.0030.00616.62
7.2.60.0040.01216.63
7.2.50.0030.01017.07
7.2.40.0060.01016.98
7.2.30.0090.00916.99
7.2.20.0060.00316.90
7.2.10.0090.00616.89
7.2.00.0080.00918.04
7.1.330.0090.00615.47
7.1.320.0030.00615.79
7.1.310.0060.00915.80
7.1.300.0030.01015.90
7.1.290.0060.00915.64
7.1.280.0000.01315.71
7.1.270.0000.00915.98
7.1.260.0000.01315.61
7.1.250.0070.00716.00
7.1.240.0070.00415.77
7.1.230.0040.01115.78
7.1.220.0040.00715.96
7.1.210.0090.00015.61
7.1.200.0060.00915.89
7.1.190.0130.00315.79
7.1.180.0080.00415.80
7.1.170.0100.00615.61
7.1.160.0080.00815.85
7.1.150.0070.00715.61
7.1.140.0070.01015.93
7.1.130.0040.00415.67
7.1.120.0070.01115.62
7.1.110.0110.00715.72
7.1.100.0080.00716.60
7.1.90.0000.00815.69
7.1.80.0070.01015.55
7.1.70.0020.00816.41
7.1.60.0080.01217.74
7.1.50.0160.01125.11
7.1.40.0110.00415.72
7.1.30.0120.00015.46
7.1.20.0000.01115.80
7.1.10.0070.01015.63
7.1.00.0090.03719.07
7.0.330.0000.00915.21
7.0.320.0060.00615.29
7.0.310.0070.00715.41
7.0.300.0000.01515.09
7.0.290.0070.01015.16
7.0.280.0070.01115.30
7.0.270.0060.00615.34
7.0.260.0030.00915.28
7.0.250.0060.00615.34
7.0.240.0030.01015.20
7.0.230.0000.01315.44
7.0.220.0030.00915.41
7.0.210.0000.00815.27
7.0.200.0030.00816.12
7.0.190.0030.00715.25
7.0.180.0080.00815.48
7.0.170.0000.00915.46
7.0.160.0000.01115.32
7.0.150.0080.00315.38
7.0.140.0000.04618.79
7.0.130.0100.00715.36
7.0.120.0000.01015.36
7.0.110.0070.00415.40
7.0.100.0080.01817.64
7.0.90.0080.04017.67
7.0.80.0100.04317.55
7.0.70.0020.02717.72
7.0.60.0050.02817.70
7.0.50.0010.03117.64
7.0.40.0040.02716.76
7.0.30.0100.01816.80
7.0.20.0030.02816.71
7.0.10.0030.02616.82
7.0.00.0100.02016.77
5.6.400.0100.00714.48
5.6.390.0040.01114.59
5.6.380.0100.00314.15
5.6.370.0000.01214.53
5.6.360.0060.00314.46
5.6.350.0040.01114.39
5.6.340.0040.01214.61
5.6.330.0040.01114.10
5.6.320.0000.01314.50
5.6.310.0030.00913.96
5.6.300.0000.01014.55
5.6.290.0080.00813.91
5.6.280.0050.03717.65
5.6.270.0050.00314.23
5.6.260.0090.00614.39
5.6.250.0020.02917.41
5.6.240.0030.02917.33
5.6.230.0050.03617.32
5.6.220.0050.02917.55
5.6.210.0120.03017.28
5.6.200.0080.02017.72
5.6.190.0080.02217.63
5.6.180.0030.02917.59
5.6.170.0000.02917.50
5.6.160.0050.02317.61
5.6.150.0070.02517.60
5.6.140.0100.02217.67
5.6.130.0020.02717.64
5.6.120.0050.02517.68
5.6.110.0070.02717.77
5.6.100.0030.03017.80
5.6.90.0060.03517.61
5.6.80.0050.04217.34
5.6.70.0090.03617.36
5.6.60.0150.03517.33
5.6.50.0060.02417.21
5.6.40.0070.02917.24
5.6.30.0170.03017.36
5.6.20.0030.02617.36
5.6.10.0120.03317.40
5.6.00.0080.02517.22
5.5.380.0040.03717.37
5.5.370.0090.02317.39
5.5.360.0050.02317.28
5.5.350.0030.02217.22
5.5.340.0080.02317.68
5.5.330.0030.02617.60
5.5.320.0060.02317.44
5.5.310.0050.02417.61
5.5.300.0050.02317.52
5.5.290.0070.02317.67
5.5.280.0020.02617.47
5.5.270.0080.02317.40
5.5.260.0050.02717.52
5.5.250.0030.03117.25
5.5.240.0060.03817.22
5.5.230.0050.02617.20
5.5.220.0100.03917.20
5.5.210.0070.04017.18
5.5.200.0030.04217.20
5.5.190.0080.04217.17
5.5.180.0070.03017.24
5.5.170.0130.00014.32
5.5.160.0020.03117.04
5.5.150.0070.04117.13
5.5.140.0070.03817.05
5.5.130.0080.04617.10
5.5.120.0090.02417.20
5.5.110.0070.04517.09
5.5.100.0070.02517.13
5.5.90.0110.03817.05
5.5.80.0100.03717.17
5.5.70.0050.04016.85
5.5.60.0050.03316.96
5.5.50.0050.03516.94
5.5.40.0050.03116.87
5.5.30.0110.03817.18
5.5.20.0080.03416.88
5.5.10.0070.03117.10
5.5.00.0080.02616.92
5.4.450.0040.02315.27
5.4.440.0000.02415.28
5.4.430.0030.02415.06
5.4.420.0050.02215.18
5.4.410.0030.02315.08
5.4.400.0100.02714.98
5.4.390.0030.04515.00
5.4.380.0070.03815.05
5.4.370.0070.04014.93
5.4.360.0100.02515.00
5.4.350.0110.04014.95
5.4.340.0080.02815.11
5.4.330.0040.00411.12
5.4.320.0050.03515.03
5.4.310.0090.03514.93
5.4.300.0030.04514.98
5.4.290.0130.02514.96
5.4.280.0080.04114.96
5.4.270.0100.03815.03
5.4.260.0060.02315.03
5.4.250.0070.02914.91
5.4.240.0050.04415.06
5.4.230.0050.04315.10
5.4.220.0060.03114.84
5.4.210.0050.02815.14
5.4.200.0040.03415.06
5.4.190.0100.03814.99
5.4.180.0080.03915.08
5.4.170.0090.03514.87
5.4.160.0030.02815.22
5.4.150.0080.03815.09
5.4.140.0100.03513.57
5.4.130.0030.04213.67
5.4.120.0030.02313.72
5.4.110.0050.02613.68
5.4.100.0030.02813.52
5.4.90.0070.04013.82
5.4.80.0050.03513.77
5.4.70.0070.03713.60
5.4.60.0050.04013.75
5.4.50.0040.02213.77
5.4.40.0110.02613.72
5.4.30.0070.03513.71
5.4.20.0090.03213.79
5.4.10.0080.04013.61
5.4.00.0080.04013.41
5.3.290.0070.02312.72
5.3.280.0030.04212.61
5.3.270.0050.04012.62
5.3.260.0100.04112.52
5.3.250.0070.04012.56
5.3.240.0050.04012.60
5.3.230.0050.04012.60
5.3.220.0050.03312.47
5.3.210.0060.03812.37
5.3.200.0030.03012.52
5.3.190.0020.02812.56
5.3.180.0090.03912.68
5.3.170.0020.03412.57
5.3.160.0000.03012.51
5.3.150.0060.03612.46
5.3.140.0020.02312.63
5.3.130.0070.03512.52
5.3.120.0050.04412.59
5.3.110.0100.02412.43
5.3.100.0070.03812.39
5.3.90.0050.03712.35
5.3.80.0070.03812.13
5.3.70.0030.02312.22
5.3.60.0070.03812.31
5.3.50.0070.03612.25
5.3.40.0010.04112.26
5.3.30.0020.04112.09
5.3.20.0070.03012.14
5.3.10.0030.02511.87
5.3.00.0010.02511.96
5.2.170.0070.05711.14
5.2.160.0030.05311.11
5.2.150.0000.07311.07
5.2.140.0170.02011.19
5.2.130.0030.03710.89
5.2.120.0070.05311.14
5.2.110.0030.05311.06
5.2.100.0000.06711.09
5.2.90.0100.05311.17
5.2.80.0170.04711.08
5.2.70.0000.05710.93
5.2.60.0030.06011.05
5.2.50.0130.05010.98
5.2.40.0100.06310.86
5.2.30.0000.04310.97
5.2.20.0070.04710.91
5.2.10.0100.04310.80
5.2.00.0100.04710.57
5.1.60.0070.0479.84
5.1.50.0100.04710.04
5.1.40.0100.04310.02
5.1.30.0100.05310.38
5.1.20.0100.05710.37
5.1.10.0100.03710.13
5.1.00.0000.03710.06
5.0.50.0070.0238.63
5.0.40.0070.0408.40
5.0.30.0000.0638.10
5.0.20.0070.0438.10
5.0.10.0070.0378.10
5.0.00.0000.0538.14
4.4.90.0030.0208.10
4.4.80.0000.0178.10
4.4.70.0070.0238.10
4.4.60.0030.0238.10
4.4.50.0070.0308.10
4.4.40.0000.0538.10
4.4.30.0030.0138.10
4.4.20.0000.0308.10
4.4.10.0070.0278.10
4.4.00.0030.0278.10
4.3.110.0000.0338.10
4.3.100.0070.0208.10
4.3.90.0030.0338.10
4.3.80.0070.0508.10
4.3.70.0000.0308.10
4.3.60.0030.0238.10
4.3.50.0030.0238.10
4.3.40.0100.0438.10
4.3.30.0000.0378.10
4.3.20.0030.0378.10
4.3.10.0030.0278.10
4.3.00.0000.0378.10

preferences:
40.7 ms | 400 KiB | 5 Q