3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ( preg_match('/-?[\d]*\.?[\d]*/', "xxxx") ) { echo "OK: matches"; } else { echo "Bad: doesn't match"; exit(); }

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.1.100.0170.00718.12
7.1.70.0040.00417.11
7.1.60.0100.01419.46
7.1.50.0070.01116.92
7.1.00.0100.07022.47
7.0.200.0040.00416.61
7.0.140.0000.07321.95
7.0.60.0070.08319.94
7.0.50.0130.07317.79
7.0.40.0070.07720.41
7.0.30.0530.06720.11
7.0.20.0170.04020.14
7.0.10.0100.07320.21
7.0.00.0000.05320.05
5.6.280.0000.07321.04
5.6.210.0230.06320.46
5.6.200.0130.07718.16
5.6.190.0000.04320.60
5.6.180.0370.05020.46
5.6.170.0330.07320.49
5.6.160.0100.06720.48
5.6.150.0130.06318.21
5.6.140.0100.07018.13
5.6.130.0000.07318.21
5.6.120.0070.04020.79
5.6.110.0030.04321.01
5.6.100.0170.08021.07
5.6.90.0130.08320.97
5.6.80.0170.07320.41
5.5.350.0200.07720.38
5.5.340.0030.08717.88
5.5.330.0000.04320.20
5.5.320.0430.07020.18
5.5.310.0130.04320.32
5.5.300.0100.07717.98
5.5.290.0170.05317.88
5.5.280.0130.07020.86
5.5.270.0100.08020.73
5.5.260.0070.08020.75
5.5.250.0070.05320.71
5.5.240.0170.04720.28
5.4.450.0170.03719.41
5.4.440.0600.02319.41
5.4.430.0600.06319.13
5.4.420.0430.04019.56
5.4.410.0300.03719.27
5.4.400.0300.02319.13
5.4.390.0330.04719.06
5.4.380.0230.06018.73
5.4.370.0170.06318.76
5.4.360.0400.06018.67
5.4.350.0400.05318.70
5.4.340.0370.05318.79
5.4.320.0040.03712.45
5.4.310.0080.03712.45
5.4.300.0420.04512.45
5.4.290.0070.03912.45
5.4.280.0050.03812.35
5.4.270.0050.03912.35
5.4.260.0080.03812.35
5.4.250.0070.03812.34
5.4.240.0060.04412.35
5.4.230.0100.05712.34
5.4.220.0060.05812.34
5.4.210.0080.05412.34
5.4.200.0130.05712.34
5.4.190.0070.06012.34
5.4.180.0100.05712.33
5.4.170.0070.04912.35
5.4.160.0120.04812.34
5.4.150.0080.05012.34
5.4.140.0150.05612.02
5.4.130.0080.05112.01
5.4.120.0120.05011.97
5.4.110.0140.06211.96
5.4.100.0090.04311.96
5.4.90.0080.03811.96
5.4.80.0060.04811.96
5.4.70.0080.03911.96
5.4.60.0070.05211.96
5.4.50.0130.04711.96
5.4.40.0100.04811.95
5.4.30.0090.04611.95
5.4.20.0070.05911.95
5.4.10.0060.05511.95
5.4.00.0260.05811.43
5.3.290.0300.03812.80
5.3.280.0120.05712.71
5.3.270.0120.06612.73
5.3.260.0180.06712.72
5.3.250.0130.05312.71
5.3.240.0130.05412.72
5.3.230.0100.05112.71
5.3.220.0080.05512.68
5.3.210.0090.05712.68
5.3.200.0080.05112.68
5.3.190.0080.04312.68
5.3.180.0050.03912.68
5.3.170.0080.03612.67
5.3.160.0060.03812.68
5.3.150.0080.03912.68
5.3.140.0150.05612.66
5.3.130.0080.06512.66
5.3.120.0140.05812.66
5.3.110.0110.06512.65
5.3.100.0110.04812.11
5.3.90.0070.04612.08
5.3.80.0080.03712.07
5.3.70.0120.03712.08
5.3.60.0040.04012.07
5.3.50.0070.03812.00
5.3.40.0090.03712.00
5.3.30.0090.03411.94
5.3.20.0080.03511.72
5.3.10.0120.04311.69
5.3.00.0080.04611.68
5.2.170.0070.0519.18
5.2.160.0080.0309.18
5.2.150.0030.0359.18
5.2.140.0060.0309.18
5.2.130.0050.0319.13
5.2.120.0090.0269.13
5.2.110.0050.0319.14
5.2.100.0080.0279.14
5.2.90.0050.0319.13
5.2.80.0060.0359.13
5.2.70.0050.0319.13
5.2.60.0100.0279.09
5.2.50.0050.0359.05
5.2.40.0080.0419.04
5.2.30.0090.0429.01
5.2.20.0070.0339.00
5.2.10.0040.0438.92
5.2.00.0070.0438.77
5.1.60.0040.0278.06
5.1.50.0060.0288.05
5.1.40.0130.0398.04
5.1.30.0070.0418.39
5.1.20.0120.0388.41
5.1.10.0050.0368.14
5.1.00.0040.0398.14
5.0.50.0030.0246.61
5.0.40.0080.0356.47
5.0.30.0050.0406.28
5.0.20.0040.0206.26
5.0.10.0050.0206.23
5.0.00.0040.0326.22
4.4.90.0020.0184.78
4.4.80.0040.0154.76
4.4.70.0030.0164.76
4.4.60.0030.0164.75
4.4.50.0020.0164.77
4.4.40.0030.0294.71
4.4.30.0020.0164.76
4.4.20.0010.0184.84
4.4.10.0080.0114.85
4.4.00.0020.0264.76
4.3.110.0040.0154.67
4.3.100.0030.0154.67
4.3.90.0020.0164.63
4.3.80.0010.0274.58
4.3.70.0040.0154.63
4.3.60.0030.0154.63
4.3.50.0040.0164.63
4.3.40.0040.0274.53
4.3.30.0030.0153.28
4.3.20.0020.0163.25
4.3.10.0020.0163.22
4.3.00.0130.01716.15