3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function x($n) { echo "$n'sFactors: "; for($i = 1; $i <= $n; $i++) { if ($n % $i == 0 && $i != $n) { $factors[] = $i; echo "$i "; } } if ($n == array_sum($factors)) { echo "[Perfect]"; } else { echo "[Imperfect]"; } } x(28); ?>

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.0rc40.0200.00798.97
7.3.0rc30.0210.00716.51
7.3.0beta10.0090.00012.81
7.3.0alpha10.0040.00712.88
7.2.60.0070.00716.70
7.2.00.0040.00819.45
7.1.200.0030.01015.96
7.1.100.0090.00918.39
7.1.70.0030.00517.01
7.1.60.0070.01719.40
7.1.50.0090.00634.65
7.1.00.0100.07022.57
7.0.200.0030.00616.89
7.0.140.0070.07022.01
7.0.120.0030.07722.05
7.0.60.0070.08719.93
7.0.50.0030.08317.84
7.0.40.0130.06320.16
7.0.30.0400.07320.26
7.0.20.0200.07320.21
7.0.10.0300.07020.33
7.0.00.0000.06020.20
5.6.280.0030.07020.91
5.6.210.0100.08320.73
5.6.200.0000.09018.14
5.6.190.0130.07720.60
5.6.180.0200.05020.48
5.6.170.0130.05320.53
5.6.160.0100.06320.56
5.6.150.0100.05718.14
5.6.140.0100.04018.18
5.6.130.0070.04318.33
5.6.120.0030.05021.02
5.6.110.0130.07720.97
5.6.100.0230.05321.05
5.6.90.0100.06320.96
5.6.80.0100.08020.52
5.6.70.2530.03720.38
5.5.350.0230.03720.32
5.5.340.0070.05318.02
5.5.330.0030.06020.28
5.5.320.0270.07020.32
5.5.310.0230.04320.36
5.5.300.0030.04017.98
5.5.290.0130.07717.95
5.5.280.0070.07320.88
5.5.270.0070.03720.87
5.5.260.0100.05720.84
5.5.250.0130.06020.61
5.5.240.0100.06020.26
5.4.450.0070.06019.18
5.4.440.0100.06719.47
5.4.430.0030.04019.60
5.4.420.0030.08019.47
5.4.410.0000.05019.36
5.4.400.0000.04018.86
5.4.390.0070.04318.87
5.4.380.0100.07019.25
5.4.370.0070.07018.92
5.4.360.0030.07718.85
5.4.350.0100.05719.07
5.4.340.0030.04319.14
5.4.320.0070.03718.92
5.4.310.0100.03319.16
5.4.300.0070.06719.14
5.4.290.0070.04319.14
5.4.280.0030.04319.08
5.4.270.0070.04018.85
5.4.260.0100.03718.85
5.4.250.0100.03718.99
5.4.240.0030.08019.15
5.4.230.0030.04319.13
5.4.220.0070.07319.07
5.4.210.0070.04018.88
5.4.200.0000.04019.14
5.4.190.0030.03718.84
5.4.180.0030.05019.23
5.4.170.0030.03719.07
5.4.160.0070.04019.22
5.4.150.0030.04319.23
5.4.140.0100.07016.32
5.4.130.0030.03716.34
5.4.120.0070.07016.54
5.4.110.0100.06716.41
5.4.100.0030.04016.37
5.4.90.0030.04316.49
5.4.80.0130.04316.46
5.4.70.0130.03316.29
5.4.60.0070.04316.40
5.4.50.0070.03716.25
5.4.40.0070.03316.25
5.4.30.0000.04716.38
5.4.20.0070.06716.34
5.4.10.0030.04716.45
5.4.00.0000.05015.95
5.3.290.0070.06714.73
5.3.280.0000.06714.64
5.3.270.0000.04314.60
5.3.260.0070.04014.49
5.3.250.0170.06314.65
5.3.240.0100.03014.61
5.3.230.0030.07714.48
5.3.220.0070.04314.52
5.3.210.0100.07714.74
5.3.200.0000.06314.62
5.3.190.0100.07714.57
5.3.180.0070.07014.45
5.3.170.0000.08014.63
5.3.160.0000.04014.61
5.3.150.0030.06314.49
5.3.140.0030.08314.61
5.3.130.0100.04014.60
5.3.120.0000.04014.56
5.3.110.0030.08314.61
5.3.100.0070.03714.09
5.3.90.0000.04014.04
5.3.80.0000.04014.17
5.3.70.0000.04014.08
5.3.60.0170.06714.15
5.3.50.0030.03714.00
5.3.40.0170.07013.96
5.3.30.0130.07313.94
5.3.20.0170.06713.71
5.3.10.0000.06013.80
5.3.00.0000.06013.69
5.2.170.0030.03011.20
5.2.160.0030.05011.14
5.2.150.0070.05711.22
5.2.140.0130.05011.15
5.2.130.0070.04011.26
5.2.120.0030.06011.18
5.2.110.0030.04711.02
5.2.100.0100.05311.17
5.2.90.0000.03311.06
5.2.80.0100.04311.13
5.2.70.0030.05311.05
5.2.60.0000.03711.05
5.2.50.0000.07010.96
5.2.40.0030.06011.14
5.2.30.0130.04010.86
5.2.20.0030.06011.11
5.2.10.0070.03010.75
5.2.00.0000.03010.67
5.1.60.0000.0279.97
5.1.50.0030.0539.98
5.1.40.0030.03710.00
5.1.30.0070.03010.29
5.1.20.0030.04010.38
5.1.10.0000.03010.12
5.1.00.0070.02710.11
5.0.50.0070.0278.59
5.0.40.0000.0338.55
5.0.30.0000.0708.18
5.0.20.0030.0338.25
5.0.10.0000.0408.22
5.0.00.0030.0638.16
4.4.90.0030.0337.83
4.4.80.0030.0377.83
4.4.70.0000.0177.83
4.4.60.0030.0237.83
4.4.50.0000.0207.83
4.4.40.0000.0537.83
4.4.30.0070.0177.83
4.4.20.0000.0407.83
4.4.10.0030.0337.83
4.4.00.0000.0537.83
4.3.110.0030.0337.83
4.3.100.0070.0237.83
4.3.90.0070.0307.83
4.3.80.0070.0507.83
4.3.70.0000.0337.83
4.3.60.0030.0337.83
4.3.50.0030.0307.83
4.3.40.0070.0477.83
4.3.30.0000.0377.83
4.3.20.0000.0337.83
4.3.10.0070.0337.83
4.3.00.0000.0377.83