3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php const VERSION_STAGE_MAP = [ 'alpha' => 1, 'beta' => 2, 'rc' => 3, ]; echo VERSION_STAGE_MAP['alpha'];
based on 6SoUP

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.0070.00716.48
7.3.0rc40.0170.00398.97
7.3.0rc30.0160.00016.19
7.3.0beta10.0030.00312.32
7.3.0alpha10.0000.00812.67
7.2.60.0070.00716.60
7.2.00.0000.01219.42
7.1.200.0000.01115.61
7.1.100.0040.00818.16
7.1.70.0000.00816.75
7.1.60.0170.00719.32
7.1.50.0120.00916.74
7.1.00.0070.07322.46
7.0.200.0030.00516.61
7.0.140.0030.07321.99
7.0.60.0130.08021.73
7.0.50.0130.07717.87
7.0.40.0100.08319.96
7.0.30.0230.04320.11
7.0.20.0200.04720.09
7.0.10.0070.06720.21
7.0.00.0130.04020.12
5.6.280.0030.07321.12
5.6.210.0070.06020.46
5.6.200.0070.08018.23
5.6.190.0070.06020.29
5.6.180.0270.04320.27
5.6.170.0100.04720.50
5.6.160.0070.03720.40
5.6.150.0000.04318.15
5.6.140.0030.08718.22
5.6.130.0100.05718.11
5.6.120.0000.05021.04
5.6.110.0070.04020.98
5.6.100.0070.08720.98
5.6.90.0030.05020.96
5.6.80.0130.08020.39
5.5.350.0270.08020.49
5.5.340.0000.09017.92
5.5.330.0070.04720.21
5.5.320.0230.03320.29
5.5.310.0300.07320.11
5.5.300.0030.08017.91
5.5.290.0070.08017.95
5.5.280.0100.06720.88
5.5.270.0100.03720.86
5.5.260.0130.07720.89
5.5.250.0100.07320.69
5.5.240.0300.06720.18
5.4.450.0370.06719.14
5.4.440.0600.05019.42
5.4.430.0770.04719.57
5.4.420.0670.00019.63
5.4.410.0670.00019.20
5.4.400.0630.00018.96
5.4.390.0630.00018.98
5.4.380.0630.00019.09
5.4.370.0630.00019.05
5.4.360.0600.00019.18
5.4.350.0630.00019.09
5.4.340.0080.03311.98
5.4.320.0070.03812.46
5.4.310.0080.04012.46
5.4.300.0050.03712.47
5.4.290.0040.03912.46
5.4.280.0110.03512.36
5.4.270.0060.03612.36
5.4.260.0050.03912.36
5.4.250.0050.03812.36
5.4.240.0050.03712.36
5.4.230.0030.04912.35
5.4.220.0060.04312.35
5.4.210.0080.03612.35
5.4.200.0120.04912.35
5.4.190.0040.04012.34
5.4.180.0030.04512.34
5.4.170.0070.03512.36
5.4.160.0060.04212.35
5.4.150.0050.03712.35
5.4.140.0030.03912.04
5.4.130.0050.03712.02
5.4.120.0070.03311.98
5.4.110.0070.03411.98
5.4.100.0070.03511.98
5.4.90.0070.04011.98
5.4.80.0100.03611.97
5.4.70.0080.03411.97
5.4.60.0090.03111.97
5.4.50.0080.03511.97
5.4.40.0050.03911.96
5.4.30.0050.03511.95
5.4.20.0050.04011.96
5.4.10.0090.03711.95
5.4.00.0060.03511.45
5.3.290.0050.04112.80
5.3.280.0060.03712.71
5.3.270.0090.04412.72
5.3.260.0070.04512.72
5.3.250.0070.03612.72
5.3.240.0030.04012.72
5.3.230.0090.03412.71
5.3.220.0100.03512.68
5.3.210.0080.03612.68
5.3.200.0080.03512.68
5.3.190.0090.03412.67
5.3.180.0070.03512.67
5.3.170.0060.03612.67
5.3.160.0050.03912.67
5.3.150.0090.03712.68
5.3.140.0060.04112.66
5.3.130.0100.03812.66
5.3.120.0060.04912.66
5.3.110.0070.04312.66
5.3.100.0040.03812.12
5.3.90.0020.04012.09
5.3.80.0040.03912.07
5.3.70.0090.03312.07
5.3.60.0060.03512.06
5.3.50.0050.03712.00
5.3.40.0060.03612.00
5.3.30.0110.03211.95
5.3.20.0070.03611.72
5.3.10.0070.03811.70
5.3.00.0070.04311.68
5.2.170.0060.0319.18
5.2.160.0020.0319.18
5.2.150.0100.0279.18
5.2.140.0040.0309.18
5.2.130.0060.0319.14
5.2.120.0060.0279.14
5.2.110.0060.0289.15
5.2.100.0050.0279.14
5.2.90.0040.0309.14
5.2.80.0030.0309.14
5.2.70.0030.0309.14
5.2.60.0010.0329.09
5.2.50.0040.0389.05
5.2.40.0030.0319.04
5.2.30.0020.0399.02
5.2.20.0040.0329.00
5.2.10.0030.0288.92
5.2.00.0020.0318.78
5.1.60.0030.0248.07
5.1.50.0050.0258.06
5.1.40.0040.0248.05
5.1.30.0030.0268.40
5.1.20.0030.0268.42
5.1.10.0040.0258.14
5.1.00.0040.0248.14
5.0.50.0030.0206.62
5.0.40.0020.0216.48
5.0.30.0020.0316.30
5.0.20.0030.0196.26
5.0.10.0030.0196.23
5.0.00.0050.0286.23
4.4.90.0020.0154.78
4.4.80.0030.0144.75
4.4.70.0040.0184.76
4.4.60.0040.0174.75
4.4.50.0030.0194.77
4.4.40.0010.0254.71
4.4.30.0020.0154.76
4.4.20.0000.0174.84
4.4.10.0030.0214.85
4.4.00.0030.0354.76
4.3.110.0020.0184.67
4.3.100.0030.0164.67
4.3.90.0050.0124.64
4.3.80.0010.0254.58
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0020.0244.54
4.3.30.0020.0153.28
4.3.20.0010.0173.26
4.3.10.0030.0143.21
4.3.00.0030.02312.63