3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php printf("%-f.2", -0.0);

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.0rc40.0120.01298.97
7.3.0rc30.0180.00716.59
7.3.0beta10.0150.00012.45
7.3.0alpha10.0030.00612.46
7.2.60.0130.00016.52
7.2.00.0210.00719.17
7.1.200.0090.00315.68
7.1.100.0060.00317.95
7.1.70.0030.00717.07
7.1.60.0200.00319.70
7.1.50.0040.00716.86
7.1.00.0030.07722.44
7.0.200.0730.00314.64
7.0.140.0000.07022.08
7.0.60.0130.08019.89
7.0.50.0000.09017.77
7.0.40.0170.08020.23
7.0.30.0170.05020.34
7.0.20.0230.04320.33
7.0.10.0030.06320.00
7.0.00.0130.07720.09
5.6.280.0100.08721.10
5.6.210.0070.08020.49
5.6.200.0100.06318.11
5.6.190.0030.07320.43
5.6.180.0000.04020.45
5.6.170.0370.05320.42
5.6.160.0130.08020.37
5.6.150.0000.05718.27
5.6.140.0100.07018.21
5.6.130.0030.05718.14
5.6.120.0030.04320.89
5.6.110.0070.08021.09
5.6.100.0070.08321.08
5.6.90.0070.08721.09
5.6.80.0000.06720.52
5.6.70.4100.03720.36
5.5.350.0130.07320.40
5.5.340.0070.08018.02
5.5.330.0100.08020.19
5.5.320.0370.04720.28
5.5.310.0270.04320.23
5.5.300.0070.07717.91
5.5.290.0000.04318.02
5.5.280.0000.04320.89
5.5.270.0030.05720.79
5.5.260.0170.04720.79
5.5.250.0070.08020.68
5.5.240.0070.05020.28
5.4.450.0500.04319.41
5.4.440.0470.04719.56
5.4.430.0170.04019.43
5.4.420.0070.04719.41
5.4.410.0570.02719.36
5.4.400.0470.02319.22
5.4.390.0300.04045.03
5.4.380.0170.06318.68
5.4.370.0130.05318.66
5.4.360.0070.05718.48
5.4.350.0130.05718.66
5.4.340.0200.04718.68
5.4.320.0060.04412.45
5.4.310.0040.04012.45
5.4.300.0050.03712.45
5.4.290.0050.03912.45
5.4.280.0040.03712.35
5.4.270.0040.03812.35
5.4.260.0090.03412.35
5.4.250.0040.03912.35
5.4.240.0060.03612.34
5.4.230.0050.03912.34
5.4.220.0050.03712.34
5.4.210.0060.04012.34
5.4.200.0100.04812.34
5.4.190.0070.04512.33
5.4.180.0060.03812.33
5.4.170.0040.03912.35
5.4.160.0040.04012.34
5.4.150.0090.03412.34
5.4.140.0070.03612.02
5.4.130.0070.03412.01
5.4.120.0100.04511.97
5.4.110.0060.03611.96
5.4.100.0060.03511.97
5.4.90.0060.03611.96
5.4.80.0070.03511.96
5.4.70.0070.03411.96
5.4.60.0070.03411.96
5.4.50.0050.03711.96
5.4.40.0030.03811.95
5.4.30.0070.03511.95
5.4.20.0090.03711.95
5.4.10.0050.03711.95
5.4.00.0080.03511.44
5.3.290.0060.03912.80
5.3.280.0050.03812.71
5.3.270.0080.04612.72
5.3.260.0030.04112.72
5.3.250.0060.03712.72
5.3.240.0090.03312.72
5.3.230.0090.03412.71
5.3.220.0070.03612.68
5.3.210.0070.03712.68
5.3.200.0070.03512.68
5.3.190.0040.03912.68
5.3.180.0060.03612.68
5.3.170.0070.03612.67
5.3.160.0100.03312.67
5.3.150.0060.03812.67
5.3.140.0080.03512.66
5.3.130.0060.04012.66
5.3.120.0080.03712.66
5.3.110.0070.03812.66
5.3.100.0070.03612.11
5.3.90.0050.03912.09
5.3.80.0030.03912.08
5.3.70.0060.03612.07
5.3.60.0080.03412.06
5.3.50.0080.03312.00
5.3.40.0050.03712.00
5.3.30.0070.03511.94
5.3.20.0060.03611.73
5.3.10.0080.03511.69
5.3.00.0030.03911.68
5.2.170.0080.0279.18
5.2.160.0070.0269.18
5.2.150.0050.0309.18
5.2.140.0030.0329.18
5.2.130.0040.0309.13
5.2.120.0050.0289.14
5.2.110.0060.0389.14
5.2.100.0050.0289.14
5.2.90.0030.0359.14
5.2.80.0050.0309.14
5.2.70.0040.0339.13
5.2.60.0060.0299.09
5.2.50.0030.0329.05
5.2.40.0050.0299.04
5.2.30.0040.0309.01
5.2.20.0030.0319.00
5.2.10.0070.0258.92
5.2.00.0020.0318.78
5.1.60.0010.0278.06
5.1.50.0030.0258.06
5.1.40.0030.0258.05
5.1.30.0010.0298.39
5.1.20.0050.0258.42
5.1.10.0060.0248.14
5.1.00.0030.0298.14
5.0.50.0030.0216.62
5.0.40.0030.0196.47
5.0.30.0070.0306.29
5.0.20.0040.0216.27
5.0.10.0040.0196.24
5.0.00.0020.0326.23
4.4.90.0040.0144.78
4.4.80.0030.0154.76
4.4.70.0040.0144.76
4.4.60.0020.0174.76
4.4.50.0040.0144.77
4.4.40.0030.0254.70
4.4.30.0040.0144.76
4.4.20.0010.0174.85
4.4.10.0010.0174.85
4.4.00.0050.0284.76
4.3.110.0030.0164.67
4.3.100.0030.0144.67
4.3.90.0020.0154.63
4.3.80.0050.0224.58
4.3.70.0020.0154.63
4.3.60.0020.0164.63
4.3.50.0040.0144.63
4.3.40.0040.0234.54
4.3.30.0040.0143.29
4.3.20.0030.0153.27
4.3.10.0010.0163.22
4.3.00.0030.01343.94