3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name="'"; ?> var a = '<?php echo htmlspecialchars($name); ?>';

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.0060.00619.07
7.1.200.0000.01215.63
7.1.100.0070.01017.96
7.1.70.0100.00017.04
7.1.60.0080.01519.40
7.1.50.0070.01116.88
7.1.00.0000.06722.51
7.0.200.0000.01016.71
7.0.140.0030.07321.95
7.0.70.0800.06721.90
7.0.60.0830.07321.73
7.0.50.0730.04722.16
7.0.40.0800.06720.10
7.0.30.1670.03020.14
7.0.20.1700.03320.04
7.0.10.1830.03320.08
7.0.00.1300.05020.09
5.6.280.0030.07320.81
5.6.210.0770.04020.53
5.6.200.0870.07320.95
5.6.190.0830.07021.07
5.6.180.1030.04321.13
5.6.170.1630.03721.02
5.6.160.0870.05021.11
5.6.150.1030.03321.00
5.6.140.0000.05720.95
5.6.130.0470.04021.04
5.6.120.0170.03721.01
5.6.110.0100.03721.01
5.6.100.0200.03321.01
5.6.90.0500.03720.98
5.6.80.0530.04020.45
5.6.70.0830.06720.39
5.6.60.0830.07320.37
5.6.50.0900.07020.54
5.6.40.0900.07320.29
5.6.30.0870.06720.43
5.6.20.0700.04320.44
5.6.10.0870.07020.42
5.6.00.0300.07320.34
5.5.350.0930.05720.28
5.5.340.0830.05720.91
5.5.330.0830.06020.91
5.5.320.2630.04020.91
5.5.310.1630.03020.79
5.5.300.0100.04720.86
5.5.290.0670.03720.72
5.5.280.0100.03320.87
5.5.270.0170.03720.88
5.5.260.0370.03320.82
5.5.250.0570.04020.67
5.5.240.0770.07720.16
5.5.230.0800.06020.28
5.5.220.0930.05720.28
5.5.210.0900.06720.28
5.5.200.0900.06320.13
5.5.190.0770.06020.23
5.5.180.0800.05720.26
5.5.160.0800.08020.23
5.5.150.0800.06320.20
5.5.140.0870.06320.23
5.5.130.0700.05320.23
5.5.120.0070.04720.24
5.5.110.4170.04320.13
5.5.100.4170.03020.09
5.5.90.4200.04320.15
5.5.80.3930.04720.06
5.5.70.4100.04020.08
5.5.60.3230.04320.09
5.5.50.3200.03019.94
5.5.40.3230.04020.09
5.5.30.4770.05020.07
5.5.20.4600.03720.14
5.5.10.4200.04020.04
5.5.00.4330.04720.02
5.4.450.1200.03319.23
5.4.440.0030.03719.45
5.4.430.0300.03319.42
5.4.420.0330.02319.10
5.4.410.0230.04019.24
5.4.400.0730.04718.98
5.4.390.0870.07018.88
5.4.380.0870.07719.11
5.4.370.0800.06319.03
5.4.360.0870.07318.94
5.4.350.0900.07318.95
5.4.340.0800.07319.14
5.4.320.0830.06318.98
5.4.310.0870.06719.04
5.4.300.0900.06718.78
5.4.290.0900.06719.00
5.4.280.0030.07319.07
5.4.270.1470.07319.08
5.4.260.4300.04019.02
5.4.250.4130.04019.11
5.4.240.3730.03718.98
5.4.230.4100.04018.95
5.4.220.4170.04019.06
5.4.210.3930.03719.11
5.4.200.3070.03718.78
5.4.190.3900.03718.96
5.4.180.4070.03718.77
5.4.170.4330.04019.05
5.4.160.4270.03318.94
5.4.150.4130.03719.03
5.4.140.4200.04016.32
5.4.130.3670.03016.23
5.4.120.4370.03016.31
5.4.110.4270.04316.26
5.4.100.4370.03716.36
5.4.90.3730.04016.21
5.4.80.4130.03316.39
5.4.70.4230.03016.19
5.4.60.4470.03016.35
5.4.50.4200.04016.30
5.4.40.4170.03716.26
5.4.30.4370.03316.18
5.4.20.4170.03716.31
5.4.10.4230.03316.27
5.4.00.3830.03315.68
5.3.290.0800.07314.62
5.3.280.4170.02714.45
5.3.270.4300.04314.61
5.3.260.4700.04014.46
5.3.250.4700.04714.59
5.3.240.4070.02314.57
5.3.230.3930.04014.58
5.3.220.4070.03314.43
5.3.210.4030.03714.38
5.3.200.4270.03714.42
5.3.190.4070.04714.42
5.3.180.4070.04014.42
5.3.170.2730.04014.38
5.3.160.4270.03314.56
5.3.150.4100.03714.58
5.3.140.3570.04014.41
5.3.130.4100.03714.50
5.3.120.4600.03714.48
5.3.110.4030.03714.53
5.3.100.4270.03714.04
5.3.90.3930.03313.87
5.3.80.3970.04313.97
5.3.70.3900.03713.99
5.3.60.3770.04013.77
5.3.50.3970.03713.91
5.3.40.3570.02713.79
5.3.30.4100.04313.91
5.3.20.3530.03313.59
5.3.10.4130.03713.43
5.3.00.4200.03713.51
5.2.170.3170.03010.93
5.2.160.3100.02711.14
5.2.150.3430.02711.14
5.2.140.3200.03011.07
5.2.130.2800.02310.91
5.2.120.3030.02710.93
5.2.110.3730.03311.05
5.2.100.3130.02311.01
5.2.90.3430.03010.92
5.2.80.2870.03310.92
5.2.70.3230.03311.16
5.2.60.3400.03311.04
5.2.50.3570.03310.85
5.2.40.2870.03310.84
5.2.30.3100.03010.77
5.2.20.2770.02311.02
5.2.10.2470.02310.80
5.2.00.2370.02010.65
5.1.60.2300.0239.82
5.1.50.2530.03310.04
5.1.40.3000.0139.96
5.1.30.2970.02710.26
5.1.20.2100.03010.25
5.1.10.2530.02710.06
5.1.00.2600.02310.04
5.0.50.1100.0138.54
5.0.40.1070.0178.41
5.0.30.1000.0278.25
5.0.20.1070.0178.26
5.0.10.1370.0208.24
5.0.00.0770.0278.14
4.4.90.1630.0176.00
4.4.80.1630.0206.00
4.4.70.1830.0076.00
4.4.60.1270.0236.00
4.4.50.1800.0136.00
4.4.40.1630.0236.00
4.4.30.1670.0206.00
4.4.20.1300.0236.00
4.4.10.1070.0106.00
4.4.00.1070.0206.00
4.3.110.1100.0176.00
4.3.100.1330.0176.00
4.3.90.1000.0136.00
4.3.80.1070.0276.00
4.3.70.0900.0136.00
4.3.60.0830.0136.00
4.3.50.0670.0136.00
4.3.40.0570.0276.00
4.3.30.0530.0176.00
4.3.20.0530.0176.00
4.3.10.0530.0136.00
4.3.00.0500.0136.00