3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php srand(11834); print rand()."\n"; print rand();

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.0080.00319.30
7.1.70.0040.00416.96
7.1.60.0140.01019.46
7.1.50.0060.01316.75
7.1.00.0070.07322.35
7.0.200.0020.00516.70
7.0.140.0070.07022.07
7.0.60.0070.03720.03
7.0.50.0030.08717.91
7.0.40.0100.08720.05
7.0.30.0400.06720.35
7.0.20.0230.08320.18
7.0.10.0130.06720.21
7.0.00.0030.09020.00
5.6.210.0100.07720.50
5.6.200.0100.05018.15
5.6.190.0130.04720.41
5.6.180.0300.08020.57
5.6.170.0470.06320.38
5.6.160.0100.07720.48
5.6.150.0170.05318.11
5.6.140.0070.04018.07
5.6.130.0100.05318.16
5.6.120.0100.08021.04
5.6.110.0170.05020.98
5.6.100.0100.08321.13
5.6.90.0030.07320.93
5.6.80.0030.04020.52
5.5.350.0200.06720.37
5.5.340.0170.06318.02
5.5.330.0030.09020.40
5.5.320.0100.04020.27
5.5.310.0270.04720.17
5.5.300.0070.08017.91
5.5.290.0100.08017.88
5.5.280.0070.04720.79
5.5.270.0070.07320.76
5.5.260.0100.07020.75
5.5.250.0070.06720.57
5.5.240.0000.04320.05
5.4.450.0670.05019.46
5.4.440.0670.06019.53
5.4.430.0830.04319.27
5.4.420.0830.05319.62
5.4.410.0700.07719.47
5.4.400.0770.06018.74
5.4.390.0870.05319.17
5.4.380.0330.06018.77
5.4.370.0400.04318.68
5.4.360.0330.05318.69
5.4.350.0330.05018.52
5.4.340.0370.05318.47
5.4.320.0050.03712.45
5.4.310.0070.03712.45
5.4.300.0040.03712.45
5.4.290.0080.03612.45
5.4.280.0080.03412.35
5.4.270.0070.03812.35
5.4.260.0040.03912.35
5.4.250.0030.04012.35
5.4.240.0070.03512.34
5.4.230.0050.04412.34
5.4.220.0080.05612.34
5.4.210.0080.05212.34
5.4.200.0100.04812.34
5.4.190.0100.05712.34
5.4.180.0070.04512.33
5.4.170.0100.05712.34
5.4.160.0070.05212.34
5.4.150.0070.05312.34
5.4.140.0080.05312.02
5.4.130.0070.05012.01
5.4.120.0090.05011.97
5.4.110.0100.04911.96
5.4.100.0060.05011.96
5.4.90.0110.04911.96
5.4.80.0060.04311.96
5.4.70.0060.03511.96
5.4.60.0070.03311.96
5.4.50.0070.03511.96
5.4.40.0050.03811.95
5.4.30.0050.03811.95
5.4.20.0060.03411.95
5.4.10.0040.03611.95
5.4.00.0070.03611.44
5.3.290.0050.03912.80
5.3.280.0060.03812.71
5.3.270.0060.03812.72
5.3.260.0060.03812.72
5.3.250.0070.03812.72
5.3.240.0060.03912.72
5.3.230.0060.03712.71
5.3.220.0030.03912.68
5.3.210.0090.03512.68
5.3.200.0030.03812.68
5.3.190.0090.04012.68
5.3.180.0100.04012.68
5.3.170.0060.05212.67
5.3.160.0100.04312.68
5.3.150.0040.04212.68
5.3.140.0140.06012.66
5.3.130.0090.04712.66
5.3.120.0070.04112.66
5.3.110.0130.04912.66
5.3.100.0090.05412.12
5.3.90.0140.04512.08
5.3.80.0120.04412.07
5.3.70.0090.04212.07
5.3.60.0080.03412.06
5.3.50.0080.04512.00
5.3.40.0110.04612.00
5.3.30.0110.04511.94
5.3.20.0130.04311.72
5.3.10.0120.04011.69
5.3.00.0120.06811.68
5.2.170.0020.0489.18
5.2.160.0070.0429.18
5.2.150.0050.0339.18
5.2.140.0050.0359.17
5.2.130.0060.0329.13
5.2.120.0070.0429.14
5.2.110.0080.0399.13
5.2.100.0070.0419.13
5.2.90.0120.0519.13
5.2.80.0100.0419.13
5.2.70.0060.0399.13
5.2.60.0030.0379.09
5.2.50.0050.0339.05
5.2.40.0050.0329.03
5.2.30.0040.0349.00
5.2.20.0040.0309.00
5.2.10.0060.0288.93
5.2.00.0040.0298.79
5.1.60.0040.0278.07
5.1.50.0050.0238.07
5.1.40.0050.0258.05
5.1.30.0070.0348.40
5.1.20.0060.0378.43
5.1.10.0070.0348.15
5.1.00.0050.0378.15
5.0.50.0060.0266.63
5.0.40.0040.0286.49
5.0.30.0060.0406.30
5.0.20.0020.0266.26
5.0.10.0030.0226.24
5.0.00.0030.0316.23
4.4.90.0020.0174.78
4.4.80.0050.0144.75
4.4.70.0020.0234.75
4.4.60.0050.0144.76
4.4.50.0050.0154.77
4.4.40.0040.0354.71
4.4.30.0030.0224.76
4.4.20.0040.0234.84
4.4.10.0020.0194.85
4.4.00.0030.0314.76
4.3.110.0030.0174.66
4.3.100.0020.0154.67
4.3.90.0020.0154.63
4.3.80.0040.0254.58
4.3.70.0020.0164.63
4.3.60.0010.0174.63
4.3.50.0050.0134.63
4.3.40.0020.0274.54
4.3.30.0020.0173.29
4.3.20.0020.0183.27
4.3.10.0010.0193.22
4.3.00.0170.0206.87