3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = ''; for ($i = 1; $i = 10000; $i++) { $str .= 'a'; } throw new Exception($str, array('error' => 'LONG STUFF HERE'));

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.0501.05248.50
7.2.00.0171.09250.96
7.1.200.0330.88747.79
7.1.100.0271.03349.92
7.1.70.0371.00348.86
7.1.60.0170.88049.32
7.1.50.0200.91449.14
7.1.00.0071.24354.21
7.0.200.0700.99248.83
7.0.140.0031.04354.00
7.0.60.0200.99353.45
7.0.50.0330.93051.30
7.0.40.0230.92349.82
7.0.30.0830.93049.87
7.0.20.0570.97749.91
7.0.10.0670.90349.68
7.0.00.0230.96349.88
5.6.280.0002.50071.93
5.6.210.0132.48775.05
5.6.200.0202.48072.33
5.6.190.0372.45373.93
5.6.180.3532.14767.00
5.6.170.0332.46759.82
5.6.160.0402.46372.75
5.6.150.0232.47771.89
5.6.140.0232.47770.41
5.6.130.0172.48370.80
5.6.120.0072.49375.01
5.6.110.0302.47373.53
5.6.100.0402.46373.70
5.6.90.0232.47773.35
5.6.80.0272.47370.56
5.6.70.0202.48079.09
5.5.350.0272.39044.24
5.5.340.0202.41050.13
5.5.330.0772.35747.61
5.5.320.0702.34046.34
5.5.310.0232.42748.51
5.5.300.0632.39752.11
5.5.290.0572.40046.32
5.5.280.0532.40749.75
5.5.270.0332.43752.14
5.5.260.0302.40743.80
5.5.250.0632.36347.07
5.5.240.0632.38753.44
5.4.450.0602.40751.95
5.4.440.0632.33748.22
5.4.430.0402.40343.36
5.4.420.0572.40750.32
5.4.410.0402.42348.67
5.4.400.0402.41044.87
5.4.390.0372.45047.13
5.4.380.0802.30345.89
5.4.370.0702.35745.26
5.4.360.0602.36747.43
5.4.350.0632.36048.54
5.4.340.0372.40048.46
5.4.320.0832.35750.55
5.4.310.0402.39745.74
5.4.300.0372.42050.09
5.4.290.0672.36746.85
5.4.280.0602.38352.26
5.4.270.0332.41351.70
5.4.260.0432.40343.38
5.4.250.0602.36048.11
5.4.240.0532.41047.84
5.4.230.0502.41048.19
5.4.220.0572.42749.29
5.4.210.0472.40749.62
5.4.200.0602.37340.73
5.4.190.0372.42751.92
5.4.180.0672.35750.68
5.4.170.0502.41743.88
5.4.160.0902.35349.50
5.4.150.0402.35743.70
5.4.140.0502.37344.39
5.4.130.0532.36745.75
5.4.120.0572.41750.57
5.4.110.0502.36742.54
5.4.100.0502.40045.69
5.4.90.0502.37345.74
5.4.80.0532.39048.93
5.4.70.0502.36041.87
5.4.60.0402.40048.47
5.4.50.0502.42052.30
5.4.40.0402.41052.32
5.4.30.0502.39350.77
5.4.20.0302.41051.58
5.4.10.0432.41049.73
5.4.00.0332.43351.86
5.3.290.0532.38739.36
5.3.280.0572.41740.60
5.3.270.0332.39040.65
5.3.260.0572.35039.71
5.3.250.0632.37340.45
5.3.240.0372.42335.26
5.3.230.0572.41042.77
5.3.220.0632.40342.07
5.3.210.0372.40041.19
5.3.200.0532.40042.73
5.3.190.0302.41340.93
5.3.180.0472.42041.96
5.3.170.0372.40040.56
5.3.160.0732.37741.60
5.3.150.0332.41342.30
5.3.140.0332.43344.39
5.3.130.0602.36742.00
5.3.120.0532.38038.97
5.3.110.0572.39343.92
5.3.100.0502.40041.84
5.3.90.0572.36740.28
5.3.80.0402.39740.43
5.3.70.0432.38341.63
5.3.60.0672.36337.64
5.3.50.0532.32735.34
5.3.40.0372.40340.56
5.3.30.0672.38740.50
5.3.20.0732.38039.41
5.3.10.0532.41040.85
5.3.00.0402.38341.33
5.2.170.0202.45333.05
5.2.160.0472.34331.82
5.2.150.0332.40734.21
5.2.140.0402.41332.66
5.2.130.0472.37330.66
5.2.120.0332.44032.26
5.2.110.0332.43027.99
5.2.100.0572.39733.76
5.2.90.0532.40332.10
5.2.80.0572.23026.66
5.2.70.0332.14326.97
5.2.60.0372.39033.23
5.2.50.0302.43731.54
5.2.40.0402.41331.78
5.2.30.0602.40333.15
5.2.20.0402.40731.67
5.2.10.0302.41731.02
5.2.00.0502.37030.00
5.1.60.0432.39328.20
5.1.50.0502.41027.04
5.1.40.0302.43027.36
5.1.30.0532.36027.59
5.1.20.0202.45724.21
5.1.10.0572.36325.63
5.1.00.0602.39728.32
5.0.50.0202.41016.52
5.0.40.0572.36016.06
5.0.30.0502.38317.61
5.0.20.0272.42716.11
5.0.10.0472.38016.40
5.0.00.0272.41715.69
4.4.90.0030.0208.56
4.4.80.0000.0238.56
4.4.70.0000.0308.56
4.4.60.0070.0178.56
4.4.50.0070.0178.56
4.4.40.0000.0378.56
4.4.30.0070.0178.56
4.4.20.0030.0208.56
4.4.10.0100.0178.56
4.4.00.0230.0238.56
4.3.110.0000.0338.56
4.3.100.0000.0238.56
4.3.90.0000.0238.56
4.3.80.0000.0378.56
4.3.70.0030.0308.56
4.3.60.0070.0238.56
4.3.50.0070.0208.56
4.3.40.0070.0408.56
4.3.30.0030.0208.56
4.3.20.0030.0208.56
4.3.10.0000.0208.56
4.3.00.0100.0207.80