3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo ('test'); $tab = array(); while(rand(0, 1000000) < 10){ } echo 'fini';

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.1.70.0040.00417.07
7.1.60.0000.01319.17
7.1.50.0260.00634.63
7.1.00.0000.07722.32
7.0.200.0070.00016.72
7.0.140.0030.07322.00
7.0.60.0030.08019.93
7.0.50.0030.08317.66
7.0.40.0100.06719.98
7.0.30.0170.04020.14
7.0.20.0270.08020.04
7.0.10.0030.08720.13
7.0.00.0130.08020.04
5.6.280.0000.07720.90
5.6.210.0070.07320.64
5.6.200.0070.04718.13
5.6.190.0100.07720.56
5.6.180.0230.06020.56
5.6.170.0430.07020.62
5.6.160.0130.04720.33
5.6.150.0070.03718.21
5.6.140.0070.05318.11
5.6.130.0030.08718.14
5.6.120.0100.05320.98
5.6.110.0200.07721.13
5.6.100.0070.06320.88
5.6.90.0030.09320.87
5.6.80.0130.07020.48
5.6.70.4600.03720.38
5.5.350.0130.08020.42
5.5.340.0070.07718.00
5.5.330.0170.07020.07
5.5.320.0330.07020.34
5.5.310.0330.06720.31
5.5.300.0030.08017.89
5.5.290.0100.07017.98
5.5.280.0070.04720.76
5.5.270.0030.06020.93
5.5.260.0130.07320.95
5.5.250.0100.05320.79
5.5.240.0170.04020.15
5.4.450.0170.04319.26
5.4.440.0070.04719.25
5.4.430.0370.06019.46
5.4.420.0170.05019.47
5.4.410.0230.07719.27
5.4.400.0130.07718.78
5.4.390.0230.06318.93
5.4.380.0270.06318.78
5.4.370.0230.07019.08
5.4.360.0200.04719.24
5.4.350.0300.05719.24
5.4.340.0370.06319.13
5.4.320.0270.04718.80
5.4.310.0230.07019.15
5.4.300.0200.06018.88
5.4.290.0300.03019.05
5.4.280.0170.04019.04
5.4.270.0200.03719.23
5.4.260.0200.07019.08
5.4.250.0230.07319.07
5.4.240.0230.04718.92
5.4.230.0270.04718.77
5.4.220.0270.07019.23
5.4.210.0270.07018.87
5.4.200.0300.04718.80
5.4.190.0270.07318.79
5.4.180.0230.04319.07
5.4.170.0170.08318.79
5.4.160.0170.04718.85
5.4.150.0270.06319.22
5.4.140.0230.07016.31
5.4.130.0200.07016.27
5.4.120.0200.07316.30
5.4.110.0270.06016.41
5.4.100.0230.06316.39
5.4.90.0230.06316.20
5.4.80.0200.04316.44
5.4.70.0230.04316.21
5.4.60.0170.05716.45
5.4.50.0230.05716.43
5.4.40.0330.05716.40
5.4.30.0170.04016.20
5.4.20.0270.06316.39
5.4.10.0270.06316.43
5.4.00.0170.03715.78
5.3.290.0330.06014.61
5.3.280.0200.05014.43
5.3.270.0330.06714.54
5.3.260.0170.07714.68
5.3.250.0200.05014.50
5.3.240.0300.06714.55
5.3.230.0270.06314.63
5.3.220.0330.06014.39
5.3.210.0230.07014.43
5.3.200.0270.06314.40
5.3.190.0200.05014.51
5.3.180.0170.07714.40
5.3.170.0230.03314.41
5.3.160.0330.06714.60
5.3.150.0300.04014.43
5.3.140.0200.04314.63
5.3.130.0300.06314.49
5.3.120.0270.05314.39
5.3.110.0230.03314.39
5.3.100.0270.07313.98
5.3.90.0300.03313.96
5.3.80.0200.04013.96
5.3.70.0300.06713.85
5.3.60.0230.05314.02
5.3.50.0200.05313.74
5.3.40.0200.07313.82
5.3.30.0100.05013.80
5.3.20.0130.04013.59
5.3.10.0100.04013.63
5.3.00.0170.03313.66
5.2.170.0230.02711.75
5.2.160.0200.05711.75
5.2.150.0130.04011.75
5.2.140.0070.03311.75
5.2.130.0130.02711.75
5.2.120.0130.02711.75
5.2.110.0170.02311.75
5.2.100.0100.03011.75
5.2.90.0130.02711.75
5.2.80.0070.03311.75
5.2.70.0170.02311.75
5.2.60.0070.03311.75
5.2.50.0170.02311.75
5.2.40.0070.03311.75
5.2.30.0170.05711.75
5.2.20.0100.06311.75
5.2.10.0200.04711.75
5.2.00.0030.04011.75
5.1.60.0170.04011.75
5.1.50.0100.03311.75
5.1.40.0170.04011.75
5.1.30.0030.03011.75
5.1.20.0130.04711.75
5.1.10.0130.02311.75
5.1.00.0030.03011.75
5.0.50.0000.03311.75
5.0.40.0070.02011.75
5.0.30.0030.03311.75
5.0.20.0030.02011.75
5.0.10.0000.02311.75
5.0.00.0100.02711.75
4.4.90.0070.02311.75
4.4.80.0070.01311.75
4.4.70.0100.02011.75
4.4.60.0100.02011.75
4.4.50.0070.01711.75
4.4.40.0070.02311.75
4.4.30.0070.01711.75
4.4.20.0030.02011.75
4.4.10.0030.01711.75
4.4.00.0030.02711.75
4.3.110.0070.02011.75
4.3.100.0030.01711.75
4.3.90.0070.01311.75
4.3.80.0030.02311.75
4.3.70.0100.01011.75
4.3.60.0030.01311.75
4.3.50.0030.01711.75
4.3.40.0070.02011.75
4.3.30.0000.01711.75
4.3.20.0030.01311.75
4.3.10.0030.01711.75
4.3.00.0030.01311.75