3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value1 = '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcefghijklmnopqrstuvwxyz'; echo substr(str_shuffle($value1),0,6);

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.0030.01316.63
7.2.00.0000.01619.20
7.1.100.0080.00317.81
7.1.70.0000.01416.88
7.1.60.0070.01719.46
7.1.50.0130.00316.66
7.1.00.0130.06722.48
7.0.200.0000.00816.52
7.0.140.0070.07022.00
7.0.110.0300.06719.97
7.0.100.0430.07320.09
7.0.90.0100.04319.87
7.0.80.0070.06319.96
7.0.70.0570.07019.91
7.0.60.0670.06020.03
7.0.50.0630.08019.99
7.0.40.0070.08019.74
7.0.30.0170.07319.78
7.0.20.0070.08319.72
7.0.10.0170.06319.73
7.0.00.0030.10019.61
5.6.280.0000.07720.91
5.6.260.0170.07020.59
5.6.250.0030.07320.64
5.6.240.0070.08320.54
5.6.230.0100.03720.55
5.6.220.0070.07320.58
5.6.210.0100.08720.71
5.6.200.0100.08320.85
5.6.190.0130.08020.55
5.6.180.0100.04720.65
5.6.170.0200.07320.61
5.6.160.0030.05320.64
5.6.150.0070.06720.51
5.6.140.0070.08720.65
5.6.130.0100.07720.55
5.6.120.0100.05320.58
5.6.110.0170.03720.69
5.6.100.0100.05020.54
5.6.90.0070.03720.61
5.6.80.0030.04020.03
5.6.70.0030.04020.21
5.6.60.0070.03719.93
5.6.50.0000.06019.84
5.6.40.0030.03319.97
5.6.30.0100.07319.94
5.6.20.0070.03719.96
5.6.10.0100.03720.20
5.6.00.0030.04019.93
5.5.380.0130.07317.61
5.5.370.0070.06717.51
5.5.360.0130.07717.54
5.5.350.0100.07717.55
5.5.340.0070.07717.89
5.5.330.0000.08718.16
5.5.320.0070.08018.10
5.5.310.0100.08018.14
5.5.300.0070.05017.77
5.5.290.0070.07017.86
5.5.280.0130.07317.77
5.5.270.0100.05017.88
5.5.260.0130.06317.97
5.5.250.0030.04017.82
5.5.240.0030.04017.25
5.5.230.0130.03017.36
5.5.220.0030.03717.36
5.5.210.0000.04017.51
5.5.200.0000.04717.22
5.5.190.0030.07317.60
5.5.180.0000.04317.45
5.5.160.0030.04017.21
5.5.150.0030.03317.44
5.5.140.0030.04017.23
5.5.130.0030.04017.47
5.5.120.0070.03717.16
5.5.110.0070.03017.44
5.5.100.0030.03717.38
5.5.90.0030.03717.09
5.5.80.0030.03717.25
5.5.70.0070.02717.23
5.5.60.0030.03717.01
5.5.50.0030.03017.37
5.5.40.0130.03017.11
5.5.30.0030.05317.24
5.5.20.0000.04017.33
5.5.10.0000.03317.49
5.5.00.0070.02717.36
5.4.450.0130.06719.35
5.4.440.0030.08019.23
5.4.430.0130.07719.50
5.4.420.0070.08019.27
5.4.410.0030.04019.13
5.4.400.0000.04019.25
5.4.390.0070.03719.18
5.4.380.0030.03719.03
5.4.370.0000.04719.25
5.4.360.0030.08019.01
5.4.350.0070.06018.98
5.4.340.0100.07019.27
5.4.320.0130.03018.95
5.4.310.0070.03718.93
5.4.300.0000.04319.13
5.4.290.0000.04719.16
5.4.280.0000.04319.11
5.4.270.0030.03719.07
5.4.260.0000.04019.00
5.4.250.0070.03319.02
5.4.240.0030.03719.00
5.4.230.0070.03719.02
5.4.220.0000.04018.98
5.4.210.0070.03018.94
5.4.200.0000.04718.98
5.4.190.0030.03318.99
5.4.180.0030.03319.05
5.4.170.0030.05719.02
5.4.160.0030.03718.98
5.4.150.0030.04319.18
5.4.140.0070.07316.47
5.4.130.0070.07316.19
5.4.120.0000.06016.36
5.4.110.0100.03716.53
5.4.100.0170.06316.51
5.4.90.0000.07716.62
5.4.80.0070.06016.22
5.4.70.0030.03716.49
5.4.60.0030.03316.26
5.4.50.0100.04716.16
5.4.40.0070.04016.55
5.4.30.0000.07716.38
5.4.20.0130.02316.45
5.4.10.0030.08016.48
5.4.00.0130.06715.67
5.3.290.0000.03714.61
5.3.280.0070.03014.59
5.3.270.0100.02714.51
5.3.260.0030.03714.39
5.3.250.0100.02314.43
5.3.240.0070.07714.50
5.3.230.0070.06314.45
5.3.220.0030.06714.57
5.3.210.0070.07714.64
5.3.200.0030.03314.42
5.3.190.0030.03014.46
5.3.180.0130.05714.34
5.3.170.0000.03714.49
5.3.160.0130.05014.38
5.3.150.0100.05014.44
5.3.140.0130.07014.50
5.3.130.0000.03714.33
5.3.120.0030.07014.44
5.3.110.0070.07314.61
5.3.100.0000.04014.13
5.3.90.0100.04314.12
5.3.80.0070.07014.11
5.3.70.0000.07013.93
5.3.60.0100.06013.84
5.3.50.0000.03313.86
5.3.40.0070.06013.95
5.3.30.0030.09013.84
5.3.20.0070.05313.59
5.3.10.0030.05313.75
5.3.00.0030.03013.57
5.2.170.0000.03011.76
5.2.160.0030.04711.76
5.2.150.0070.06311.76
5.2.140.0100.05711.76
5.2.130.0030.05711.76
5.2.120.0100.05011.76
5.2.110.0070.06311.76
5.2.100.0070.06311.76
5.2.90.0100.05311.76
5.2.80.0000.06711.76
5.2.70.0070.06011.76
5.2.60.0000.05311.76
5.2.50.0030.06011.76
5.2.40.0030.04011.76
5.2.30.0030.05011.76
5.2.20.0070.05711.76
5.2.10.0030.03711.76
5.2.00.0030.02711.76
5.1.60.0030.02011.76
5.1.50.0030.05311.76
5.1.40.0130.04311.76
5.1.30.0030.04311.76
5.1.20.0030.05311.76
5.1.10.0070.05711.76
5.1.00.0070.05011.76
5.0.50.0030.02311.76
5.0.40.0070.03711.76
5.0.30.0070.06011.76
5.0.20.0030.03311.76
5.0.10.0030.02311.76
5.0.00.0030.06311.76
4.4.90.0030.03311.76
4.4.80.0000.02711.76
4.4.70.0000.03011.76
4.4.60.0000.01711.76
4.4.50.0030.01011.76
4.4.40.0070.01711.76
4.4.30.0030.02711.76
4.4.20.0000.03011.76
4.4.10.0030.03011.76
4.4.00.0000.05311.76
4.3.110.0070.03311.76
4.3.100.0000.03011.76
4.3.90.0170.02011.76
4.3.80.0070.02711.76
4.3.70.0000.02711.76
4.3.60.0030.03311.76
4.3.50.0070.03011.76
4.3.40.0030.05311.76
4.3.30.0030.03311.76
4.3.20.0000.04011.76
4.3.10.0070.02711.76
4.3.00.0100.02711.76