3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function foo() { var_dump($this); } } Test::foo(); //"Test"::foo();
based on YFiNP

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.10.0030.00816.46
7.3.00.0040.00916.45
7.2.130.0050.01016.65
7.2.120.0080.00416.85
7.2.110.0050.00916.82
7.2.100.0100.00516.81
7.2.90.0110.00316.75
7.2.80.0050.00916.59
7.2.70.0070.00516.81
7.2.60.0090.00516.80
7.2.50.0040.00716.67
7.2.40.0080.00716.83
7.2.30.0080.00616.85
7.2.20.0080.00316.70
7.2.10.0060.00616.78
7.2.00.0030.01117.63
7.1.250.0070.00515.55
7.1.200.0030.01015.66
7.1.100.0000.00918.12
7.1.70.0040.00416.66
7.1.60.0070.01819.42
7.1.50.0070.01717.02
7.1.00.0070.06722.57
7.0.200.0090.00316.34
7.0.60.0000.05319.94
7.0.50.0030.04017.94
7.0.40.0100.07320.23
7.0.30.0170.05720.21
7.0.20.0370.06020.05
7.0.10.0070.08720.33
7.0.00.0070.08720.12
5.6.280.0030.05321.05
5.6.210.0030.07020.55
5.6.200.0070.05718.18
5.6.190.0030.04720.64
5.6.180.0430.05320.65
5.6.170.0200.04020.44
5.6.160.0070.06020.61
5.6.150.0070.08318.18
5.6.140.0070.04718.29
5.6.130.0100.06318.20
5.6.120.0000.05320.90
5.6.110.0070.08321.01
5.6.100.0170.07720.98
5.6.90.0100.05020.93
5.6.80.0070.04320.54
5.5.350.0230.04020.41
5.5.340.0030.05018.05
5.5.330.0130.07320.18
5.5.320.0200.08320.28
5.5.310.0270.06020.37
5.5.300.0100.03317.94
5.5.290.0000.09317.94
5.5.280.0070.08320.77
5.5.270.0170.07720.86
5.5.260.0100.04720.88
5.5.250.0030.04020.61
5.5.240.0030.08020.04
5.4.450.0200.05719.45
5.4.440.0630.06319.60
5.4.430.0900.04319.47
5.4.420.0730.06019.60
5.4.410.0800.04319.36
5.4.400.0770.05319.29
5.4.390.0700.05319.06
5.4.380.0730.05719.06
5.4.370.0670.05719.09
5.4.360.0770.05719.37
5.4.350.0670.05719.13
5.4.340.0730.06318.92
5.4.320.0730.06319.26
5.4.310.0770.05019.25
5.4.300.0830.05019.01
5.4.290.0800.05019.14
5.4.280.0970.06319.11
5.4.270.0830.05319.01
5.4.260.0500.06319.22
5.4.250.0700.05719.37
5.4.240.0670.05719.13
5.4.230.0930.05719.30
5.4.220.0970.05319.05
5.4.210.0800.06019.25
5.4.200.0670.06716.73
5.4.190.0630.05319.08
5.4.180.0870.05319.25
5.4.170.1070.05719.01
5.4.160.0870.05719.00
5.4.150.0830.04318.96
5.4.140.0870.05316.42
5.4.130.0870.05016.32
5.4.120.0600.05016.39
5.4.110.0770.04016.34
5.4.100.0670.06016.44
5.4.90.0700.05016.41
5.4.80.0670.05016.50
5.4.70.0770.04316.38
5.4.60.0670.05016.36
5.4.50.0700.04716.54
5.4.40.0600.05316.47
5.4.30.0630.07016.51
5.4.20.0630.05316.47
5.4.10.0600.05016.35
5.4.00.0600.04716.25
5.3.290.0570.06014.80
5.3.280.0870.08014.56
5.3.270.0570.07314.51
5.3.260.0930.05714.65
5.3.250.0900.04014.59
5.3.240.0830.05014.75
5.3.230.0670.05314.67
5.3.220.0430.06014.48
5.3.210.0530.05014.71
5.3.200.0700.05014.57
5.3.190.1000.04014.58
5.3.180.0700.05014.46
5.3.170.0700.05014.46
5.3.160.0900.04714.41
5.3.150.0770.05014.56
5.3.140.0530.06014.77
5.3.130.0600.07714.69
5.3.120.0600.05314.54
5.3.110.0630.05314.60
5.3.100.0600.06314.05
5.3.90.0870.04313.92
5.3.80.0800.05013.92
5.3.70.0770.05313.93
5.3.60.0800.05013.86
5.3.50.0830.04713.95
5.3.40.0770.05713.87
5.3.30.0800.04713.94
5.3.20.0830.05313.70
5.3.10.1270.05713.57
5.3.00.0800.05313.56
5.2.170.0700.03711.07
5.2.160.0630.04011.30
5.2.150.0730.04011.05
5.2.140.0930.05711.15
5.2.130.0730.04310.96
5.2.120.0600.03311.02
5.2.110.0570.05011.07
5.2.100.0730.04011.10
5.2.90.0700.04311.15
5.2.80.0630.04311.05
5.2.70.0700.04311.24
5.2.60.0700.03711.10
5.2.50.0630.04311.07
5.2.40.0500.04311.00
5.2.30.0570.03710.88
5.2.20.0730.06010.96
5.2.10.0500.04310.86
5.2.00.0470.04310.57
5.1.60.0500.0379.91
5.1.50.0570.03310.22
5.1.40.0570.0279.86
5.1.30.0530.03310.38
5.1.20.0570.03310.35
5.1.10.0530.0339.97
5.1.00.0700.04310.02
5.0.50.0270.0408.45
5.0.40.0270.0278.41
5.0.30.0200.0478.20
5.0.20.0300.0238.26
5.0.10.0370.0238.05
5.0.00.0300.0378.13
4.4.90.0230.0275.85
4.4.80.0300.0335.83
4.4.70.0230.0235.82
4.4.60.0400.0205.92
4.4.50.0400.0175.77
4.4.40.0230.0375.75
4.4.30.0300.0175.87
4.4.20.0230.0235.82
4.4.10.0330.0205.80
4.4.00.0230.0375.85
4.3.110.0230.0235.77
4.3.100.0230.0235.67
4.3.90.0370.0105.73
4.3.80.0230.0335.67
4.3.70.0230.0235.70
4.3.60.0330.0135.69
4.3.50.0200.0275.77
4.3.40.0270.0375.72
4.3.30.0130.0234.52
4.3.20.0070.0274.51
4.3.10.0130.0274.48
4.3.00.0000.0237.41