3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for($i = 1; $i <= 10; $i++) { echo $i . "\n\r"; } ?>
based on gDXSE

Here you find the average performance (time & memory) of each version. A greyed 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.00.0000.01719.21
7.1.100.0090.00617.64
7.1.70.0030.00816.94
7.1.60.0140.01019.50
7.1.50.0080.00316.80
7.1.00.0000.08022.57
7.0.200.0920.00614.61
7.0.140.0070.05722.21
7.0.60.0200.07320.03
7.0.50.0100.07717.87
7.0.40.0000.05320.19
7.0.30.0330.08020.09
7.0.20.0230.08320.17
7.0.10.0300.07720.11
7.0.00.0200.07320.17
5.6.280.0030.07321.04
5.6.210.0270.06320.55
5.6.200.0070.07018.18
5.6.190.0070.08720.59
5.6.180.0230.05020.61
5.6.170.0200.04020.38
5.6.160.0100.05320.48
5.6.150.0030.05018.17
5.6.140.0070.07318.18
5.6.130.0030.08318.14
5.6.120.0100.07721.09
5.6.110.0070.06320.98
5.6.100.0100.08020.99
5.6.90.0130.07721.06
5.6.80.0100.07020.40
5.6.70.0330.06720.40
5.5.350.0070.07320.39
5.5.340.0200.07018.01
5.5.330.0200.07020.23
5.5.320.0170.04720.41
5.5.310.0330.06320.30
5.5.300.0200.06718.01
5.5.290.0070.06017.98
5.5.280.0030.04320.67
5.5.270.0070.08320.83
5.5.260.0030.04320.96
5.5.250.0030.07720.47
5.5.240.0070.07320.15
5.4.450.0700.05719.55
5.4.440.0800.05319.58
5.4.430.0330.05319.48
5.4.420.0800.06019.63
5.4.410.0330.03019.35
5.4.400.0170.06018.79
5.4.390.0230.05718.70
5.4.380.0170.06018.76
5.4.370.0300.05718.52
5.4.360.0200.05718.68
5.4.350.0200.06018.62
5.4.340.0170.06018.71
5.4.320.0170.06318.79
5.4.310.0200.06318.77
5.4.300.0230.05018.58
5.4.290.0170.05718.52
5.4.280.0230.06718.50
5.4.270.0230.07018.58
5.4.260.0230.06318.66
5.4.250.0230.06718.49
5.4.240.0230.05318.49
5.4.230.0230.05018.57
5.4.220.0270.04718.60
5.4.210.0200.05718.64
5.4.200.0270.04316.56
5.4.190.0200.05018.75
5.4.180.0300.04718.70
5.4.170.0170.05718.66
5.4.160.0230.05018.69
5.4.150.0200.05318.71
5.4.140.0100.06016.17
5.4.130.0270.04716.16
5.4.120.0170.07016.05
5.4.110.0230.06316.13
5.4.100.0300.05316.29
5.4.90.0170.07316.31
5.4.80.0270.04716.33
5.4.70.0130.06016.34
5.4.60.0100.06016.25
5.4.50.0270.04016.03
5.4.40.0030.07316.22
5.4.30.0300.04016.18
5.4.20.0170.05016.08
5.4.10.0230.04716.33
5.4.00.0100.05715.59
5.3.290.0300.05014.71
5.3.280.0330.04314.66
5.3.270.0200.06014.67
5.3.260.0270.05014.49
5.3.250.0170.05714.65
5.3.240.0270.06014.67
5.3.230.0330.05014.63
5.3.220.0200.05014.59
5.3.210.0200.05714.52
5.3.200.0130.06014.61
5.3.190.0230.04714.65
5.3.180.0170.06014.63
5.3.170.0270.04714.54
5.3.160.0200.05014.54
5.3.150.0130.05714.45
5.3.140.0230.04714.54
5.3.130.0230.07014.57
5.3.120.0130.06014.64
5.3.110.0230.05014.54
5.3.100.0170.05314.14
5.3.90.0230.06314.01
5.3.80.0200.05014.01
5.3.70.0200.07013.98
5.3.60.0200.05713.99
5.3.50.0170.05013.86
5.3.40.0330.04314.02
5.3.30.0170.05313.90
5.3.20.0200.05013.58
5.3.10.0230.04313.62
5.3.00.0200.05013.55
5.2.170.0100.04711.18
5.2.160.0130.05011.14
5.2.150.0170.05011.18
5.2.140.0130.04711.28
5.2.130.0170.05011.13
5.2.120.0170.04311.09
5.2.110.0270.04311.10
5.2.100.0200.05311.09
5.2.90.0170.04011.02
5.2.80.0230.04311.07
5.2.70.0170.04011.08
5.2.60.0200.05011.03
5.2.50.0170.04010.96
5.2.40.0100.04310.96
5.2.30.0170.04711.04
5.2.20.0170.04311.11
5.2.10.0170.03711.03
5.2.00.0200.04710.70
5.1.60.0170.04010.16
5.1.50.0170.04010.16
5.1.40.0130.0409.98
5.1.30.0270.03310.38
5.1.20.0170.04010.38
5.1.10.0130.03310.19
5.1.00.0130.03710.19
5.0.50.0070.0438.72
5.0.40.0030.0338.53
5.0.30.0100.0438.29
5.0.20.0100.0238.26
5.0.10.0070.0338.28
5.0.00.0170.0338.19
4.4.90.0030.0276.52
4.4.80.0030.0276.52
4.4.70.0070.0206.52
4.4.60.0070.0206.52
4.4.50.0100.0276.52
4.4.40.0070.0406.52
4.4.30.0030.0276.52
4.4.20.0100.0206.52
4.4.10.0070.0206.52
4.4.00.0070.0336.52
4.3.110.0070.0276.52
4.3.100.0070.0236.52
4.3.90.0100.0176.52
4.3.80.0070.0336.52
4.3.70.0070.0306.52
4.3.60.0130.0206.52
4.3.50.0100.0176.52
4.3.40.0100.0306.52
4.3.30.0070.0206.52
4.3.20.0070.0206.52
4.3.10.0000.0276.52
4.3.00.0130.0206.82