3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo\Bar; function t() { throw NAN; } define('Foo\\Bar\\NAN', 'Exception'); t();

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.110.0130.01016.62
7.2.60.0060.00916.94
7.2.00.0060.00819.30
7.1.200.0090.00015.73
7.1.100.0030.00717.79
7.1.70.0030.00716.74
7.1.60.0060.00619.70
7.1.50.0160.01316.88
7.1.00.0030.07722.43
7.0.200.0260.00016.50
7.0.140.0100.06722.13
7.0.110.0070.06719.91
7.0.100.0030.05320.03
7.0.90.0070.06320.00
7.0.80.0170.06019.99
7.0.70.0070.07720.02
7.0.60.0130.07720.06
7.0.50.0070.08720.26
7.0.40.0100.07720.28
7.0.30.0030.09020.21
7.0.20.0130.07020.22
7.0.10.0130.07320.05
7.0.00.0170.07320.27
5.6.280.0100.07021.07
5.6.250.0070.08320.64
5.6.240.0070.08320.68
5.6.230.0130.07720.68
5.6.220.0130.07720.55
5.6.210.0030.08320.64
5.6.200.0070.08021.15
5.6.190.0170.06321.01
5.6.180.0100.06321.14
5.6.170.0100.08020.93
5.6.160.0070.08720.95
5.6.150.0170.07721.28
5.6.140.0130.07020.95
5.6.130.0100.08021.17
5.6.120.0100.05320.94
5.6.110.0070.08320.93
5.6.100.0030.08721.07
5.6.90.0070.05320.97
5.6.80.0070.05020.31
5.6.70.0100.07020.33
5.6.60.0170.07020.32
5.6.50.0170.07020.43
5.6.40.0230.06320.36
5.6.30.0100.08020.45
5.6.20.0130.06020.38
5.6.10.0030.08720.44
5.6.00.0100.08020.26
5.5.380.0030.05020.43
5.5.370.0100.07020.46
5.5.360.0170.06720.55
5.5.350.0070.07720.39
5.5.340.0070.08320.72
5.5.330.0070.07720.99
5.5.320.0100.08720.95
5.5.310.0070.08720.86
5.5.300.0100.07720.89
5.5.290.0130.07020.81
5.5.280.0070.08320.97
5.5.270.0200.07721.01
5.5.260.0130.08020.94
5.5.250.0070.08320.76
5.5.240.0030.08720.19
5.5.230.0030.08320.27
5.5.220.0070.05720.15
5.5.210.0100.07720.18
5.5.200.0030.08020.22
5.5.190.0070.08720.24
5.5.180.0200.05320.16
5.5.160.0100.07720.38
5.5.150.0070.08020.21
5.5.140.0100.08020.38
5.5.130.0070.08020.29
5.5.120.0030.08720.36
5.5.110.0070.07720.18
5.5.100.0070.08020.15
5.5.90.0170.03720.18
5.5.80.0070.08320.00
5.5.70.0130.07720.24
5.5.60.0030.08320.24
5.5.50.0070.04720.23
5.5.40.0100.07720.04
5.5.30.0170.06720.20
5.5.20.0100.08020.19
5.5.10.0070.08020.19
5.5.00.0030.08720.23
5.4.450.0000.05719.57
5.4.440.0100.07719.32
5.4.430.0070.05319.34
5.4.420.0070.08019.31
5.4.410.0100.07319.38
5.4.400.0000.05319.14
5.4.390.0100.05019.17
5.4.380.0030.07719.02
5.4.370.0070.04719.14
5.4.360.0070.08319.32
5.4.350.0100.07319.24
5.4.340.0070.07719.22
5.4.320.0100.07719.32
5.4.310.0100.07019.14
5.4.300.0070.07718.98
5.4.290.0000.05019.24
5.4.280.0030.07719.14
5.4.270.0030.08019.19
5.4.260.0070.08019.32
5.4.250.0130.06719.02
5.4.240.0030.07719.18
5.4.230.0170.06719.13
5.4.220.0070.05319.18
5.4.210.0070.07019.17
5.4.200.0100.07719.33
5.4.190.0030.07019.00
5.4.180.0100.06718.94
5.4.170.0070.06019.23
5.4.160.0100.04019.16
5.4.150.0100.07319.16
5.4.140.0030.07716.62
5.4.130.0130.06016.30
5.4.120.0070.04016.58
5.4.110.0100.06316.49
5.4.100.0070.04716.45
5.4.90.0030.03716.56
5.4.80.0100.03016.47
5.4.70.0100.03016.45
5.4.60.0100.05316.57
5.4.50.0070.03316.55
5.4.40.0000.05016.49
5.4.30.0070.05016.47
5.4.20.0070.03316.33
5.4.10.0000.04016.44
5.4.00.0030.03315.96
5.3.290.0100.07314.74
5.3.280.0070.07314.61
5.3.270.0070.07314.46
5.3.260.0100.07714.61
5.3.250.0070.06714.58
5.3.240.0030.05314.46
5.3.230.0070.07314.73
5.3.220.0070.07314.65
5.3.210.0100.07714.70
5.3.200.0030.07314.66
5.3.190.0000.04714.54
5.3.180.0070.04014.64
5.3.170.0100.03714.57
5.3.160.0030.03714.57
5.3.150.0030.04714.57
5.3.140.0000.04014.70
5.3.130.0030.03714.54
5.3.120.0000.04014.54
5.3.110.0030.03714.55
5.3.100.0030.07714.07
5.3.90.0030.03714.13
5.3.80.0000.05014.00
5.3.70.0070.04314.03
5.3.60.0030.03314.12
5.3.50.0000.07013.96
5.3.40.0070.04013.80
5.3.30.0000.04013.89
5.3.20.0000.06713.77
5.3.10.0030.03013.79
5.3.00.0100.06713.66