3v4l.org

run code in 200+ php & hhvm versions
<?php $arr = array_count_values(array('JPG', 'JPG', 'TXT', 'TXT')); arsort($arr); var_dump($arr);
based on B0GIo

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0360.00316.79
7.2.00.0070.00719.29
7.1.200.0000.01215.73
7.1.100.0040.00718.09
7.1.70.0110.00717.06
7.1.60.0140.01019.57
7.1.50.0100.01434.89
7.1.00.0030.07722.44
7.0.200.0000.01016.63
7.0.140.0030.06322.18
7.0.60.0030.07019.93
7.0.50.0070.05017.86
7.0.40.0100.04020.21
7.0.30.0230.04320.01
7.0.20.0330.05320.00
7.0.10.0100.08320.09
7.0.00.0100.07719.99
5.6.280.0030.07321.02
5.6.210.0000.04320.46
5.6.200.0100.08018.12
5.6.190.0170.06720.33
5.6.180.0270.08020.27
5.6.170.0400.06020.62
5.6.160.0000.04720.54
5.6.150.0100.08318.11
5.6.140.0100.04018.21
5.6.130.0100.03718.22
5.6.120.0100.08020.98
5.6.110.0030.04320.96
5.6.100.0130.08021.00
5.6.90.0030.04320.96
5.6.80.0170.07320.52
5.6.70.4200.03320.36
5.5.350.0270.07720.39
5.5.340.0100.05018.02
5.5.330.0100.07720.43
5.5.320.0330.07020.29
5.5.310.0300.07720.32
5.5.300.0000.06317.89
5.5.290.0100.07717.98
5.5.280.0270.03020.94
5.5.270.0100.06720.72
5.5.260.0030.04020.86
5.5.250.0100.08020.57
5.5.240.0330.06720.18
5.4.450.0700.05719.61
5.4.440.0130.05319.56
5.4.430.0100.05719.45
5.4.420.0030.06319.40
5.4.410.0100.05019.38
5.4.400.0100.05319.13
5.4.390.0200.06019.07
5.4.380.0100.05718.59
5.4.370.0170.05018.63
5.4.360.0030.06318.65
5.4.350.0130.05318.69
5.4.340.0130.05018.44
5.4.320.0130.05718.43
5.4.310.0170.05018.74
5.4.300.0130.05018.46
5.4.290.0130.06018.44
5.4.280.0230.04318.64
5.4.270.0170.05018.62
5.4.260.0230.04318.54
5.4.250.0130.06018.62
5.4.240.0300.04018.63
5.4.230.0030.06018.68
5.4.220.0070.06718.68
5.4.210.0200.04718.54
5.4.200.0170.04716.37
5.4.190.0070.07018.68
5.4.180.0130.05018.47
5.4.170.0100.05718.46
5.4.160.0200.04318.46
5.4.150.0070.06018.52
5.4.140.0200.04716.35
5.4.130.0170.04316.33
5.4.120.0130.05016.07
5.4.110.0100.05016.15
5.4.100.0100.05716.26
5.4.90.0130.05016.27
5.4.80.0230.04316.27
5.4.70.0130.05016.11
5.4.60.0170.04316.19
5.4.50.0130.04716.10
5.4.40.0100.05316.07
5.4.30.0170.04316.03
5.4.20.0170.04716.22
5.4.10.0130.05016.18
5.4.00.0000.06715.53
5.3.290.0130.05314.60
5.3.280.0100.05714.61
5.3.270.0100.06014.61
5.3.260.0130.05314.54
5.3.250.0100.05714.54
5.3.240.0130.05014.57
5.3.230.0230.04014.48
5.3.220.0130.05014.63
5.3.210.0170.05014.57
5.3.200.0300.06014.52
5.3.190.0230.04014.49
5.3.180.0100.05314.59
5.3.170.0130.05014.52
5.3.160.0130.05014.47
5.3.150.0130.05014.47
5.3.140.0130.04714.50
5.3.130.0170.05014.62
5.3.120.0100.05714.58
5.3.110.0130.05314.49
5.3.100.0200.04313.89
5.3.90.0100.05314.11
5.3.80.0030.05713.99
5.3.70.0170.04713.93
5.3.60.0200.04314.02
5.3.50.0100.05313.92
5.3.40.0100.05313.91
5.3.30.0130.05013.82
5.3.20.0100.05013.76
5.3.10.0100.05013.56
5.3.00.0200.05013.61
5.2.170.0030.04711.18
5.2.160.0030.04711.09
5.2.150.0200.03711.09
5.2.140.0070.04311.27
5.2.130.0030.04711.06
5.2.120.0070.04011.12
5.2.110.0100.04711.16
5.2.100.0070.04311.04
5.2.90.0030.05311.14
5.2.80.0000.05011.05
5.2.70.0100.04011.16
5.2.60.0170.03311.09
5.2.50.0070.04311.15
5.2.40.0170.03010.96
5.2.30.0030.04310.94
5.2.20.0070.04010.91
5.2.10.0030.04310.85
5.2.00.0000.05010.70
5.1.60.0100.03010.07
5.1.50.0070.0379.97
5.1.40.0100.03710.03
5.1.30.0130.03010.29
5.1.20.0070.04010.32
5.1.10.0130.03310.15
5.1.00.0070.05010.13
5.0.50.0000.0338.61
5.0.40.0070.0378.37
5.0.30.0130.0378.22
5.0.20.0070.0278.17
5.0.10.0130.0208.20
5.0.00.0030.0438.17
4.4.90.0030.0235.90
4.4.80.0100.0175.93
4.4.70.0070.0275.85
4.4.60.0030.0235.87
4.4.50.0030.0235.89
4.4.40.0070.0335.90
4.4.30.0100.0175.86
4.4.20.0130.0136.00
4.4.10.0000.0275.97
4.4.00.0130.0375.89
4.3.110.0030.0235.85
4.3.100.0030.0235.83
4.3.90.0070.0175.92
4.3.80.0000.0375.84
4.3.70.0030.0235.91
4.3.60.0030.0205.91
4.3.50.0030.0235.86
4.3.40.0070.0305.76
4.3.30.0030.0234.63
4.3.20.0000.0234.55
4.3.10.0000.0234.47
4.3.00.0100.0237.21