3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "sdsd"; echo !preg_match('/^\S$/',$a);

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.0170.00798.97
7.3.0rc30.0110.00416.44
7.3.0beta10.0100.00512.66
7.2.00.0000.01419.62
7.1.200.0040.00416.04
7.1.100.0040.00717.79
7.1.70.0040.00717.42
7.1.60.0070.00719.40
7.1.50.0070.01717.00
7.1.00.0070.07322.46
7.0.200.0040.00816.96
7.0.140.0070.07022.07
7.0.60.0030.08319.77
7.0.50.0030.04017.88
7.0.40.0070.09020.42
7.0.30.0300.05320.19
7.0.20.0230.05720.19
7.0.10.0030.04720.18
7.0.00.0100.06020.21
5.6.280.0030.07020.98
5.6.210.0030.09020.52
5.6.200.0000.05318.21
5.6.190.0100.07720.61
5.6.180.0230.04020.63
5.6.170.0170.07320.41
5.6.160.0170.07320.52
5.6.150.0000.06018.21
5.6.140.0130.07018.11
5.6.130.0070.04718.11
5.6.120.0100.06021.09
5.6.110.0070.06721.12
5.6.100.0100.05021.01
5.6.90.0070.08721.02
5.6.80.0030.07320.39
5.5.350.0000.08020.41
5.5.340.0070.07717.97
5.5.330.0100.03720.21
5.5.320.0070.03720.34
5.5.310.0200.04720.21
5.5.300.0030.05717.98
5.5.290.0070.07717.95
5.5.280.0030.08720.89
5.5.270.0200.07720.72
5.5.260.0070.07320.74
5.5.250.0100.08020.70
5.5.240.0230.07020.18
5.4.450.0470.04719.27
5.4.440.0300.04019.11
5.4.430.0200.04319.25
5.4.420.0300.05019.57
5.4.410.0370.03719.45
5.4.400.0770.05018.92
5.4.390.1070.03719.16
5.4.380.0770.07718.51
5.4.370.1130.05718.48
5.4.360.0970.06718.66
5.4.350.0770.08018.52
5.4.340.0970.08318.68
5.4.320.0070.03412.45
5.4.310.0040.04012.45
5.4.300.0070.03512.45
5.4.290.0080.03512.45
5.4.280.0060.03512.35
5.4.270.0040.03912.34
5.4.260.0070.04512.35
5.4.250.0050.03812.34
5.4.240.0040.03812.35
5.4.230.0060.04012.34
5.4.220.0080.03412.34
5.4.210.0060.03512.34
5.4.200.0080.03612.34
5.4.190.0040.03912.34
5.4.180.0050.03712.34
5.4.170.0060.03512.35
5.4.160.0040.03812.34
5.4.150.0060.03612.34
5.4.140.0140.03712.02
5.4.130.0060.03512.01
5.4.120.0040.03711.97
5.4.110.0080.03411.96
5.4.100.0060.04311.96
5.4.90.0100.04511.96
5.4.80.0120.04211.96
5.4.70.0080.04111.96
5.4.60.0060.03411.96
5.4.50.0060.03711.96
5.4.40.0070.03811.95
5.4.30.0040.03811.95
5.4.20.0080.03311.94
5.4.10.0070.03711.95
5.4.00.0110.03611.43
5.3.290.0150.03212.80
5.3.280.0060.04312.71
5.3.270.0090.03512.73
5.3.260.0060.03912.72
5.3.250.0050.04612.71
5.3.240.0070.04112.72
5.3.230.0060.03712.70
5.3.220.0080.03412.68
5.3.210.0060.03912.68
5.3.200.0070.03612.68
5.3.190.0060.03812.68
5.3.180.0070.03612.68
5.3.170.0090.03312.67
5.3.160.0070.03512.67
5.3.150.0050.04012.68
5.3.140.0080.03412.66
5.3.130.0100.03412.66
5.3.120.0050.03912.66
5.3.110.0070.03712.66
5.3.100.0060.03612.12
5.3.90.0070.03512.09
5.3.80.0060.03512.08
5.3.70.0070.04012.07
5.3.60.0070.03512.06
5.3.50.0060.03712.00
5.3.40.0080.03512.00
5.3.30.0040.03611.94
5.3.20.0060.03511.72
5.3.10.0050.03511.69
5.3.00.0030.03811.67
5.2.170.0050.0309.18
5.2.160.0060.0279.17
5.2.150.0050.0309.18
5.2.140.0050.0309.17
5.2.130.0050.0319.13
5.2.120.0070.0269.13
5.2.110.0050.0289.14
5.2.100.0030.0309.13
5.2.90.0070.0269.14
5.2.80.0060.0299.13
5.2.70.0010.0359.13
5.2.60.0040.0309.08
5.2.50.0060.0289.06
5.2.40.0070.0279.04
5.2.30.0050.0309.01
5.2.20.0060.0279.00
5.2.10.0050.0278.91
5.2.00.0050.0288.77
5.1.60.0060.0228.06
5.1.50.0050.0288.06
5.1.40.0040.0248.04
5.1.30.0050.0278.39
5.1.20.0060.0298.41
5.1.10.0080.0228.14
5.1.00.0010.0328.14
5.0.50.0010.0256.61
5.0.40.0060.0166.47
5.0.30.0030.0316.29
5.0.20.0040.0186.26
5.0.10.0040.0196.23
5.0.00.0080.0276.22
4.4.90.0030.0174.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0040.0144.75
4.4.50.0030.0144.77
4.4.40.0050.0234.71
4.4.30.0020.0164.76
4.4.20.0020.0164.85
4.4.10.0040.0144.85
4.4.00.0020.0254.76
4.3.110.0040.0144.67
4.3.100.0020.0154.66
4.3.90.0040.0134.64
4.3.80.0030.0244.58
4.3.70.0010.0164.63
4.3.60.0030.0144.62
4.3.50.0030.0154.63
4.3.40.0040.0224.53
4.3.30.0030.0153.28
4.3.20.0040.0133.25
4.3.10.0010.0173.22
4.3.00.0200.01715.97