3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = [ (object)['group' => 'a', 'other_col' => 'a'], (object)['group' => 'b', 'other_col' => 'a'], (object)['group' => 'a', 'other_col' => 'a'], (object)['group' => 'a', 'other_col' => 'a'], (object)['group' => 'c', 'other_col' => 'a'], ]; $groups = array_count_values(array_column($rows, 'group')); print_r($groups);

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.0070.01317.93
8.4.10.0090.00019.49
8.3.150.0060.00318.86
8.3.140.0080.00016.62
8.3.130.0080.00018.35
8.3.120.0060.00320.51
8.3.110.0060.00320.94
8.3.100.0050.00324.06
8.3.90.0080.00026.77
8.3.80.0050.00518.18
8.3.70.0150.00016.58
8.3.60.0140.00618.30
8.3.50.0180.01223.67
8.3.40.0130.00318.79
8.3.30.0120.00318.79
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.260.0150.00018.95
8.2.250.0050.00318.36
8.2.240.0050.00319.07
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0000.01016.75
8.2.190.0110.01118.66
8.2.180.0180.00025.92
8.2.170.0150.00618.78
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0020.00524.66
8.2.130.0080.00826.16
8.2.120.0040.00420.75
8.2.110.0060.00322.26
8.2.100.0080.00417.69
8.2.90.0080.00017.97
8.2.80.0000.00818.16
8.2.70.0070.00317.38
8.2.60.0040.00417.63
8.2.50.0000.00817.63
8.2.40.0000.00819.32
8.2.30.0050.00217.98
8.2.20.0000.00717.91
8.2.10.0070.00019.23
8.2.00.0000.00719.18
8.1.310.0040.00416.88
8.1.300.0110.00018.32
8.1.290.0090.00030.84
8.1.280.0110.00325.92
8.1.270.0000.00822.05
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.01021.98
8.1.230.0110.00020.88
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0030.00617.62
8.1.160.0040.00420.67
8.1.150.0000.00818.94
8.1.140.0020.00518.89
8.1.130.0030.00320.19
8.1.120.0040.00417.49
8.1.110.0000.00717.49
8.1.100.0000.00817.46
8.1.90.0070.00317.43
8.1.80.0000.00817.50
8.1.70.0070.00017.54
8.1.60.0050.00517.47
8.1.50.0050.00317.41
8.1.40.0050.00317.45
8.1.30.0080.00017.52
8.1.20.0040.00417.66
8.1.10.0000.00817.52
8.1.00.0030.00617.46
8.0.300.0000.00719.94
8.0.290.0040.00416.75
8.0.280.0000.00818.43
8.0.270.0040.00418.11
8.0.260.0000.00618.57
8.0.250.0000.00717.01
8.0.240.0040.00417.04
8.0.230.0070.00016.91
8.0.220.0000.00716.96
8.0.210.0000.00716.97
8.0.200.0030.00316.93
8.0.190.0050.00216.98
8.0.180.0000.00816.87
8.0.170.0040.00416.98
8.0.160.0030.00316.91
8.0.150.0000.00916.94
8.0.140.0000.00716.93
8.0.130.0060.00013.35
8.0.120.0070.00016.95
8.0.110.0000.00716.80
8.0.100.0070.00016.94
8.0.90.0050.00316.74
8.0.80.0060.00916.88
8.0.70.0000.00916.82
8.0.60.0000.00716.95
8.0.50.0040.00417.02
8.0.30.0100.01317.00
8.0.20.0090.00917.29
8.0.10.0030.00516.97
8.0.00.0080.01016.75
7.4.330.0050.00015.55
7.4.320.0000.00616.50
7.4.300.0000.00616.36
7.4.290.0000.00816.33
7.4.280.0030.00616.57
7.4.270.0070.00016.47
7.4.260.0030.00313.31
7.4.250.0040.00416.61
7.4.240.0040.00416.57
7.4.230.0030.00316.55
7.4.220.0020.00516.51
7.4.210.0100.00616.64
7.4.200.0040.00416.39
7.4.130.0050.01316.47
7.4.120.0110.00816.56
7.4.110.0100.01816.42
7.4.100.0120.00816.63
7.4.90.0070.01016.38
7.4.80.0100.00916.51
7.4.70.0110.01116.48
7.4.60.0080.01316.43
7.4.50.0180.00216.47
7.4.40.0150.00716.55
7.4.30.0090.01016.52
7.4.20.0090.01516.58
7.4.10.0100.00916.33
7.4.00.0130.00616.59
7.3.330.0030.00316.39
7.3.320.0030.00313.06
7.3.310.0030.00316.30
7.3.300.0000.00616.12
7.3.290.0090.01016.28
7.3.260.0080.01216.40
7.3.250.0070.01116.19
7.3.240.0080.01016.23
7.3.230.0140.01016.35
7.3.220.0120.00816.28
7.3.210.0120.00516.23
7.3.200.0110.00616.48
7.3.190.0110.01016.53
7.3.180.0050.01216.35
7.3.170.0090.01316.38
7.3.160.0100.01116.40
7.3.150.0080.00816.39
7.3.140.0120.00716.40
7.3.130.0080.00816.36
7.3.120.0130.01016.28
7.3.110.0140.00716.39
7.3.100.0100.01016.30
7.3.90.0100.00816.38
7.3.80.0100.01016.39
7.3.70.0120.00716.30
7.3.60.0090.01216.34
7.3.50.0100.01016.29
7.3.40.0110.00816.29
7.3.30.0130.00916.42
7.3.20.0120.00916.35
7.3.10.0120.00916.25
7.3.00.0110.01116.24
7.2.340.0060.01216.76
7.2.330.0240.01216.39
7.2.320.0350.00616.75
7.2.310.0210.01116.64
7.2.300.0230.01316.34
7.2.290.0280.00916.87
7.2.280.0270.00516.48
7.2.270.0400.00716.64
7.2.260.0310.00616.73
7.2.250.0320.00816.52
7.2.240.0190.02016.81
7.2.230.0270.01416.59
7.2.220.0300.01316.74
7.2.210.0220.01816.71
7.2.200.0280.00816.57
7.2.190.0380.00316.55
7.2.180.0220.01916.47
7.2.170.0360.00716.55
7.2.160.0270.01716.50
7.2.150.0350.00816.50
7.2.140.0310.01216.50
7.2.130.0350.00716.54
7.2.120.0320.00616.69
7.2.110.0190.01916.60
7.2.100.0320.00516.59
7.2.90.0190.01916.54
7.2.80.0420.01616.89
7.2.70.0400.00816.57
7.2.60.0290.00716.54
7.2.50.0220.01316.69
7.2.40.0240.01016.56
7.2.30.0280.00716.66
7.2.20.0250.01116.61
7.2.10.0220.01516.65
7.2.00.0540.00616.63
7.1.330.0230.01315.57
7.1.320.0280.00815.53
7.1.310.0210.00815.38
7.1.300.0260.01515.56
7.1.290.0510.01015.44
7.1.280.0320.01115.43
7.1.270.0350.00615.43
7.1.260.0260.00915.40
7.1.250.0270.01215.61
7.1.240.0220.01315.45
7.1.230.0260.01115.39
7.1.220.0280.00415.54
7.1.210.0220.00915.41
7.1.200.0110.01915.23
7.1.190.0220.01215.45
7.1.180.0280.00315.39
7.1.170.0230.00715.39
7.1.160.0350.01115.41
7.1.150.0210.01115.34
7.1.140.0120.02415.29
7.1.130.0270.00715.48
7.1.120.0240.00615.57
7.1.110.0210.01015.54
7.1.100.0240.01015.34
7.1.90.0290.00815.45
7.1.80.0210.00915.41
7.1.70.0280.00515.58
7.1.60.0190.01215.35
7.1.50.0320.00515.34
7.1.40.0550.00715.72
7.1.30.0160.01615.42
7.1.20.0460.01515.47
7.1.10.0240.01215.42
7.1.00.0200.00315.47
7.0.330.0300.00315.21
7.0.320.0240.00614.98
7.0.310.0220.00615.04
7.0.300.0260.00515.07
7.0.290.0270.00815.15
7.0.280.0250.00515.28
7.0.270.0190.01215.00
7.0.260.0210.00715.02
7.0.250.0170.01015.38
7.0.240.0260.01215.25
7.0.230.0260.00715.23
7.0.220.0230.00615.02
7.0.210.0240.00915.20
7.0.200.0300.00415.04
7.0.190.0210.01315.08
7.0.180.0260.00915.25
7.0.170.0320.00815.03
7.0.160.0140.01815.15
7.0.150.0140.01415.32
7.0.140.0220.00315.02
7.0.130.0140.00915.05
7.0.120.0270.00715.24
7.0.110.0310.00714.98
7.0.100.0310.00715.14
7.0.90.0350.00615.14
7.0.80.0210.00915.01
7.0.70.0280.00615.08
7.0.60.0190.01315.21
7.0.50.0210.00915.02
7.0.40.0290.00815.27
7.0.30.0190.01315.11
7.0.20.0170.01115.16
7.0.10.0210.01114.94
7.0.00.0210.00714.92
5.6.400.0270.01215.69
5.6.390.0280.01015.88
5.6.380.0300.00615.98
5.6.370.0150.01915.83
5.6.360.0160.01615.84
5.6.350.0290.00815.97
5.6.340.0260.00715.89
5.6.330.0280.00715.86
5.6.320.0180.00915.70
5.6.310.0150.01815.92
5.6.300.0220.00915.99
5.6.290.0180.00915.56
5.6.280.0220.01315.73
5.6.270.0200.01415.89
5.6.260.0220.01515.81
5.6.250.0250.00615.80
5.6.240.0310.00815.80
5.6.230.0170.01415.87
5.6.220.0240.01415.87
5.6.210.0210.01015.75
5.6.200.0160.01615.89
5.6.190.0210.01615.93
5.6.180.0180.02015.77
5.6.170.0240.01415.94
5.6.160.0190.01915.93
5.6.150.0220.00915.65
5.6.140.0200.01115.92
5.6.130.0150.01515.84
5.6.120.0220.01016.01
5.6.110.0160.01315.63
5.6.100.0260.00315.76
5.6.90.0210.00816.00
5.6.80.0150.01215.64
5.6.70.0160.01215.83
5.6.60.0090.01815.46
5.6.50.0240.00715.76
5.6.40.0180.00915.90
5.6.30.0200.00815.87
5.6.20.0240.00715.83
5.6.10.0190.01015.64
5.6.00.0210.01015.59
5.5.380.0280.00715.78
5.5.370.0300.00415.57
5.5.360.0230.01515.67
5.5.350.0150.01615.70
5.5.340.0250.01115.75
5.5.330.0300.01315.79
5.5.320.0130.01815.72
5.5.310.0200.01615.77
5.5.300.0040.02615.75
5.5.290.0190.01115.92
5.5.280.0250.00715.82
5.5.270.0260.00415.71
5.5.260.0130.01915.86
5.5.250.0190.01015.56
5.5.240.0270.00015.93
5.5.230.0160.01215.83
5.5.220.0160.01215.52
5.5.210.0190.01115.82
5.5.200.0180.01115.75
5.5.190.0190.01315.65
5.5.180.0180.00915.55
5.5.170.0230.00915.65
5.5.160.0120.01615.55
5.5.150.0250.00615.78
5.5.140.0100.02015.67
5.5.130.0270.00415.58
5.5.120.0240.00615.89
5.5.110.0170.01715.70
5.5.100.0230.01215.70
5.5.90.0160.01215.58
5.5.80.0190.01115.82
5.5.70.0270.00315.57
5.5.60.0220.01115.64
5.5.50.0200.01215.73
5.5.40.0170.01115.67
5.5.30.0170.01315.66
5.5.20.0150.01215.73
5.5.10.0270.00315.56
5.5.00.0130.01615.64
5.4.450.0100.01412.84
5.4.440.0170.00712.46
5.4.430.0210.00312.71
5.4.420.0110.01112.71
5.4.410.0130.00812.41
5.4.400.0160.00812.48
5.4.390.0180.00312.44
5.4.380.0080.01212.63
5.4.370.0180.00412.45
5.4.360.0130.00912.60
5.4.350.0180.00612.49
5.4.340.0160.00712.66
5.4.330.0120.00912.59
5.4.320.0180.00612.38
5.4.310.0120.01212.65
5.4.300.0220.01912.36
5.4.290.0170.00912.36
5.4.280.0190.01112.35
5.4.270.0150.01212.38
5.4.260.0140.00712.69
5.4.250.0130.01312.52
5.4.240.0190.00412.42
5.4.230.0110.01112.39
5.4.220.0180.00712.47
5.4.210.0120.00912.43
5.4.200.0180.00412.30
5.4.190.0130.01112.30
5.4.180.0150.00712.57
5.4.170.0140.00912.39
5.4.160.0110.01512.50
5.4.150.0210.00612.38
5.4.140.0180.00412.42
5.4.130.0110.01512.71
5.4.120.0130.00812.45
5.4.110.0170.00812.78
5.4.100.0150.00812.38
5.4.90.0170.00412.64
5.4.80.0120.00912.53
5.4.70.0120.00812.45
5.4.60.0130.00812.46
5.4.50.0170.00312.53
5.4.40.0150.01012.52
5.4.30.0160.00612.56
5.4.20.0170.00412.48
5.4.10.0140.00712.48
5.4.00.0140.01012.50
5.3.290.0140.01112.99
5.3.280.0100.01212.61
5.3.270.0190.00812.68
5.3.260.0210.00312.64
5.3.250.0150.00712.73
5.3.240.0130.01312.53
5.3.230.0160.00612.69
5.3.220.0220.00012.68
5.3.210.0230.00012.58
5.3.200.0130.00912.61
5.3.190.0180.00412.73
5.3.180.0130.01012.82
5.3.170.0170.00612.90
5.3.160.0210.00512.79
5.3.150.0130.01012.76
5.3.140.0170.00612.71
5.3.130.0190.00312.73
5.3.120.0070.01512.88
5.3.110.0180.00412.85
5.3.100.0050.01612.97
5.3.90.0090.01212.94
5.3.80.0170.00412.94
5.3.70.0120.01212.67
5.3.60.0150.00812.97
5.3.50.0130.00812.82
5.3.40.0190.00312.62
5.3.30.0210.00612.71
5.3.20.0120.00912.66
5.3.10.0120.00912.41
5.3.00.0150.00812.41
5.2.170.0110.00812.00
5.2.160.0130.00711.77
5.2.150.0100.01011.77
5.2.140.0150.00511.71
5.2.130.0110.00711.68
5.2.120.0170.00711.84
5.2.110.0130.00611.94
5.2.100.0130.00611.72
5.2.90.0060.01311.80
5.2.80.0210.00311.65
5.2.70.0160.01011.88
5.2.60.0170.00411.60
5.2.50.0200.00311.84
5.2.40.0120.00811.69
5.2.30.0080.01211.70
5.2.20.0090.00911.58
5.2.10.0060.01211.72
5.2.00.0150.00811.48
5.1.60.0090.00910.92
5.1.50.0130.00411.07
5.1.40.0080.01210.92
5.1.30.0110.00611.10
5.1.20.0110.00610.92
5.1.10.0100.00710.92
5.1.00.0080.00810.95
5.0.50.0100.00510.92
5.0.40.0090.00510.92
5.0.30.0070.00710.92
5.0.20.0090.00410.92
5.0.10.0100.00310.92
5.0.00.0080.00410.92
4.4.90.0050.00510.92
4.4.80.0040.00810.92
4.4.70.0060.00310.92
4.4.60.0080.00210.92
4.4.50.0050.00510.92
4.4.40.0050.00410.92
4.4.30.0070.00410.92
4.4.20.0000.01010.92
4.4.10.0060.00610.92
4.4.00.0080.00010.92
4.3.110.0000.00810.92
4.3.100.0060.00310.92
4.3.90.0030.00610.92
4.3.80.0040.00410.92
4.3.70.0030.00610.92
4.3.60.0070.00310.92
4.3.50.0090.00310.92
4.3.40.0080.00010.92
4.3.30.0050.00510.92
4.3.20.0080.00010.92
4.3.10.0040.00410.92
4.3.00.0030.00610.92

preferences:
78.33 ms | 403 KiB | 5 Q