3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo \ Bar; class Baz { public static function qux() { return __NAMESPACE__; } } var_dump(Baz::qux());

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.00616.80
7.2.00.0060.00619.13
7.1.200.0110.01115.62
7.1.100.0080.00317.83
7.1.70.0000.00817.16
7.1.60.0080.00417.00
7.1.50.0030.00916.52
7.1.00.0070.07022.51
7.0.200.0060.00916.66
7.0.140.0070.07322.12
7.0.110.0070.04020.07
7.0.100.0070.04319.93
7.0.90.0070.08019.92
7.0.80.0030.07719.93
7.0.70.0630.05719.91
7.0.60.0470.06320.05
7.0.50.0730.05719.85
7.0.40.0100.07719.87
7.0.30.0170.07019.73
7.0.20.0200.03719.72
7.0.10.0070.04019.87
7.0.00.0170.06319.82
5.6.280.0030.07321.11
5.6.260.0100.04720.63
5.6.250.0130.07320.63
5.6.240.0000.09020.72
5.6.230.0070.08020.54
5.6.220.0030.05020.71
5.6.210.0130.04320.40
5.6.200.0030.04320.54
5.6.190.0030.05320.62
5.6.180.0070.07720.62
5.6.170.0170.07320.65
5.6.160.0100.06020.71
5.6.150.0070.04320.86
5.6.140.0070.06720.55
5.6.130.0100.04320.58
5.6.120.0000.08320.61
5.6.110.0130.06020.60
5.6.100.0070.06720.64
5.6.90.0070.03320.45
5.6.80.0100.04319.96
5.6.70.0030.08019.84
5.6.60.0130.02719.96
5.6.50.0100.07020.08
5.6.40.0030.05019.95
5.6.30.0100.04720.00
5.6.20.0070.04319.98
5.6.10.0030.08320.04
5.6.00.0070.07320.05
5.5.380.0070.07717.52
5.5.370.0000.06317.57
5.5.360.0030.08717.58
5.5.350.0030.06317.55
5.5.340.0030.05017.91
5.5.330.0030.04017.83
5.5.320.0130.04018.25
5.5.310.0070.08018.25
5.5.300.0070.06018.22
5.5.290.0030.07318.13
5.5.280.0070.03317.95
5.5.270.0070.03718.08
5.5.260.0070.03317.96
5.5.250.0100.04717.73
5.5.240.0070.05317.45
5.5.230.0030.04717.63
5.5.220.0000.07017.50
5.5.210.0000.04017.30
5.5.200.0130.07017.48
5.5.190.0000.04717.26
5.5.180.0100.06317.48
5.5.160.0000.04017.27
5.5.150.0100.06017.26
5.5.140.0000.04017.48
5.5.130.0000.04317.42
5.5.120.0100.03017.45
5.5.110.0030.08317.57
5.5.100.0030.04717.09
5.5.90.0030.06317.16
5.5.80.0070.07017.50
5.5.70.0000.04717.37
5.5.60.0070.03317.15
5.5.50.0030.03317.15
5.5.40.0070.06717.33
5.5.30.0070.04017.38
5.5.20.0070.03017.14
5.5.10.0100.05717.34
5.5.00.0000.04317.30
5.4.450.0000.05719.66
5.4.440.0100.06319.47
5.4.430.0100.06019.50
5.4.420.0030.07719.51
5.4.410.0130.02719.19
5.4.400.0070.07719.32
5.4.390.0100.07718.98
5.4.380.0000.06019.09
5.4.370.0000.04019.03
5.4.360.0100.04019.16
5.4.350.0100.05019.02
5.4.340.0070.07019.02
5.4.320.0000.04019.14
5.4.310.0070.06718.99
5.4.300.0070.06318.94
5.4.290.0070.06019.16
5.4.280.0100.04019.00
5.4.270.0070.06319.13
5.4.260.0000.06719.18
5.4.250.0030.08019.15
5.4.240.0100.03019.23
5.4.230.0070.06319.00
5.4.220.0030.06319.17
5.4.210.0070.03318.98
5.4.200.0200.06019.13
5.4.190.0030.03718.97
5.4.180.0130.07319.30
5.4.170.0030.03718.99
5.4.160.0130.05719.16
5.4.150.0130.04318.96
5.4.140.0030.03316.43
5.4.130.0030.04316.38
5.4.120.0070.04716.59
5.4.110.0000.04016.36
5.4.100.0030.06316.41
5.4.90.0030.05016.43
5.4.80.0030.04016.30
5.4.70.0070.04016.49
5.4.60.0070.04316.55
5.4.50.0000.05716.39
5.4.40.0070.03716.58
5.4.30.0030.06316.23
5.4.20.0030.07316.53
5.4.10.0030.07016.38
5.4.00.0070.06716.00
5.3.290.0070.03314.67
5.3.280.0100.07714.59
5.3.270.0100.04014.74
5.3.260.0070.03314.75
5.3.250.0030.03714.46
5.3.240.0000.06714.68
5.3.230.0030.07714.71
5.3.220.0000.07714.57
5.3.210.0070.04014.41
5.3.200.0070.05014.70
5.3.190.0100.04014.59
5.3.180.0000.07014.64
5.3.170.0030.05714.41
5.3.160.0100.07714.53
5.3.150.0070.03014.51
5.3.140.0030.04314.67
5.3.130.0070.04714.55
5.3.120.0030.04014.53
5.3.110.0030.05314.57
5.3.100.0030.06714.04
5.3.90.0030.03714.25
5.3.80.0030.03714.03
5.3.70.0070.06314.04
5.3.60.0000.03714.06
5.3.50.0100.04713.95
5.3.40.0000.04713.79
5.3.30.0030.04314.13
5.3.20.0030.05713.69
5.3.10.0030.05013.73
5.3.00.0070.07313.63
5.2.170.0070.05312.53
5.2.160.0030.04012.53
5.2.150.0070.03712.53
5.2.140.0070.03312.53
5.2.130.0000.03012.53
5.2.120.0070.02312.53
5.2.110.0000.03312.53
5.2.100.0030.03012.53
5.2.90.0000.04312.53
5.2.80.0000.06012.53
5.2.70.0070.05712.53
5.2.60.0030.04712.53
5.2.50.0070.03712.53
5.2.40.0000.05012.53
5.2.30.0000.03312.53
5.2.20.0030.02712.53
5.2.10.0070.02312.53
5.2.00.0070.04312.53
5.1.60.0070.03712.53
5.1.50.0030.02312.53
5.1.40.0030.03312.53
5.1.30.0000.02712.53
5.1.20.0130.02712.53
5.1.10.0030.02312.53
5.1.00.0070.02312.53
5.0.50.0030.02012.53
5.0.40.0000.01712.53
5.0.30.0000.03012.53
5.0.20.0030.01712.53
5.0.10.0000.02012.53
5.0.00.0000.02712.53
4.4.90.0070.03012.53
4.4.80.0030.03312.53
4.4.70.0000.02312.53
4.4.60.0030.01312.53
4.4.50.0000.03312.53
4.4.40.0070.03312.53
4.4.30.0000.01712.53
4.4.20.0000.01712.53
4.4.10.0000.01712.53
4.4.00.0000.02012.53
4.3.110.0030.01312.53
4.3.100.0000.01712.53
4.3.90.0000.02312.53
4.3.80.0000.02312.53
4.3.70.0000.01712.53
4.3.60.0000.01312.53
4.3.50.0030.01312.53
4.3.40.0000.02312.53
4.3.30.0000.01312.53
4.3.20.0000.01712.53
4.3.10.0000.02012.53
4.3.00.0000.01712.53