3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $chars = range('A', 'Z'); print_r($chars);

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.00.0030.01019.20
7.1.100.0340.00717.70
7.1.70.0070.00017.06
7.1.60.0040.00817.31
7.1.50.0070.01416.88
7.1.00.0100.07022.28
7.0.200.0060.01216.52
7.0.140.0070.07021.96
7.0.100.0330.06719.87
7.0.90.0070.06319.86
7.0.80.0100.08319.82
7.0.70.0100.07719.79
7.0.60.0230.04719.87
7.0.50.0030.08320.34
7.0.40.0070.06020.10
7.0.30.0100.05720.10
7.0.20.0130.07320.18
7.0.10.0130.08020.14
7.0.00.0070.08320.16
5.6.280.0030.07721.07
5.6.250.0030.06020.44
5.6.240.0030.06020.52
5.6.230.0030.06320.51
5.6.220.0000.05320.50
5.6.210.0170.07320.41
5.6.200.0070.08320.94
5.6.190.0070.06021.13
5.6.180.0100.05720.88
5.6.170.0100.06721.01
5.6.160.0170.07021.03
5.6.150.0100.07321.00
5.6.140.0100.09020.95
5.6.130.0070.08721.01
5.6.120.0130.06721.03
5.6.110.0100.07321.01
5.6.100.0130.08021.01
5.6.90.0130.07320.98
5.6.80.0200.06320.45
5.6.70.0000.08320.36
5.6.60.0030.06320.45
5.6.50.0130.07320.29
5.6.40.0100.08020.45
5.6.30.0030.08320.49
5.6.20.0070.04020.43
5.6.10.0100.07320.40
5.6.00.0130.08320.39
5.5.380.0030.08320.34
5.5.370.0030.08720.36
5.5.360.0030.05020.27
5.5.350.0100.06720.31
5.5.340.0130.05720.82
5.5.330.0100.06720.82
5.5.320.0070.08720.79
5.5.310.0070.05720.86
5.5.300.0130.07720.87
5.5.290.0070.06320.77
5.5.280.0030.07020.71
5.5.270.0070.08320.88
5.5.260.0000.08320.86
5.5.250.0070.06720.54
5.5.240.0130.07320.30
5.5.230.0100.06720.21
5.5.220.0130.04720.26
5.5.210.0030.04320.12
5.5.200.0130.05020.22
5.5.190.0030.06320.25
5.5.180.0100.06020.17
5.5.160.0100.08020.27
5.5.150.0070.08320.11
5.5.140.0030.08720.27
5.5.130.0130.07020.12
5.5.120.0100.07020.09
5.5.110.0170.07020.20
5.5.100.0100.07020.14
5.5.90.0030.08720.01
5.5.80.0070.07720.04
5.5.70.0030.07319.92
5.5.60.0070.07720.12
5.5.50.0030.08020.15
5.5.40.0170.06320.07
5.5.30.0130.05020.08
5.5.20.0170.06720.04
5.5.10.0070.06020.05
5.5.00.0130.07720.02
5.4.450.0070.07719.18
5.4.440.0070.08019.35
5.4.430.0100.08019.35
5.4.420.0100.06719.36
5.4.410.0130.06719.18
5.4.400.0130.04019.15
5.4.390.0070.07018.90
5.4.380.0070.08719.18
5.4.370.0170.06319.13
5.4.360.0130.07319.18
5.4.350.0100.07319.16
5.4.340.0100.06718.84
5.4.320.0100.07318.95
5.4.310.0130.07319.23
5.4.300.0070.07719.23
5.4.290.0070.07019.18
5.4.280.0000.08719.05
5.4.270.0030.04719.20
5.4.260.0070.07718.94
5.4.250.0130.07319.17
5.4.240.0070.08019.12
5.4.230.0030.07318.96
5.4.220.0130.06718.87
5.4.210.0130.06019.04
5.4.200.0000.06318.89
5.4.190.0030.07718.89
5.4.180.0100.07319.09
5.4.170.0070.07719.22
5.4.160.0100.04318.82
5.4.150.0070.08019.06
5.4.140.0100.07716.44
5.4.130.0070.05316.32
5.4.120.0130.05016.35
5.4.110.0070.04716.42
5.4.100.0200.06716.37
5.4.90.0070.07016.32
5.4.80.0130.07016.45
5.4.70.0130.06016.45
5.4.60.0000.07716.41
5.4.50.0030.04716.33
5.4.40.0070.07316.39
5.4.30.0030.07716.27
5.4.20.0130.06316.39
5.4.10.0070.07316.39
5.4.00.0100.08015.83
5.3.290.0030.06014.75
5.3.280.0030.06014.51
5.3.270.0000.08314.66
5.3.260.0100.07714.69
5.3.250.0070.07014.61
5.3.240.0000.08014.53
5.3.230.0000.08014.54
5.3.220.0070.07314.51
5.3.210.0070.07014.66
5.3.200.0170.06014.67
5.3.190.0000.07714.54
5.3.180.0170.06314.66
5.3.170.0130.06314.57
5.3.160.0100.07014.69
5.3.150.0000.06314.61
5.3.140.0030.08014.48
5.3.130.0100.09014.52
5.3.120.0100.06714.57
5.3.110.0170.06714.52
5.3.100.0100.06014.05
5.3.90.0130.04714.16
5.3.80.0130.05714.02
5.3.70.0030.06714.03
5.3.60.0070.06713.96
5.3.50.0130.07313.94
5.3.40.0070.07314.07
5.3.30.0070.07314.02
5.3.20.0030.07313.57
5.3.10.0030.07013.78
5.3.00.0070.07313.75
5.2.170.0100.06010.99
5.2.160.0030.06011.19
5.2.150.0030.06311.15
5.2.140.0030.06311.16
5.2.130.0130.05311.00
5.2.120.0030.03711.00
5.2.110.0000.06711.00
5.2.100.0200.04711.21
5.2.90.0070.04011.00
5.2.80.0100.06011.09
5.2.70.0000.06711.18
5.2.60.0070.05010.96
5.2.50.0030.05310.91
5.2.40.0000.06010.89
5.2.30.0070.05010.87
5.2.20.0030.03310.88
5.2.10.0070.06010.95
5.2.00.0030.05710.64
5.1.60.0070.0539.82
5.1.50.0100.0479.97
5.1.40.0030.0439.96
5.1.30.0030.05010.26
5.1.20.0070.04310.42
5.1.10.0030.05710.09
5.1.00.0000.05310.06
5.0.50.0030.0308.55
5.0.40.0030.0438.44
5.0.30.0070.0678.22
5.0.20.0030.0238.22
5.0.10.0030.0438.23
5.0.00.0000.0608.26
4.4.90.0000.0178.22
4.4.80.0000.0378.22
4.4.70.0070.0338.22
4.4.60.0000.0308.22
4.4.50.0030.0338.22
4.4.40.0100.0478.22
4.4.30.0030.0308.22
4.4.20.0030.0438.22
4.4.10.0070.0278.22
4.4.00.0000.0308.22
4.3.110.0100.0378.22
4.3.100.0000.0308.22
4.3.90.0070.0238.22
4.3.80.0030.0538.22
4.3.70.0000.0208.22
4.3.60.0030.0408.22
4.3.50.0000.0408.22
4.3.40.0070.0238.22
4.3.30.0000.0378.22
4.3.20.0000.0178.22
4.3.10.0030.0378.22
4.3.00.0000.0378.22