3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = '<?xml version="1.0" ?>'; try { new SimpleXMLElement($a); echo "Created"; } catch (Exception $e) { echo 'Ok'; }

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.0120.00698.97
7.3.0rc30.0150.00916.73
7.3.0beta10.0030.00612.58
7.3.0alpha10.0060.00312.64
7.2.60.0060.00616.93
7.2.00.0060.00619.36
7.1.200.0130.00015.76
7.1.100.0030.01018.02
7.1.70.0060.00617.03
7.1.60.0110.01419.24
7.1.50.0200.01634.62
7.1.00.0070.07322.43
7.0.200.0060.00916.89
7.0.140.0030.07722.17
7.0.90.0030.04319.99
7.0.80.0000.04720.13
7.0.70.0570.06319.93
7.0.60.0470.07719.95
7.0.50.0000.05320.43
7.0.40.0100.07720.12
7.0.30.0130.07320.19
7.0.20.0070.04720.04
7.0.10.0070.06020.20
7.0.00.0170.06020.23
5.6.280.0000.07721.07
5.6.230.0030.08020.84
5.6.220.0100.07720.65
5.6.210.0130.07020.66
5.6.200.0070.08721.12
5.6.190.0000.06321.14
5.6.180.0030.07321.11
5.6.170.0100.08321.05
5.6.160.0070.08320.98
5.6.150.0130.07321.25
5.6.140.0130.07021.14
5.6.130.0070.05021.23
5.6.120.0130.07721.07
5.6.110.0130.04321.13
5.6.100.0000.05721.09
5.6.90.0170.06720.97
5.6.80.0070.07720.43
5.6.70.0070.08020.51
5.6.60.0230.05720.64
5.6.50.0100.07720.63
5.6.40.0070.07320.50
5.6.30.0130.07720.41
5.6.20.0100.07320.63
5.6.10.0000.08320.41
5.6.00.0100.04320.39
5.5.370.0130.07020.43
5.5.360.0170.07320.59
5.5.350.0170.07020.57
5.5.340.0100.07720.80
5.5.330.0030.09021.04
5.5.320.0130.07020.95
5.5.310.0070.06720.86
5.5.300.0070.08320.84
5.5.290.0030.08320.99
5.5.280.0070.08020.77
5.5.270.0100.07020.91
5.5.260.0130.04020.90
5.5.250.0000.08320.84
5.5.240.0030.05720.31
5.5.230.0100.08020.22
5.5.220.0070.08320.27
5.5.210.0030.08020.27
5.5.200.0070.08320.24
5.5.190.0030.09020.09
5.5.180.0100.07320.32
5.5.160.0000.08020.35
5.5.150.0030.07720.38
5.5.140.0170.04020.19
5.5.130.0030.06320.26
5.5.120.0030.08320.34
5.5.110.0000.08720.26
5.5.100.0100.04020.21
5.5.90.0030.07020.20
5.5.80.0070.08020.26
5.5.70.0030.08020.04
5.5.60.0070.06720.22
5.5.50.0070.07320.00
5.5.40.0100.06320.18
5.5.30.0100.06320.08
5.5.20.0100.07320.06
5.5.10.0100.04720.08
5.5.00.0070.07320.08
5.4.450.0070.04719.52
5.4.440.0070.08719.42
5.4.430.0100.04319.44
5.4.420.0070.07319.48
5.4.410.0030.05719.41
5.4.400.0000.06019.02
5.4.390.0100.07719.11
5.4.380.0070.07719.36
5.4.370.0070.05019.36
5.4.360.0200.06019.16
5.4.350.0100.04019.23
5.4.340.0100.07719.10
5.4.320.0230.03719.20
5.4.310.0030.08019.16
5.4.300.0070.06719.16
5.4.290.0030.05019.25
5.4.280.0070.08019.25
5.4.270.0130.07019.21
5.4.260.0030.06319.10
5.4.250.0000.08719.18
5.4.240.0000.08319.20
5.4.230.0200.06019.09
5.4.220.0000.07019.20
5.4.210.0030.04719.27
5.4.200.0070.05719.27
5.4.190.0070.07019.18
5.4.180.0030.04319.16
5.4.170.0030.08019.37
5.4.160.0130.07019.15
5.4.150.0170.06718.99
5.4.140.0130.06316.45
5.4.130.0100.05716.55
5.4.120.0100.06316.46
5.4.110.0170.04016.57
5.4.100.0100.07316.63
5.4.90.0030.07016.63
5.4.80.0030.04716.46
5.4.70.0030.04716.51
5.4.60.0070.07016.46
5.4.50.0100.04016.47
5.4.40.0070.07016.66
5.4.30.0100.04016.50
5.4.20.0130.06716.53
5.4.10.0100.04716.48
5.4.00.0170.04715.98
5.3.290.0000.07714.79
5.3.280.0070.07314.78
5.3.270.0000.08314.71
5.3.260.0070.07314.70
5.3.250.0100.07014.76
5.3.240.0030.07714.59
5.3.230.0130.05714.70
5.3.220.0230.06314.72
5.3.210.0070.06714.70
5.3.200.0070.07014.71
5.3.190.0070.06714.68
5.3.180.0000.05714.75
5.3.170.0100.07014.74
5.3.160.0030.07314.51
5.3.150.0030.07314.74
5.3.140.0100.05314.71
5.3.130.0030.07314.69
5.3.120.0030.07714.64
5.3.110.0030.06714.72
5.3.100.0030.03714.22
5.3.90.0030.04714.14
5.3.80.0130.06014.11
5.3.70.0100.07714.13
5.3.60.0030.04314.13
5.3.50.0000.07314.00
5.3.40.0130.04314.04
5.3.30.0100.07314.04
5.3.20.0100.05313.89
5.3.10.0130.05713.63
5.3.00.0130.03313.73
5.2.170.0030.06013.63
5.2.160.0030.06013.63
5.2.150.0000.03713.63
5.2.140.0000.04713.63
5.2.130.0100.04713.63
5.2.120.0100.04713.63
5.2.110.0070.04313.63
5.2.100.0070.03013.63
5.2.90.0070.04313.63
5.2.80.0100.06013.63
5.2.70.0030.04013.63
5.2.60.0030.05013.63
5.2.50.0100.05313.63
5.2.40.0130.03713.63
5.2.30.0070.05713.63
5.2.20.0000.06013.63
5.2.10.0100.04713.63
5.2.00.0130.02313.63
5.1.60.0100.04313.63
5.1.50.0030.05713.63
5.1.40.0070.05713.63
5.1.30.0070.04013.63
5.1.20.0070.05313.63
5.1.10.0030.03713.63
5.1.00.0000.05713.63
5.0.50.0030.02313.63
5.0.40.0030.04313.63
5.0.30.0070.04713.63
5.0.20.0070.03013.63
5.0.10.0030.03713.63
5.0.00.0030.06313.63
4.4.90.0070.03313.63
4.4.80.0070.02013.63
4.4.70.0030.02713.63
4.4.60.0000.03313.63
4.4.50.0000.02713.63
4.4.40.0030.05313.63
4.4.30.0030.03013.63
4.4.20.0030.03313.63
4.4.10.0030.02313.63
4.4.00.0000.06013.63
4.3.110.0030.03713.63
4.3.100.0000.03313.63
4.3.90.0030.03313.63
4.3.80.0030.05013.63
4.3.70.0070.03313.63
4.3.60.0030.02313.63
4.3.50.0030.03313.63
4.3.40.0000.03313.63
4.3.30.0030.03313.63
4.3.20.0000.03713.63
4.3.10.0000.03013.63
4.3.00.0000.03013.63