3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Test; class Test { public function __construct(string $s, int $i) {} } $a = new Test();
based on Wa1EY

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.0120.00616.31
7.3.00.0040.01116.02
7.2.130.0060.00916.35
7.2.120.0110.00816.01
7.2.110.0090.00616.32
7.2.100.0110.00416.11
7.2.90.0100.01015.98
7.2.80.0080.01516.07
7.2.70.0080.01616.25
7.2.60.0100.00916.52
7.2.50.0170.00916.43
7.2.40.0190.00816.54
7.2.30.0160.00316.16
7.2.20.0120.00615.77
7.2.10.0140.01516.58
7.2.00.0120.00717.78
7.1.250.0130.00315.15
7.1.200.0000.01115.54
7.1.100.0060.00617.99
7.1.70.0000.00717.11
7.1.60.0160.00919.48
7.1.50.0060.01016.63
7.1.00.0000.08022.36
7.0.200.0410.00314.66
7.0.60.0130.06019.95
7.0.50.0130.05317.88
7.0.40.0030.05720.02
7.0.30.0470.06720.16
7.0.20.0330.07720.16
7.0.10.0070.08320.15
7.0.00.0030.04320.19
5.6.280.0130.06321.12
5.6.210.0030.04720.75
5.6.200.0100.08018.14
5.6.190.0030.07320.67
5.6.180.0370.07020.63
5.6.170.0200.08320.55
5.6.160.0030.08320.55
5.6.150.0030.04018.18
5.6.140.0070.06718.28
5.6.130.0000.08718.18
5.6.120.0330.03721.05
5.6.110.0030.08721.01
5.6.100.0100.08321.11
5.6.90.0030.07021.10
5.6.80.0170.06320.51
5.5.350.3800.03720.53
5.5.340.0030.07717.92
5.5.330.0170.06020.35
5.5.320.0070.04020.34
5.5.310.0330.06720.36
5.5.300.0100.03318.07
5.5.290.0000.04317.98
5.5.280.0070.08720.87
5.5.270.0100.09020.89
5.5.260.0100.06320.85
5.5.250.0070.08020.62
5.5.240.0630.04020.23
5.4.450.0570.05319.47
5.4.440.0700.05719.51
5.4.430.0700.05719.57
5.4.420.0800.04719.41
5.4.410.0870.05719.46
5.4.400.0800.05319.15
5.4.390.0800.05319.13
5.4.380.0830.05019.10
5.4.370.0870.04719.14
5.4.360.0930.04018.81
5.4.350.0800.05019.29
5.4.340.0730.06019.14
5.4.320.0830.05319.22
5.4.310.0870.04718.84
5.4.300.0830.05019.03
5.4.290.0830.05019.14
5.4.280.0770.05719.25
5.4.270.0800.05019.27
5.4.260.0800.05018.96
5.4.250.0670.06319.27
5.4.240.0800.05019.20
5.4.230.0870.04319.11
5.4.220.0730.06319.13
5.4.210.0800.05019.02
5.4.200.0800.05018.85
5.4.190.0830.04718.83
5.4.180.0770.05319.12
5.4.170.0730.05319.13
5.4.160.0070.05019.01
5.4.150.0070.06019.21
5.4.140.0770.05316.39
5.4.130.0770.05016.53
5.4.120.0730.05316.47
5.4.110.0670.06316.61
5.4.100.0730.05316.51
5.4.90.0830.04316.51
5.3.290.0800.05314.73
5.3.280.0730.05714.74
5.3.270.0770.05314.56
5.3.260.0400.04714.81
5.3.250.0370.03314.61
5.3.240.0800.05314.59
5.3.230.0870.04314.65
5.3.220.0700.06014.55
5.3.210.0830.05014.56
5.3.200.0770.05014.60
5.3.190.0770.05014.55