3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i=0; $i<50000; $i++) {}

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.00.0100.00319.36
7.1.200.0030.00715.55
7.1.100.0160.01017.91
7.1.70.0060.01116.75
7.1.60.0040.02119.50
7.1.50.0000.02516.89
7.1.00.0000.07722.30
7.0.200.0120.00914.78
7.0.140.0000.04721.95
7.0.60.0070.04719.94
7.0.50.0170.07017.79
7.0.40.0030.09020.40
7.0.30.0330.07320.11
7.0.20.0200.07020.17
7.0.10.0200.04020.18
7.0.00.0170.08019.96
5.6.280.0030.07720.90
5.6.210.0100.07320.54
5.6.200.0070.05718.18
5.6.190.0070.05320.76
5.6.180.0300.03720.55
5.6.170.0370.07320.49
5.6.160.0030.04320.48
5.6.150.0200.08018.12
5.6.140.0070.07718.07
5.6.130.0000.07318.15
5.6.120.0070.09021.11
5.6.110.0100.08320.88
5.6.100.0070.08321.02
5.6.90.0030.09721.09
5.6.80.0130.07720.53
5.6.70.0300.07720.49
5.5.350.0270.07320.32
5.5.340.0030.07717.99
5.5.330.0070.05320.43
5.5.320.0000.06320.23
5.5.310.0300.05020.27
5.5.300.0000.05017.97
5.5.290.0130.07718.02
5.5.280.0100.06020.88
5.5.270.0130.07320.75
5.5.260.0070.08020.75
5.5.250.0070.07320.68
5.5.240.0100.07320.26
5.4.450.0270.04719.25
5.4.440.0600.06719.53
5.4.430.1000.06719.09
5.4.420.0970.06319.43
5.4.410.0070.05718.96
5.4.400.0500.06318.75
5.4.390.0600.06318.52
5.4.380.0370.06318.65
5.4.370.0430.06018.64
5.4.360.0570.07018.57
5.4.350.0630.06718.52
5.4.340.0430.06318.72
5.4.320.0400.07318.64
5.4.310.0470.06718.34
5.4.300.0270.09018.39
5.4.290.0430.05718.70
5.4.280.0470.04718.67
5.4.270.0400.07318.57
5.4.260.0370.06318.57
5.4.250.0330.06018.77
5.4.240.0370.08018.67
5.4.230.0500.08018.68
5.4.220.0430.08018.75
5.4.210.0470.03718.47
5.4.200.0330.05016.38
5.4.190.0470.05318.57
5.4.180.0400.06718.66
5.4.170.0500.05018.47
5.4.160.0400.05318.66
5.4.150.0330.05318.47
5.4.140.0530.06316.25
5.4.130.0100.06716.15
5.4.120.0300.07316.30
5.4.110.0370.06716.21
5.4.100.0300.05716.25
5.4.90.0430.05716.21
5.4.80.0370.05316.24
5.4.70.0370.05316.19
5.4.60.0270.05716.13
5.4.50.0270.04716.21
5.4.40.0300.05016.19
5.4.30.0230.06016.13
5.4.20.0200.05316.07
5.4.10.0200.05016.08
5.4.00.0230.04715.71
5.3.290.0330.07714.65
5.3.280.0170.07714.50
5.3.270.0270.08014.59
5.3.260.0400.07014.52
5.3.250.0400.07714.69
5.3.240.0370.07014.56
5.3.230.0170.08014.54
5.3.220.0230.07314.64
5.3.210.0370.06314.54
5.3.200.0200.07714.47
5.3.190.0330.06314.54
5.3.180.0300.06714.56
5.3.170.0300.06314.63
5.3.160.0300.06714.54
5.3.150.0230.07314.53
5.3.140.0330.07714.64
5.3.130.0300.07314.45
5.3.120.0200.07714.47
5.3.110.0700.06014.54
5.3.100.0330.06714.13
5.3.90.0330.06713.93
5.3.80.0370.06314.11
5.3.70.0270.06313.99
5.3.60.0200.07013.93
5.3.50.0300.06713.89
5.3.40.0300.06313.88
5.3.30.0330.04313.82
5.3.20.0130.06313.69
5.3.10.0330.04313.58
5.3.00.0370.05013.61
5.2.170.0170.05011.14
5.2.160.0200.04711.09
5.2.150.0200.05311.19
5.2.140.0200.06311.19
5.2.130.0230.07011.07
5.2.120.0270.05311.06
5.2.110.0400.03711.04
5.2.100.0400.04711.07
5.2.90.0500.05011.25
5.2.80.0430.07011.14
5.2.70.0300.06711.08
5.2.60.0370.05010.99
5.2.50.0200.05311.07
5.2.40.0270.04710.94
5.2.30.0230.05310.93
5.2.20.0200.05010.96
5.2.10.0100.06011.00
5.2.00.0370.05010.84
5.1.60.0200.04710.08
5.1.50.0200.04310.06
5.1.40.0170.0379.94
5.1.30.0130.04010.36
5.1.20.0130.04710.50
5.1.10.0200.03710.17
5.1.00.0130.05010.05
5.0.50.0130.0339.27
5.0.40.0100.0379.27
5.0.30.0170.0639.27
5.0.20.0100.0339.27
5.0.10.0070.0439.27
5.0.00.0100.0539.27
4.4.90.0100.0309.27
4.4.80.0070.0279.29
4.4.70.0030.0339.29
4.4.60.0070.0309.29
4.4.50.0030.0339.29
4.4.40.0070.0509.29
4.4.30.0100.0309.29
4.4.20.0430.0339.29
4.4.10.0170.0279.29
4.4.00.0070.0439.29
4.3.110.0130.0309.29
4.3.100.0100.0339.29
4.3.90.0130.0309.29
4.3.80.0100.0539.29
4.3.70.0200.0339.29
4.3.60.0130.0309.29
4.3.50.0100.0379.29
4.3.40.0170.0479.29
4.3.30.0070.0379.29
4.3.20.0100.0379.29
4.3.10.0100.0239.29
4.3.00.0000.0306.80