3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $capacities = array(25,150,50000,200000,5000000); foreach ($capacities as $c) { echo sprintf("Capacity of %s will be allowed to overdraw by %s.\n", $c, log($c )); }
based on lvg3j

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.3.0rc60.0060.00617.07
7.3.0rc40.0230.00898.97
7.3.0rc30.0150.00316.87
7.2.00.0030.01219.73
7.1.100.0060.00918.40
7.1.70.0120.00317.44
7.1.60.0060.01319.61
7.1.50.0100.01017.04
7.1.00.0100.07022.62
7.0.200.0030.00617.07
7.0.140.0070.07022.23
7.0.60.0030.04720.35
7.0.50.0100.07718.09
7.0.40.0070.09020.23
7.0.30.0470.07720.55
7.0.20.0330.06020.58
7.0.10.0100.03720.25
7.0.00.0130.07720.41
5.6.280.0000.07721.16
5.6.210.0070.08320.89
5.6.200.0030.05718.40
5.6.190.0100.05720.95
5.6.180.0370.03720.81
5.6.170.0230.04020.75
5.6.160.0070.08020.73
5.6.150.0100.08018.49
5.6.140.0130.03318.36
5.6.130.0070.06318.33
5.6.120.0130.07721.21
5.6.110.0130.07721.42
5.6.100.0070.03721.27
5.6.90.0030.08321.38
5.6.80.0030.07020.71
5.5.350.0070.04720.60
5.5.340.0130.06718.20
5.5.330.0070.08720.54
5.5.320.0300.08020.54
5.5.310.0330.07020.38
5.5.300.0230.04018.20
5.5.290.0000.04318.24
5.5.280.0030.05021.14
5.5.270.0030.05021.13
5.5.260.0130.08321.25
5.5.250.0100.08020.75
5.5.240.0200.07720.54
5.4.450.0670.05019.58
5.4.440.0370.05019.81
5.4.430.0700.05719.29
5.4.420.0470.06719.57
5.4.410.0770.05719.50
5.4.400.0070.05319.29
5.4.390.0770.06319.21
5.4.380.0330.06318.81
5.4.370.0130.06018.88
5.4.360.0230.06018.80
5.4.350.0330.04318.85
5.4.340.0400.06018.59
5.4.320.0080.03612.49
5.4.310.0070.03712.50
5.4.300.0070.03912.50
5.4.290.0130.04612.49
5.4.280.0070.03912.39
5.4.270.0090.03712.39
5.4.260.0110.05112.39
5.4.250.0050.03912.39
5.4.240.0080.03812.39
5.4.230.0100.04612.38
5.4.220.0110.03412.38
5.4.210.0080.04212.38
5.4.200.0070.04112.38
5.4.190.0110.04412.38
5.4.180.0060.03712.38
5.4.170.0040.03912.39
5.4.160.0070.03612.38
5.4.150.0030.03912.38
5.4.140.0070.04012.07
5.4.130.0050.03812.05
5.4.120.0100.03312.01
5.4.110.0080.04012.00
5.4.100.0100.04412.01
5.4.90.0070.03612.01
5.4.80.0080.04012.01
5.4.70.0070.03712.00
5.4.60.0050.03512.00
5.4.50.0070.03412.00
5.4.40.0070.03611.99
5.4.30.0100.03311.99
5.4.20.0070.03511.99
5.4.10.0060.03611.99
5.4.00.0050.04011.48
5.3.290.0100.04112.80
5.3.280.0100.03412.71
5.3.270.0130.04712.72
5.3.260.0080.04712.72
5.3.250.0060.03912.72
5.3.240.0060.04112.72
5.3.230.0080.03712.71
5.3.220.0100.03412.68
5.3.210.0020.04712.68
5.3.200.0110.03612.68
5.3.190.0080.05112.68
5.3.180.0080.05112.68
5.3.170.0060.03812.67
5.3.160.0050.04312.67
5.3.150.0080.04212.68
5.3.140.0100.04012.66
5.3.130.0070.04512.66
5.3.120.0080.03912.66
5.3.110.0130.04912.66
5.3.100.0100.03912.12
5.3.90.0090.04412.11
5.3.80.0080.03712.10
5.3.70.0080.03912.09
5.3.60.0070.04212.08
5.3.50.0070.04212.03
5.3.40.0080.03712.02
5.3.30.0040.04011.99
5.3.20.0050.03611.76
5.3.10.0080.03511.73
5.3.00.0050.03911.72
5.2.170.0050.0329.22
5.2.160.0050.0299.22
5.2.150.0020.0349.22
5.2.140.0040.0329.21
5.2.130.0080.0269.18
5.2.120.0060.0309.18
5.2.110.0040.0359.18
5.2.100.0060.0279.18
5.2.90.0050.0299.18
5.2.80.0040.0309.18
5.2.70.0050.0309.17
5.2.60.0040.0329.13
5.2.50.0040.0309.10
5.2.40.0040.0309.07
5.2.30.0080.0279.05
5.2.20.0040.0329.04
5.2.10.0040.0298.99
5.2.00.0030.0308.85
5.1.60.0030.0268.14
5.1.50.0040.0258.13
5.1.40.0030.0268.11
5.1.30.0050.0258.46
5.1.20.0080.0258.48
5.1.10.0040.0268.21
5.1.00.0050.0268.21
5.0.50.0040.0236.69
5.0.40.0050.0196.55
5.0.30.0040.0316.36
5.0.20.0050.0196.33
5.0.10.0040.0196.30
5.0.00.0060.0296.30
4.4.90.0040.0154.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0060.0114.76
4.4.50.0030.0154.77
4.4.40.0020.0264.71
4.4.30.0050.0164.76
4.4.20.0050.0134.84
4.4.10.0020.0174.85
4.4.00.0030.0274.76
4.3.110.0040.0144.67
4.3.100.0040.0164.66
4.3.90.0010.0174.63
4.3.80.0030.0244.60
4.3.70.0030.0154.63
4.3.60.0050.0124.62
4.3.50.0030.0154.63
4.3.40.0030.0244.54
4.3.30.0020.0163.36
4.3.20.0030.0153.33
4.3.10.0020.0153.29
4.3.00.0000.02014.28