3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $foo = 42; var_dump(strlen($foo)); var_dump(ctype_digit($foo)); var_dump(htmlspecialchars($foo));

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.3.0rc40.0090.00998.97
7.3.0rc30.0170.00316.46
7.3.0beta10.0090.00012.55
7.3.0alpha10.0000.01012.51
7.2.60.0100.00316.80
7.1.200.0000.01315.98
7.1.100.0090.00317.88
7.1.70.0000.00817.07
7.1.60.0030.02119.70
7.1.50.0130.01634.81
7.1.00.0030.07322.40
7.0.200.0040.00416.87
7.0.140.0030.07022.18
7.0.60.0070.08021.63
7.0.50.0070.08317.78
7.0.40.0070.06019.90
7.0.30.0270.07720.17
7.0.20.0370.07320.09
7.0.10.0070.04020.30
7.0.00.0000.09020.19
5.6.280.0070.07021.13
5.6.210.0100.08320.60
5.6.200.0070.03718.09
5.6.190.0070.08720.56
5.6.180.0400.04720.42
5.6.170.0430.06720.44
5.6.160.0030.04320.50
5.6.150.0070.05718.11
5.6.140.0070.08318.18
5.6.130.0100.08018.14
5.6.120.0030.08321.00
5.6.110.0100.06321.11
5.6.100.0100.07721.09
5.6.90.0070.06720.99
5.6.80.0130.03020.39
5.5.350.4030.05020.38
5.5.340.0070.07717.93
5.5.330.0100.06320.19
5.5.320.0300.04320.20
5.5.310.0270.07320.32
5.5.300.0070.05717.90
5.5.290.0000.05317.96
5.5.280.0100.07720.76
5.5.270.0070.03720.66
5.5.260.0070.08720.76
5.5.250.0030.04720.77
5.5.240.0000.08020.03
5.4.450.4370.03019.49
5.4.440.4070.03719.50
5.4.430.3670.03319.19
5.4.420.4000.03719.29
5.4.410.4170.03719.40
5.4.400.3630.03719.26
5.4.390.2770.03718.87
5.4.380.3470.04319.20
5.4.370.3830.03319.17
5.4.360.3830.04019.16
5.4.350.3670.03719.13
5.4.340.4270.03018.87
5.4.320.4270.04019.04
5.4.310.3430.03319.17
5.4.300.3900.03718.88
5.4.290.4430.03719.22
5.4.280.4230.03319.17
5.4.270.4230.04719.16
5.4.260.3830.03719.18
5.4.250.4530.03319.19
5.4.240.4430.04018.96
5.4.230.4600.03718.88
5.4.220.4700.03719.08
5.4.210.4470.03319.19
5.4.200.4730.04718.96
5.4.190.4430.04019.03
5.4.180.4670.04018.86
5.4.170.3370.04019.07
5.4.160.0000.06319.18
5.4.150.0070.05319.10
5.4.140.4500.03716.21
5.4.130.4370.03316.43
5.4.120.4300.03316.38
5.4.110.3800.04716.46
5.4.100.3730.03716.22
5.4.90.4030.03716.15
5.4.80.3730.03016.24
5.4.70.3800.03016.24
5.4.60.3630.03316.12
5.4.50.0100.06316.30
5.4.40.0070.04716.51
5.4.30.2270.04316.30
5.4.20.3600.03016.46
5.4.10.3800.04016.10
5.4.00.3770.04315.78
5.3.290.3770.04014.61
5.3.280.4530.04314.53
5.3.270.4470.04014.52
5.3.260.0400.06314.61
5.3.250.1670.06714.56
5.3.240.4630.04014.53
5.3.230.4270.04014.54
5.3.220.3270.04014.50
5.3.210.4430.04014.53
5.3.200.3830.03314.54
5.3.190.4130.04014.51
5.3.180.4230.03314.65
5.3.170.3830.04014.50
5.3.160.3670.02714.48
5.3.150.3270.04014.57
5.3.140.0100.06714.48
5.3.130.4370.03714.33
5.3.120.3830.03714.50
5.3.110.3800.03714.46
5.3.100.3870.03313.96
5.3.90.3470.05013.99
5.3.80.3870.03013.94
5.3.70.3930.03713.94
5.3.60.3570.04013.93
5.3.50.3670.03713.76
5.3.40.3530.04313.96
5.3.30.3630.03713.86
5.3.20.4470.04013.51
5.3.10.4030.04313.63
5.3.00.3730.04313.60
5.2.170.2900.03711.13
5.2.160.3430.03311.23
5.2.150.3000.02711.00
5.2.140.3270.03010.99
5.2.130.3470.02710.98
5.2.120.3170.02710.99
5.2.110.3300.02711.25
5.2.100.2970.03311.11
5.2.90.3100.03011.05
5.2.80.3030.03011.17
5.2.70.2970.03011.08
5.2.60.3900.02710.96
5.2.50.3500.03010.84
5.2.40.3230.02310.87
5.2.30.2500.02710.94
5.2.20.2630.02310.96
5.2.10.1800.02710.87
5.2.00.2230.03010.70
5.1.60.2100.0239.98
5.1.50.1630.0279.97
5.1.40.2100.0239.98
5.1.30.1830.03010.25
5.1.20.2200.02310.32
5.1.10.1800.02710.05
5.1.00.2000.02710.04
5.0.50.0800.0178.62
5.0.40.1330.0178.46
5.0.30.1230.0278.26
5.0.20.0930.0238.16
5.0.10.0700.0308.18
5.0.00.1230.0308.17
4.4.90.1630.0175.97
4.4.80.1500.0135.97
4.4.70.0670.0175.97
4.4.60.0630.0175.97
4.4.50.1170.0175.97
4.4.40.1200.0235.97
4.4.30.0970.0135.97
4.4.20.1100.0175.98
4.4.10.1130.0175.98
4.4.00.1200.0275.98
4.3.110.0730.0135.98
4.3.100.0970.0175.98
4.3.90.1270.0175.98
4.3.80.1200.0275.98
4.3.70.1000.0135.98
4.3.60.0670.0175.98
4.3.50.1200.0175.98
4.3.40.0730.0205.98
4.3.30.0430.0135.98
4.3.20.0330.0205.99
4.3.10.0600.0175.99
4.3.00.0700.0206.00