3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = microtime(true); //echo $time; $random = rand ( ); echo $random;
based on sCXJA

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.0050.00518.97
7.1.70.0060.00317.17
7.1.60.0120.01219.46
7.1.50.0040.00816.82
7.1.00.0070.07322.40
7.0.200.0590.01114.46
7.0.140.0000.07022.12
7.0.60.0170.06020.03
7.0.50.0100.05717.88
7.0.40.0030.05319.98
7.0.30.0230.05020.17
7.0.20.0200.05020.17
7.0.10.0200.07020.00
7.0.00.0070.03720.33
5.6.280.0100.06720.98
5.6.210.0030.08720.66
5.6.200.0100.06318.21
5.6.190.0100.07720.58
5.6.180.0330.07720.77
5.6.170.0100.07320.50
5.6.160.0030.06720.48
5.6.150.0000.04318.22
5.6.140.0030.04318.22
5.6.130.0070.05018.14
5.6.120.0030.04321.13
5.6.110.0070.08320.98
5.6.100.0030.04321.03
5.6.90.0170.07020.95
5.6.80.0100.07720.52
5.5.350.0100.03720.40
5.5.340.0130.07718.02
5.5.330.0100.04720.43
5.5.320.0030.05320.50
5.5.310.0270.08320.23
5.5.300.0070.07717.91
5.5.290.0100.07017.88
5.5.280.0070.08320.68
5.5.270.0030.08720.96
5.5.260.0170.07720.86
5.5.250.0070.03720.60
5.5.240.0100.06020.34
5.4.450.0300.06319.50
5.4.440.0630.06719.34
5.4.430.0830.05019.62
5.4.420.0800.05019.63
5.4.410.0030.05719.42
5.4.400.0130.05019.28
5.4.390.0100.05718.80
5.4.380.0400.05018.56
5.4.370.0330.05018.55
5.4.360.0300.05718.62
5.4.350.0100.06018.49
5.4.340.0070.05718.49
5.4.320.0100.03712.45
5.4.310.0070.03912.45
5.4.300.0080.03612.45
5.4.290.0090.04012.45
5.4.280.0080.04712.34
5.4.270.0110.04512.34
5.4.260.0110.04712.35
5.4.250.0100.05212.35
5.4.240.0080.04212.35
5.4.230.0040.05312.34
5.4.220.0060.04012.34
5.4.210.0030.04112.34
5.4.200.0030.04612.34
5.4.190.0060.04912.33
5.4.180.0050.04112.33
5.4.170.0060.03912.35
5.4.160.0070.03812.34
5.4.150.0040.04012.34
5.4.140.0070.04412.02
5.4.130.0090.03412.01
5.4.120.0090.03311.96
5.4.110.0090.03411.96
5.4.100.0120.04411.96
5.4.90.0060.04211.96
5.4.80.0100.03711.96
5.4.70.0070.03711.96
5.4.60.0050.04111.96
5.4.50.0090.03311.96
5.4.40.0080.03911.95
5.4.30.0050.03811.95
5.4.20.0110.03411.95
5.4.10.0080.03611.95
5.4.00.0070.04211.44
5.3.290.0050.04412.80
5.3.280.0100.04412.71
5.3.270.0090.04912.72
5.3.260.0080.04812.71
5.3.250.0050.04112.72
5.3.240.0060.04312.71
5.3.230.0060.03712.71
5.3.220.0110.03412.68
5.3.210.0060.04012.68
5.3.200.0060.03912.68
5.3.190.0060.04712.68
5.3.180.0090.03712.68
5.3.170.0100.04912.67
5.3.160.0120.05112.67
5.3.150.0070.05112.68
5.3.140.0070.04012.66
5.3.130.0090.04512.66
5.3.120.0050.04112.66
5.3.110.0120.03712.66
5.3.100.0070.04112.12
5.3.90.0080.04012.08
5.3.80.0080.04012.07
5.3.70.0030.04412.07
5.3.60.0070.03512.06
5.3.50.0070.03512.00
5.3.40.0070.03812.00
5.3.30.0060.03811.95
5.3.20.0070.03411.72
5.3.10.0080.03811.70
5.3.00.0090.03811.68
5.2.170.0070.0359.18
5.2.160.0100.0279.18
5.2.150.0070.0319.18
5.2.140.0060.0369.18
5.2.130.0030.0319.14
5.2.120.0050.0299.14
5.2.110.0050.0299.14
5.2.100.0040.0349.14
5.2.90.0070.0329.14
5.2.80.0020.0339.14
5.2.70.0050.0309.13
5.2.60.0050.0309.09
5.2.50.0040.0309.05
5.2.40.0050.0299.03
5.2.30.0050.0319.00
5.2.20.0050.0289.00
5.2.10.0050.0308.93
5.2.00.0040.0318.79
5.1.60.0050.0298.07
5.1.50.0050.0248.07
5.1.40.0060.0288.05
5.1.30.0080.0328.40
5.1.20.0060.0268.43
5.1.10.0090.0258.15
5.1.00.0060.0278.15
5.0.50.0020.0226.63
5.0.40.0040.0196.48
5.0.30.0040.0316.30
5.0.20.0050.0186.27
5.0.10.0050.0186.25
5.0.00.0050.0306.23
4.4.90.0040.0164.78
4.4.80.0020.0164.76
4.4.70.0040.0144.75
4.4.60.0030.0184.75
4.4.50.0030.0194.77
4.4.40.0030.0254.71
4.4.30.0040.0184.76
4.4.20.0020.0174.84
4.4.10.0030.0184.84
4.4.00.0020.0264.76
4.3.110.0000.0224.67
4.3.100.0000.0194.66
4.3.90.0030.0174.64
4.3.80.0030.0284.59
4.3.70.0040.0204.63
4.3.60.0040.0204.63
4.3.50.0030.0214.63
4.3.40.0040.0234.54
4.3.30.0020.0163.31
4.3.20.0020.0183.29
4.3.10.0030.0163.25
4.3.00.0030.0277.89