3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = str_split('ABCDEFGHIJK'); $collecte = array_keys($list); for($i=0;$i<100;$i++) { $shuffle = $list; array_shuffle($shuffle); foreach($shuffle as $pos=>$letter) $collecte[$pos][]=$etter; } foreach($collecte as $pos=>$collection) $collecte[$pos] = array_count_values($collection); $table=array(); foreach($collecte as $pos=>$collection) foreach($list as $letter) $table[$letter][$pos]='<td>'.$collection[$letter].'</td>'; echo '<table>'; foreach($table as $letter=>$ligne) { ksort($table[$letter]); echo '<tr>'.implode('',$table[$letter]).'</tr>'; } echo '</table>';

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.0180.00318.30
8.3.50.0080.01621.93
8.3.40.0140.00418.79
8.3.30.0070.00718.83
8.3.20.0030.00520.33
8.3.10.0000.00721.90
8.3.00.0030.00618.02
8.2.180.0090.00918.41
8.2.170.0110.00322.96
8.2.160.0040.01120.29
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0000.01017.49
8.2.110.0050.00520.11
8.2.100.0040.00717.78
8.2.90.0040.00419.13
8.2.80.0040.00417.97
8.2.70.0000.00817.25
8.2.60.0040.00417.90
8.2.50.0070.00218.07
8.2.40.0000.00819.46
8.2.30.0080.00417.95
8.2.20.0040.00417.63
8.2.10.0000.00717.96
8.2.00.0050.00218.08
8.1.280.0140.00425.92
8.1.270.0060.00322.02
8.1.260.0040.00726.35
8.1.250.0000.00728.09
8.1.240.0050.00523.73
8.1.230.0040.00720.99
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0050.00517.36
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0040.00421.97
8.1.150.0000.00718.76
8.1.140.0040.00417.49
8.1.130.0030.00317.71
8.1.120.0020.00517.43
8.1.110.0000.00817.39
8.1.100.0000.00817.48
8.1.90.0000.00717.42
8.1.80.0040.00717.48
8.1.70.0070.00017.39
8.1.60.0030.00517.54
8.1.50.0050.00317.55
8.1.40.0000.01017.50
8.1.30.0000.00817.64
8.1.20.0040.00417.68
8.1.10.0000.00817.47
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.41
8.0.270.0030.00317.13
8.0.260.0030.00317.22
8.0.250.0000.00816.91
8.0.240.0000.00816.99
8.0.230.0000.01017.02
8.0.220.0080.00016.79
8.0.210.0030.00316.88
8.0.200.0060.00017.06
8.0.190.0060.00316.94
8.0.180.0040.00416.93
8.0.170.0000.00716.96
8.0.160.0000.00716.97
8.0.150.0000.00716.96
8.0.140.0050.00216.91
8.0.130.0060.00313.36
8.0.120.0040.00416.77
8.0.110.0040.00416.82
8.0.100.0040.00417.02
8.0.90.0070.00016.79
8.0.80.0130.00716.94
8.0.70.0040.00416.94
8.0.60.0080.00016.88
8.0.50.0000.00716.73
8.0.30.0130.00716.99
8.0.20.0140.00817.40
8.0.10.0000.00817.00
8.0.00.0100.01116.78
7.4.330.0060.00015.08
7.4.320.0060.00016.42
7.4.300.0060.00016.62
7.4.290.0050.00516.61
7.4.280.0050.00516.68
7.4.270.0030.00316.46
7.4.260.0000.00716.56
7.4.250.0040.00416.52
7.4.240.0030.00516.57
7.4.230.0020.00516.43
7.4.220.0110.00716.73
7.4.210.0070.01316.64
7.4.200.0000.00716.64
7.4.160.0000.01516.57
7.4.150.0200.00317.40
7.4.140.0090.01517.86
7.4.130.0100.01016.45
7.4.120.0090.00816.58
7.4.110.0170.00416.52
7.4.100.0130.00816.46
7.4.90.0090.00916.46
7.4.80.0110.00719.39
7.4.70.0060.01316.66
7.4.60.0100.00716.54
7.4.50.0000.00816.51
7.4.40.0080.00816.62
7.4.30.0090.01516.41
7.4.00.0040.01115.23
7.3.330.0000.00613.16
7.3.320.0030.00313.21
7.3.310.0000.00716.24
7.3.300.0030.00516.38
7.3.290.0130.00416.43
7.3.280.0100.00716.42
7.3.270.0090.00917.40
7.3.260.0070.01116.60
7.3.250.0100.00716.46
7.3.240.0110.01116.64
7.3.230.0140.00416.39
7.3.210.0090.00916.62
7.3.200.0090.00616.38
7.3.190.0130.00316.43
7.3.180.0130.00316.51
7.3.170.0090.01316.47
7.3.160.0040.01416.45
7.3.10.0070.00716.46
7.3.00.0000.01816.75
7.2.330.0190.00316.39
7.2.320.0080.00916.65
7.2.310.0100.00616.50
7.2.300.0130.00316.66
7.2.290.0100.01316.69
7.2.130.0030.01216.55
7.2.120.0080.01216.70
7.2.110.0100.01016.63
7.2.100.0140.00816.88
7.2.90.0090.00916.97
7.2.80.0040.00716.83
7.2.70.0120.00316.68
7.2.60.0110.00416.82
7.2.50.0030.00917.05
7.2.40.0090.00616.91
7.2.30.0090.00616.80
7.2.20.0070.01116.82
7.2.10.0000.01216.64
7.2.00.0020.01118.01
7.1.250.0110.00315.60
7.1.200.0060.00615.81
7.1.100.0200.00718.02
7.1.70.0000.00717.19
7.1.60.0040.01919.19
7.1.50.0000.02016.70
7.1.00.0030.07322.24
7.0.200.0030.00516.46
7.0.60.0070.07019.91
7.0.50.0030.04017.87
7.0.40.0100.07020.12
7.0.30.0330.07320.00
7.0.20.0270.07020.13
7.0.10.0100.10020.18
7.0.00.0030.06720.18
5.6.280.0000.07720.82
5.6.210.0000.08720.78
5.6.200.0000.04318.13
5.6.190.0130.07320.40
5.6.180.0270.04020.78
5.6.170.0170.05020.33
5.6.160.0130.08320.41
5.6.150.0070.08718.13
5.6.140.0070.06718.15
5.6.130.0070.05718.20
5.6.120.0170.04321.00
5.6.110.0130.07721.00
5.6.100.0100.08021.17
5.6.90.0170.07720.97
5.6.80.0100.06720.41
5.5.350.0070.08020.32
5.5.340.0100.06717.98
5.5.330.0030.04320.25
5.5.320.3200.05320.24
5.5.310.0300.06320.29
5.5.300.0100.08317.94
5.5.290.0030.05317.87
5.5.280.0070.08320.99
5.5.270.0070.04320.86
5.5.260.0070.07720.66
5.5.250.0100.06720.59
5.5.240.0100.07020.11
5.4.450.1100.00019.23
5.4.440.1400.00019.10
5.4.430.1200.00019.13
5.4.420.1000.00019.44
5.4.410.1000.00019.38
5.4.400.0930.00018.93
5.4.390.1000.00019.28
5.4.380.0970.00019.12
5.4.370.1000.00018.77
5.4.360.1130.00019.30
5.4.350.1070.00019.00
5.4.340.1030.00019.11
5.4.320.1030.00019.26
5.4.310.0970.00019.13
5.4.300.1130.00019.14
5.4.290.1100.00019.30
5.4.280.1200.00019.12
5.4.270.1170.00019.30
5.4.260.0600.00019.20
5.4.250.0630.00018.77
5.4.240.0630.00019.27
5.4.230.0900.00019.18
5.4.220.1400.00018.77
5.4.210.1170.00019.31
5.4.200.1230.00019.25
5.4.190.1230.00018.80
5.4.180.1300.00019.20
5.4.170.1000.00019.19
5.4.160.1200.00018.75
5.4.150.1270.00019.26
5.4.140.1170.00016.48
5.4.130.1100.00016.34
5.4.120.1130.00016.37
5.4.110.0970.00016.51
5.4.100.0970.00016.45
5.4.90.1070.00016.39
5.4.80.0900.00016.29
5.4.70.0300.06716.44
5.4.60.0000.04016.36
5.4.50.0100.06716.45
5.4.40.0230.04716.31
5.4.30.0370.05316.36
5.4.20.0000.08016.21

preferences:
56.18 ms | 401 KiB | 5 Q