3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(Array('b','d'), Array('c','a'), Array('b','d'), Array('a','d'), Array('c'), Array('c'), Array('a','d','e'), Array('d','b') ); function array_count_values_of($value, $array) { $counts = array_count_values($array); return $counts[$value]; } for($i=0 ; $i<count($array2) ; $i++) { $temp = array_count_values_of($array2[$i], $array); $result[$i][0] = $array2[$i]; $result[$i][1] = $temp; } print_r($result);

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.0100.01016.50
8.3.50.0090.00916.72
8.3.40.0040.01418.79
8.3.30.0160.00018.70
8.3.20.0030.01018.54
8.3.10.0000.00820.60
8.3.00.0080.00019.25
8.2.180.0180.00316.63
8.2.170.0060.00922.96
8.2.160.0130.00321.05
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0120.00026.16
8.2.120.0050.00319.09
8.2.110.0070.00321.07
8.2.100.0060.00617.84
8.2.90.0080.00319.22
8.2.80.0040.00419.32
8.2.70.0060.00317.50
8.2.60.0040.00417.91
8.2.50.0090.00018.07
8.2.40.0000.00718.22
8.2.30.0000.00718.07
8.2.20.0020.00517.73
8.2.10.0040.00417.72
8.2.00.0080.00017.91
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0080.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00722.55
8.1.230.0040.00721.00
8.1.220.0080.00017.79
8.1.210.0000.00918.88
8.1.200.0030.00617.36
8.1.190.0040.00417.53
8.1.180.0030.00618.10
8.1.170.0090.00018.89
8.1.160.0070.00018.77
8.1.150.0040.00418.53
8.1.140.0070.00017.46
8.1.130.0030.00317.84
8.1.120.0050.00217.41
8.1.110.0050.00317.38
8.1.100.0040.00417.49
8.1.90.0000.00717.50
8.1.80.0030.00517.43
8.1.70.0030.00317.43
8.1.60.0000.00817.57
8.1.50.0080.00017.39
8.1.40.0040.00417.48
8.1.30.0000.00717.55
8.1.20.0000.00717.59
8.1.10.0040.00417.61
8.1.00.0050.00317.47
8.0.300.0040.00419.98
8.0.290.0050.00216.75
8.0.280.0070.00018.27
8.0.270.0030.00517.19
8.0.260.0060.00016.84
8.0.250.0040.00417.02
8.0.240.0030.00316.96
8.0.230.0070.00016.95
8.0.220.0030.00316.88
8.0.210.0070.00016.98
8.0.200.0040.00416.89
8.0.190.0000.00716.93
8.0.180.0000.00716.89
8.0.170.0040.00417.01
8.0.160.0040.00417.03
8.0.150.0000.00716.80
8.0.140.0040.00416.93
8.0.130.0000.00613.39
8.0.120.0030.00516.95
8.0.110.0030.00316.87
8.0.100.0070.00017.02
8.0.90.0040.00417.00
8.0.80.0070.01016.93
8.0.70.0000.00716.95
8.0.60.0050.00216.84
8.0.50.0070.00017.02
8.0.30.0120.00617.08
8.0.20.0070.01217.09
8.0.10.0030.00517.13
8.0.00.0150.00316.93
7.4.330.0050.00012.98
7.4.320.0000.00816.46
7.4.300.0000.00616.62
7.4.290.0000.00616.52
7.4.280.0050.00216.57
7.4.270.0040.00416.62
7.4.260.0050.00013.31
7.4.250.0060.00316.54
7.4.240.0040.00416.38
7.4.230.0030.00316.41
7.4.220.0140.01316.56
7.4.210.0090.00516.55
7.4.200.0000.00716.33
7.4.190.0000.00716.39
7.4.160.0090.00616.45
7.4.150.0120.00616.36
7.4.140.0120.00716.56
7.4.130.0140.00816.35
7.4.120.0080.01116.36
7.4.110.0060.01116.57
7.4.100.0100.01716.45
7.4.90.0070.01016.46
7.4.80.0100.01019.39
7.4.70.0100.00716.66
7.4.60.0070.01016.52
7.4.50.0120.00016.54
7.4.40.0050.00316.66
7.4.30.0140.00716.38
7.4.00.0070.00714.80
7.3.330.0030.00313.27
7.3.320.0030.00313.30
7.3.310.0000.00716.31
7.3.300.0030.00316.19
7.3.290.0000.01416.28
7.3.280.0060.01016.29
7.3.270.0130.00416.27
7.3.260.0130.00516.46
7.3.250.0080.00916.32
7.3.240.0030.01316.32
7.3.230.0030.02016.45
7.3.210.0120.00916.21
7.3.200.0090.00616.45
7.3.190.0030.01416.41
7.3.180.0030.01616.32
7.3.170.0070.01416.44
7.3.160.0090.00816.40
7.3.120.0060.00314.60
7.3.10.0080.00216.82
7.3.00.0070.00716.54
7.2.330.0090.00916.73
7.2.320.0030.01316.67
7.2.310.0140.01116.48
7.2.300.0090.01016.64
7.2.290.0060.01016.44
7.2.130.0060.00916.64
7.2.120.0100.00316.89
7.2.110.0060.00616.72
7.2.100.0070.00416.70
7.2.90.0090.00316.93
7.2.80.0000.01216.89
7.2.70.0000.01516.79
7.2.60.0040.00716.78
7.2.50.0000.01316.69
7.2.40.0030.01016.74
7.2.30.0040.00816.91
7.2.20.0070.00416.89
7.2.10.0000.01316.86
7.2.00.0020.01118.09
7.1.250.0060.00615.70
7.1.200.0000.00615.84
7.1.100.0030.00818.14
7.1.70.0040.00417.29
7.1.60.0150.00719.40
7.1.50.0030.02017.00
7.1.00.0100.05022.31
7.0.200.0270.00314.79
7.0.140.0030.07321.90
7.0.120.0070.06021.99
7.0.60.0030.07019.87
7.0.50.0030.07017.91
7.0.40.0100.08017.79
7.0.30.0100.08317.82
7.0.20.0170.04317.84
7.0.10.0130.05017.79
7.0.00.0030.05017.69
5.6.280.0070.07021.13
5.6.210.0170.05720.70
5.6.200.0130.08018.18
5.6.190.0100.07018.18
5.6.180.0070.06718.18
5.6.170.0000.07318.28
5.6.160.0070.07718.29
5.6.150.0000.04718.12
5.6.140.0030.08718.18
5.6.130.0130.07718.23
5.6.120.0130.08018.14
5.6.110.0030.06318.18
5.6.100.0100.03718.17
5.6.90.0070.04018.12
5.6.80.0170.06717.58
5.6.70.0070.04317.66
5.6.60.0070.07017.49
5.6.50.0030.05017.63
5.6.40.0070.04717.50
5.6.30.0070.07717.52
5.6.20.0070.08017.53
5.6.10.0030.06717.50
5.6.00.0100.04317.59
5.5.350.0300.05320.37
5.5.340.0070.08017.93
5.5.330.0130.07318.05
5.5.320.0100.06317.98
5.5.310.0070.06317.93
5.5.300.0030.09017.97
5.5.290.0100.08318.08
5.5.280.0070.08017.98
5.5.270.0030.04318.02
5.5.260.0070.06317.91
5.5.250.0130.06317.73
5.5.240.0100.03317.35
5.5.230.0130.07717.46
5.5.220.0030.05017.39
5.5.210.0100.04017.43
5.5.200.0070.07317.31
5.5.190.0100.05017.28
5.5.180.0070.07017.39
5.5.160.0070.08017.45
5.5.150.0030.04017.43
5.5.140.0070.04017.30
5.5.130.0000.04017.39
5.5.120.0100.03017.27
5.5.110.0030.06317.29
5.5.100.0030.06717.24
5.5.90.0100.03717.20
5.5.80.0030.04717.22
5.5.70.0130.04317.29
5.5.60.0100.05017.22
5.5.50.0030.05317.16
5.5.40.0100.06717.27
5.5.30.0100.07717.19
5.5.20.0130.07017.28
5.5.10.0100.04717.28
5.5.00.0030.05717.18
5.4.450.0170.06319.61
5.4.440.0070.08019.21
5.4.430.0100.04719.44
5.4.420.0030.05319.31
5.4.410.0030.04019.25
5.4.400.0000.08719.05
5.4.390.0030.04319.13
5.4.380.0030.06319.05
5.4.370.0100.06019.02
5.4.360.0070.05319.05
5.4.350.0030.04019.14
5.4.340.0070.05318.86
5.4.320.0070.03719.05
5.4.310.0100.07018.99
5.4.300.0030.04719.02
5.4.290.0030.04019.03
5.4.280.0070.03718.98
5.4.270.0130.03019.12
5.4.260.0200.06719.13
5.4.250.0030.06019.02
5.4.240.0000.05719.04
5.4.230.0030.04018.86
5.4.220.0070.04319.01
5.4.210.0030.04019.01
5.4.200.0070.06319.02
5.4.190.0130.07318.88
5.4.180.0170.05319.03
5.4.170.0070.07019.26
5.4.160.0070.05319.07
5.4.150.0030.04019.12
5.4.140.0030.03716.41
5.4.130.0070.03316.30
5.4.120.0070.03316.39
5.4.110.0000.04016.42
5.4.100.0100.03016.30
5.4.90.0030.03316.30
5.4.80.0000.03716.39
5.4.70.0100.06316.30
5.4.60.0000.05316.38
5.4.50.0000.04016.45
5.4.40.0030.03716.50
5.4.30.0030.04316.39
5.4.20.0070.03016.39
5.4.10.0000.03716.21
5.4.00.0000.03715.79
5.3.290.0030.04714.62
5.3.280.0100.07314.82
5.3.270.0070.05014.57
5.3.260.0070.04714.57
5.3.250.0070.03314.46
5.3.240.0030.04314.65
5.3.230.0030.04314.70
5.3.220.0070.03314.57
5.3.210.0000.04014.56
5.3.200.0030.04014.44
5.3.190.0070.03714.42
5.3.180.0070.03314.56
5.3.170.0030.06314.44
5.3.160.0070.07314.55
5.3.150.0070.07314.52
5.3.140.0030.03714.64
5.3.130.0070.03714.53
5.3.120.0030.04014.56
5.3.110.0030.03714.56
5.3.100.0030.03714.25
5.3.90.0000.03714.04
5.3.80.0070.03314.11
5.3.70.0100.03013.90
5.3.60.0000.03713.98
5.3.50.0000.04314.01
5.3.40.0000.03713.84
5.3.30.0030.04313.98
5.3.20.0000.03713.76
5.3.10.0070.03013.66
5.3.00.0070.03013.62
5.2.170.0030.04311.15
5.2.160.0000.03011.11
5.2.150.0000.03011.15
5.2.140.0030.03011.19
5.2.130.0030.02711.01
5.2.120.0070.02311.13
5.2.110.0030.02711.13
5.2.100.0000.03311.12
5.2.90.0000.03711.15
5.2.80.0000.03011.19
5.2.70.0000.03011.19
5.2.60.0000.03011.27
5.2.50.0070.02311.10
5.2.40.0030.03011.10
5.2.30.0030.02710.94
5.2.20.0030.02710.91
5.2.10.0030.02710.88
5.2.00.0030.02710.76
5.1.60.0000.02310.07
5.1.50.0000.02310.00
5.1.40.0030.02310.04
5.1.30.0000.02710.41
5.1.20.0000.02710.45
5.1.10.0000.02710.07
5.1.00.0000.05710.05
5.0.50.0030.0278.54
5.0.40.0070.0408.36
5.0.30.0070.0378.44
5.0.20.0030.0378.15
5.0.10.0030.0438.17
5.0.00.0070.0608.26
4.4.90.0030.0137.88
4.4.80.0000.0137.88
4.4.70.0070.0107.88
4.4.60.0000.0177.88
4.4.50.0000.0137.88
4.4.40.0030.0207.88
4.4.30.0030.0137.88
4.4.20.0000.0207.88
4.4.10.0070.0177.88
4.4.00.0030.0577.88
4.3.110.0070.0277.88
4.3.100.0000.0237.88
4.3.90.0000.0277.88
4.3.80.0030.0477.88
4.3.70.0030.0307.88
4.3.60.0000.0337.88
4.3.50.0070.0307.88
4.3.40.0030.0537.88
4.3.30.0070.0307.88
4.3.20.0000.0407.88
4.3.10.0030.0277.88
4.3.00.0000.0177.88

preferences:
50.42 ms | 401 KiB | 5 Q