3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( Array('weight' => '317.51474856007','reps' => '10'), Array('weight' => 50,'reps' => 10), Array('reps' => 10), Array('reps' => 10) ); $count = array(); array_walk_recursive($arr, function($v, $k) use ($count){if(array_key_exists($k, $count))$count[$k]++;else $count[$k]=1;}, $count); print_r($count);

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.00616.50
8.3.50.0290.00723.00
8.3.40.0110.00320.47
8.3.30.0100.00719.07
8.3.20.0040.00420.12
8.3.10.0080.00023.65
8.3.00.0050.00317.47
8.2.180.0100.00325.92
8.2.170.0080.00818.91
8.2.160.0100.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0100.01026.16
8.2.120.0000.00821.00
8.2.110.0090.00022.25
8.2.100.0080.00417.72
8.2.90.0000.00819.21
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0060.00318.22
8.2.30.0000.00718.13
8.2.20.0050.00317.77
8.2.10.0040.00418.04
8.2.00.0000.00817.80
8.1.280.0120.00625.92
8.1.270.0030.00523.96
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0030.00623.92
8.1.230.0040.00719.18
8.1.220.0080.00017.79
8.1.210.0000.00918.77
8.1.200.0060.00317.34
8.1.190.0040.00417.25
8.1.180.0050.00318.10
8.1.170.0090.00018.59
8.1.160.0000.00721.97
8.1.150.0040.00418.93
8.1.140.0000.00717.46
8.1.130.0000.00717.83
8.1.120.0040.00417.38
8.1.110.0040.00417.48
8.1.100.0040.00417.40
8.1.90.0050.00317.42
8.1.80.0040.00417.48
8.1.70.0070.00017.40
8.1.60.0000.00917.59
8.1.50.0040.00417.58
8.1.40.0080.00017.51
8.1.30.0000.00817.66
8.1.20.0050.00517.49
8.1.10.0000.00717.47
8.1.00.0040.00417.45
8.0.300.0080.00018.77
8.0.290.0000.00716.63
8.0.280.0080.00018.49
8.0.270.0040.00417.26
8.0.260.0000.00717.24
8.0.250.0000.00716.88
8.0.240.0030.00616.90
8.0.230.0040.00416.83
8.0.220.0000.00816.90
8.0.210.0000.00716.88
8.0.200.0030.00317.00
8.0.190.0030.00616.94
8.0.180.0040.00416.95
8.0.170.0000.00816.91
8.0.160.0000.00816.95
8.0.150.0030.00516.77
8.0.140.0070.00016.77
8.0.130.0030.00613.38
8.0.120.0000.00816.75
8.0.110.0080.00016.83
8.0.100.0070.00016.69
8.0.90.0050.00316.95
8.0.80.0110.00616.77
8.0.70.0040.00416.79
8.0.60.0000.00716.79
8.0.50.0050.00216.75
8.0.30.0110.01116.94
8.0.20.0060.01217.40
8.0.10.0000.00716.95
8.0.00.0140.00616.81
7.4.330.0000.00615.00
7.4.320.0000.00616.64
7.4.300.0030.00316.58
7.4.290.0070.00016.64
7.4.280.0060.00316.51
7.4.270.0040.00416.57
7.4.260.0080.00016.57
7.4.250.0030.00316.54
7.4.240.0050.00216.54
7.4.230.0030.00316.46
7.4.220.0070.01116.61
7.4.210.0120.00316.67
7.4.200.0030.00316.43
7.4.160.0100.00716.43
7.4.150.0090.00917.40
7.4.140.0100.01317.86
7.4.130.0120.00616.63
7.4.120.0120.00716.57
7.4.110.0070.01716.55
7.4.100.0070.01016.57
7.4.90.0110.00616.55
7.4.80.0120.00919.39
7.4.70.0110.00716.43
7.4.60.0110.00616.41
7.4.50.0030.00316.25
7.4.40.0130.00816.25
7.4.30.0120.00316.65
7.4.00.0080.00814.96
7.3.330.0000.00613.31
7.3.320.0000.00613.38
7.3.310.0060.00016.22
7.3.300.0000.00716.39
7.3.290.0130.00316.34
7.3.280.0070.01016.34
7.3.270.0180.00017.40
7.3.260.0110.00816.75
7.3.240.0100.01016.35
7.3.230.0100.00616.40
7.3.210.0130.01016.36
7.3.200.0060.01019.39
7.3.190.0150.00916.36
7.3.180.0100.00616.66
7.3.170.0130.00316.31
7.3.160.0060.01016.57
7.3.120.0100.00715.03
7.3.110.0070.01014.72
7.3.100.0040.01415.11
7.3.90.0040.00414.68
7.3.80.0030.01014.73
7.3.70.0060.00614.75
7.3.60.0060.00914.71
7.3.50.0030.00714.89
7.3.40.0080.00015.07
7.3.30.0070.00714.59
7.3.20.0060.00916.59
7.3.10.0060.00916.48
7.3.00.0040.00816.74
7.2.330.0180.00016.38
7.2.320.0110.01116.64
7.2.310.0120.00916.53
7.2.300.0030.01316.45
7.2.290.0060.00916.32
7.2.250.0100.00714.89
7.2.240.0100.01015.13
7.2.230.0060.00914.87
7.2.220.0000.00914.86
7.2.210.0000.01015.18
7.2.200.0040.01115.04
7.2.190.0100.00314.89
7.2.180.0070.00715.08
7.2.170.0040.00814.82
7.1.330.0030.01015.57
7.1.320.0070.00315.66
7.1.310.0030.00615.75
7.1.300.0100.00715.74
7.1.290.0030.01016.02
7.1.280.0060.00615.87
7.1.270.0030.00615.49
7.1.260.0040.00415.60
7.1.70.0030.00717.13
7.1.60.0040.00717.37
7.1.50.0000.01616.98
7.1.00.0030.07722.42
7.0.200.0070.00716.53
7.0.140.0030.07022.07
7.0.60.0070.08019.80
7.0.50.0070.03717.85
7.0.40.0130.04720.20
7.0.30.0430.05020.21
7.0.20.0200.08320.26
7.0.10.0000.06320.19
7.0.00.0070.03720.12
5.6.210.0170.07320.61
5.6.200.0170.07718.18
5.6.190.0070.06320.52
5.6.180.3230.04020.47
5.6.170.0300.06720.61
5.6.160.0100.06320.44
5.6.150.0070.08018.14
5.6.140.0070.07718.14
5.6.130.0100.07018.29
5.6.120.0000.09721.16
5.6.110.0100.04721.02
5.6.100.0070.04720.96
5.6.90.0070.03721.00
5.6.80.0100.05320.38
5.6.70.0370.06020.50
5.5.350.0100.06020.42
5.5.340.0170.07018.08
5.5.330.0130.07720.19
5.5.320.0400.04320.25
5.5.310.0370.07320.34
5.5.300.0170.03717.95
5.5.290.0070.03717.97
5.5.280.0170.07320.78
5.5.270.0070.08320.80
5.5.260.0100.08020.87
5.5.250.0170.07320.62
5.5.240.0000.08020.23
5.4.450.0730.06019.55
5.4.440.0530.05719.31
5.4.430.0570.05319.66
5.4.420.0530.05019.55
5.4.410.0670.05319.19
5.4.400.0700.05019.12
5.4.390.0670.06019.33
5.4.380.0100.05318.75
5.4.370.0070.03718.74
5.4.360.0100.03318.53
5.4.350.0080.03712.02
5.4.340.0150.02812.02
5.4.320.0060.04612.50
5.4.310.0040.03912.50
5.4.300.0040.03712.50
5.4.290.0030.04012.50
5.4.280.0060.03412.39
5.4.270.0060.03612.40
5.4.260.0050.03712.39
5.4.250.0060.03612.39
5.4.240.0050.03612.39
5.4.230.0060.03612.38
5.4.220.0040.03612.39
5.4.210.0050.03512.38
5.4.200.0060.03612.39
5.4.190.0050.03612.38
5.4.180.0070.04912.38
5.4.170.0060.03812.40
5.4.160.0050.03512.39
5.4.150.0040.03712.39
5.4.140.0020.04112.07
5.4.130.0040.03612.05
5.4.120.0040.03512.02
5.4.110.0030.03612.01
5.4.100.0050.03612.01
5.4.90.0050.03912.02
5.4.80.0050.03712.02
5.4.70.0050.03412.01
5.4.60.0060.03312.01
5.4.50.0070.03312.01
5.4.40.0040.03512.00
5.4.30.0040.03712.00
5.4.20.0080.03312.00
5.4.10.0040.03611.99
5.4.00.0040.03611.48
5.3.290.0090.04212.80
5.3.280.0040.03812.71
5.3.270.0060.04012.72
5.3.260.0020.04212.72
5.3.250.0040.03712.72
5.3.240.0060.04312.71
5.3.230.0020.04112.71
5.3.220.0050.03812.68
5.3.210.0040.04112.68
5.3.200.0080.04212.68
5.3.190.0070.03612.68
5.3.180.0040.03812.67
5.3.170.0040.03812.67
5.3.160.0050.04212.67
5.3.150.0080.04012.67
5.3.140.0060.03512.66
5.3.130.0090.03512.66
5.3.120.0070.03812.66
5.3.110.0060.03912.66
5.3.100.0090.03412.12
5.3.90.0030.04312.10
5.3.80.0060.03512.09
5.3.70.0030.03812.09
5.3.60.0030.03812.07
5.3.50.0080.03212.02
5.3.40.0050.03612.03
5.3.30.0060.03611.98
5.3.20.0090.03111.76
5.3.10.0070.03211.73
5.3.00.0040.03611.71
5.2.170.0040.0319.18
5.2.160.0030.0299.18
5.2.150.0040.0349.19
5.2.140.0030.0319.18
5.2.130.0030.0389.14
5.2.120.0040.0309.14
5.2.110.0050.0299.15
5.2.100.0040.0289.14
5.2.90.0050.0279.14
5.2.80.0050.0299.14
5.2.70.0060.0279.13
5.2.60.0030.0329.09
5.2.50.0040.0359.06
5.2.40.0030.0299.04
5.2.30.0030.0309.01
5.2.20.0040.0289.01
5.2.10.0060.0328.92
5.2.00.0040.0288.79
5.1.60.0020.0258.07
5.1.50.0010.0278.07
5.1.40.0040.0248.05
5.1.30.0050.0258.39
5.1.20.0050.0248.41
5.1.10.0050.0258.14
5.1.00.0040.0248.14
5.0.50.0040.0196.63
5.0.40.0040.0186.48
5.0.30.0040.0296.29
5.0.20.0030.0196.26
5.0.10.0040.0186.25
5.0.00.0040.0296.23
4.4.90.0010.0164.77
4.4.80.0030.0154.76
4.4.70.0010.0174.75
4.4.60.0020.0154.75
4.4.50.0050.0124.77
4.4.40.0010.0264.71
4.4.30.0030.0144.76
4.4.20.0040.0134.84
4.4.10.0030.0144.85
4.4.00.0020.0244.75
4.3.110.0010.0164.67
4.3.100.0040.0134.66
4.3.90.0030.0144.63
4.3.80.0030.0234.59
4.3.70.0010.0164.63
4.3.60.0020.0144.63
4.3.50.0040.0134.63
4.3.40.0010.0254.54
4.3.30.0000.0183.29
4.3.20.0010.0163.26
4.3.10.0030.0173.23
4.3.00.0130.0207.82

preferences:
42.07 ms | 401 KiB | 5 Q