3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bar = 'I am bar.'; $bar=utf_encode($bar); echo $bar{10}=7; echo $bar;

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.0060.00916.94
7.2.00.0090.00319.31
7.1.200.0000.00815.36
7.1.100.0040.00717.77
7.1.70.0030.00717.14
7.1.60.0090.01519.17
7.1.50.0070.00416.86
7.1.00.0030.07722.45
7.0.200.0030.00716.75
7.0.140.0030.07022.09
7.0.100.0030.05021.86
7.0.90.0100.07721.79
7.0.80.0000.07021.76
7.0.70.0070.07321.70
7.0.60.0330.05320.07
7.0.50.0200.05322.01
7.0.40.0070.07720.07
7.0.30.0030.05720.13
7.0.20.0030.08320.18
7.0.10.0030.05020.04
7.0.00.0170.04019.95
5.6.280.0000.07721.11
5.6.250.0070.04020.59
5.6.240.0170.06720.60
5.6.230.0070.04720.56
5.6.220.0100.08320.73
5.6.210.0000.04720.61
5.6.200.0000.09321.03
5.6.190.0070.08321.04
5.6.180.0070.08021.04
5.6.170.0130.06320.96
5.6.160.0000.09021.07
5.6.150.0000.04020.94
5.6.140.0070.07721.09
5.6.130.0130.07320.97
5.6.120.0000.05021.01
5.6.110.0000.09021.03
5.6.100.0100.08021.04
5.6.90.0100.07321.00
5.6.80.0100.07020.37
5.6.70.0130.06720.41
5.6.60.0100.07020.44
5.6.50.0030.08720.49
5.6.40.0030.06320.32
5.6.30.0130.06320.41
5.6.20.0100.05720.31
5.6.10.0130.06320.35
5.6.00.0100.07020.38
5.5.380.0130.05020.41
5.5.370.0070.04720.39
5.5.360.0070.08020.35
5.5.350.0100.07720.45
5.5.340.0030.08720.79
5.5.330.0070.05020.86
5.5.320.0030.08320.91
5.5.310.0100.09320.60
5.5.300.0130.07320.86
5.5.290.0100.04320.75
5.5.280.0030.06720.80
5.5.270.0070.07720.86
5.5.260.0000.05020.89
5.5.250.0100.06320.63
5.5.240.0070.07320.15
5.5.230.0100.07720.25
5.5.220.0100.03320.10
5.5.210.0070.07020.18
5.5.200.0030.03720.13
5.5.190.0130.06720.15
5.5.180.0070.08320.10
5.5.160.0100.04020.23
5.5.150.0100.07020.17
5.5.140.0000.06320.25
5.5.130.0100.06320.24
5.5.120.0030.07720.07
5.5.110.0030.03720.16
5.5.100.0070.04720.15
5.5.90.0070.07719.93
5.5.80.0100.05019.95
5.5.70.0030.04720.16
5.5.60.0030.04720.05
5.5.50.0170.06020.15
5.5.40.0000.07020.03
5.5.30.0200.04020.03
5.5.20.0030.05019.91
5.5.10.0070.04020.04
5.5.00.0070.04320.04
5.4.450.0070.05019.45
5.4.440.0000.06019.36
5.4.430.0070.07319.43
5.4.420.0030.04019.55
5.4.410.0000.04719.09
5.4.400.0100.08019.15
5.4.390.0070.06319.14
5.4.380.0070.04019.10
5.4.370.0130.03318.94
5.4.360.0030.04319.11
5.4.350.0030.05319.10
5.4.340.0070.04019.14
5.4.320.0100.07019.07
5.4.310.0100.07019.07
5.4.300.0100.07718.89
5.4.290.0030.06318.94
5.4.280.0030.08319.02
5.4.270.0030.06719.09
5.4.260.0030.05019.03
5.4.250.0100.05018.77
5.4.240.0170.06719.04
5.4.230.0070.05319.04
5.4.220.0030.08019.02
5.4.210.0070.03719.07
5.4.200.0130.07318.97
5.4.190.0030.05019.04
5.4.180.0100.07319.05
5.4.170.0070.07719.06
5.4.160.0000.05019.20
5.4.150.0030.06319.03
5.4.140.0030.06716.37
5.4.130.0130.04316.34
5.4.120.0100.06716.27
5.4.110.0030.04316.51
5.4.100.0100.06316.26
5.4.90.0000.06716.21
5.4.80.0100.04016.38
5.4.70.0070.07016.22
5.4.60.0030.04716.19
5.4.50.0070.07016.40
5.4.40.0030.07016.38
5.4.30.0100.06716.35
5.4.20.0030.07016.26
5.4.10.0100.04716.30
5.4.00.0130.06015.58
5.3.290.0100.07014.52
5.3.280.0170.07314.50
5.3.270.0100.07714.59
5.3.260.0170.06714.54
5.3.250.0130.07014.45
5.3.240.0100.03314.51
5.3.230.0000.08014.55
5.3.220.0100.05714.38
5.3.210.0070.08014.55
5.3.200.0070.07714.54
5.3.190.0100.07314.55
5.3.180.0100.04714.39
5.3.170.0030.08014.55
5.3.160.0030.04314.55
5.3.150.0000.08314.52
5.3.140.0100.06714.53
5.3.130.0070.07714.52
5.3.120.0070.07314.48
5.3.110.0130.07014.40
5.3.100.0030.08014.01
5.3.90.0100.07013.96
5.3.80.0070.06714.00
5.3.70.0030.07313.97
5.3.60.0070.06714.01
5.3.50.0030.06313.91
5.3.40.0030.04013.93
5.3.30.0070.03313.86
5.3.20.0030.05313.67
5.3.10.0070.04313.51
5.3.00.0000.07313.58
5.2.170.0070.04310.96
5.2.160.0070.05711.02
5.2.150.0070.02711.12
5.2.140.0000.03311.12
5.2.130.0030.06310.93
5.2.120.0030.06010.94
5.2.110.0100.05311.16
5.2.100.0070.06010.94
5.2.90.0100.04311.10
5.2.80.0000.06710.93
5.2.70.0030.02711.13
5.2.60.0070.05311.03
5.2.50.0070.06010.99
5.2.40.0070.04710.98
5.2.30.0030.03710.76
5.2.20.0030.06010.79
5.2.10.0070.02310.89
5.2.00.0030.05310.78
5.1.60.0030.03010.01
5.1.50.0070.0479.84
5.1.40.0030.0509.85
5.1.30.0100.04710.39
5.1.20.0100.01710.39
5.1.10.0030.05310.08
5.1.00.0030.05310.05
5.0.50.0000.0209.84
5.0.40.0030.0179.84
5.0.30.0000.0639.84
5.0.20.0000.0339.84
5.0.10.0000.0379.84
5.0.00.0030.0579.84
4.4.90.0000.0139.84
4.4.80.0000.0179.84
4.4.70.0030.0339.84
4.4.60.0000.0379.84
4.4.50.0000.0309.84
4.4.40.0000.0579.84
4.4.30.0070.0279.84
4.4.20.0000.0379.84
4.4.10.0000.0379.84
4.4.00.0000.0279.84
4.3.110.0000.0379.84
4.3.100.0000.0309.84
4.3.90.0000.0179.84
4.3.80.0070.0509.84
4.3.70.0070.0309.84
4.3.60.0030.0339.84
4.3.50.0030.0179.84
4.3.40.0030.0309.84
4.3.30.0070.0309.84
4.3.20.0000.0379.84
4.3.10.0030.0239.84
4.3.00.0030.0139.84