3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class chen{ function chen1($a,$b) { $c=$a*$b; echo $c; } } $xin=new chen(); $xin->chen1(2,5);

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.00716.96
7.2.00.0060.00619.13
7.1.200.0070.00415.63
7.1.100.0040.00817.84
7.1.70.0000.01116.86
7.1.60.0120.00919.29
7.1.50.0090.01216.92
7.1.00.0070.07322.30
7.0.200.0070.00316.68
7.0.140.0070.07022.01
7.0.60.0130.07720.00
7.0.50.0100.05317.88
7.0.40.0030.04320.27
7.0.30.0270.05720.21
7.0.20.0170.04720.15
7.0.10.0300.08020.09
7.0.00.0030.07720.22
5.6.280.0030.07321.13
5.6.210.0070.06020.73
5.6.200.0070.05018.23
5.6.190.0130.03320.64
5.6.180.0100.08720.64
5.6.170.0070.05020.46
5.6.160.0070.08320.46
5.6.150.0000.05018.23
5.6.140.0030.08318.27
5.6.130.0000.06018.28
5.6.120.0030.04321.03
5.6.110.0130.06320.96
5.6.100.0030.04021.00
5.6.90.0200.07320.99
5.6.80.0100.07720.39
5.6.70.2900.04020.36
5.5.350.0070.07320.38
5.5.340.0200.03717.98
5.5.330.0030.04320.28
5.5.320.0030.05020.27
5.5.310.0200.06720.41
5.5.300.0100.05717.94
5.5.290.0100.08018.05
5.5.280.0100.08720.74
5.5.270.0030.04720.87
5.5.260.0070.05720.73
5.5.250.0070.08020.79
5.5.240.0030.08720.16
5.4.450.0330.07319.42
5.4.440.0230.04019.41
5.4.430.0300.04719.55
5.4.420.0270.07319.53
5.4.410.0300.06719.04
5.4.400.0230.05319.10
5.4.390.0270.07319.25
5.4.380.0270.04019.32
5.4.370.0200.04719.07
5.4.360.0370.06318.99
5.4.350.0270.05718.87
5.4.340.0300.04018.99
5.4.320.0300.07019.22
5.4.310.0330.06319.14
5.4.300.0330.06319.30
5.4.290.0230.04719.09
5.4.280.0270.07719.00
5.4.270.0370.06318.87
5.4.260.0270.05719.19
5.4.250.0300.03719.13
5.4.240.0330.07018.88
5.4.230.0430.05018.99
5.4.220.0230.04018.97
5.4.210.0230.03719.05
5.4.200.0300.03019.21
5.4.190.0270.03719.07
5.4.180.0230.07319.20
5.4.170.0300.05019.29
5.4.160.0200.04019.08
5.4.150.0270.05318.96
5.4.140.0330.02716.37
5.4.130.0300.02716.31
5.4.120.0270.03016.50
5.4.110.0330.06016.55
5.4.100.0230.03716.54
5.4.90.0200.05316.56
5.4.80.0270.06316.57
5.4.70.0270.04316.54
5.4.60.0230.05716.43
5.4.50.0200.03716.51
5.4.40.0330.03716.38
5.4.30.0370.03016.43
5.4.20.0330.06716.53
5.4.10.0330.05316.27
5.4.00.0370.06015.80
5.3.290.0270.04715.76
5.3.280.0330.06315.76
5.3.270.0230.03715.76
5.3.260.0200.04315.76
5.3.250.0270.06715.76
5.3.240.0330.03015.76
5.3.230.0300.05715.76
5.3.220.0230.05015.76
5.3.210.0430.06015.76
5.3.200.0270.04715.76
5.3.190.0330.05015.76
5.3.180.0230.07715.76
5.3.170.0300.04015.76
5.3.160.0270.04315.76
5.3.150.0300.06015.76
5.3.140.0300.04315.76
5.3.130.0300.05315.76
5.3.120.0330.06315.76
5.3.110.0230.07715.76
5.3.100.0370.06315.76
5.3.90.0430.06315.76
5.3.80.0330.04715.76
5.3.70.0200.04015.76
5.3.60.0300.05715.76
5.3.50.0270.04715.76
5.3.40.0330.06715.76
5.3.30.0370.06015.76
5.3.20.0200.06015.76
5.3.10.0200.07315.76
5.3.00.0300.06315.76
5.2.170.0230.06315.76
5.2.160.0230.05715.76
5.2.150.0230.03715.76
5.2.140.0270.05315.76
5.2.130.0170.03315.76
5.2.120.0230.04315.76
5.2.110.0200.05315.76
5.2.100.0230.05715.76
5.2.90.0170.03715.76
5.2.80.0100.03715.76
5.2.70.0170.03715.76
5.2.60.0270.05015.76
5.2.50.0230.05315.76
5.2.40.0130.06715.76
5.2.30.0200.05315.76
5.2.20.0200.04715.76
5.2.10.0200.05715.76
5.2.00.0130.04315.76
5.1.60.0100.03315.76
5.1.50.0170.05315.76
5.1.40.0230.04315.76
5.1.30.0170.02715.76
5.1.20.0200.05315.76
5.1.10.0200.05315.76
5.1.00.0200.04015.76
5.0.50.0100.02715.76
5.0.40.0200.03015.76
5.0.30.0130.06015.76
5.0.20.0070.05015.76
5.0.10.0100.04315.76
5.0.00.0130.02715.76
4.4.90.0100.03315.76
4.4.80.0100.02715.76
4.4.70.0030.03315.76
4.4.60.0070.02315.76
4.4.50.0070.03315.76
4.4.40.0100.05315.76
4.4.30.0170.03315.76
4.4.20.0200.02715.76
4.4.10.0100.03315.76
4.4.00.0130.05315.76
4.3.110.0100.02315.76
4.3.100.0070.02715.76
4.3.90.0100.03015.76
4.3.80.0070.03315.76
4.3.70.0070.03315.76
4.3.60.0030.02315.76
4.3.50.0070.02715.76
4.3.40.0070.03315.76
4.3.30.0030.02015.76
4.3.20.0000.02015.76
4.3.10.0030.01715.76
4.3.00.0030.01715.76