3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $query = "-exclude -\"exclude phrase\" \"phrase 1\" keyword +k:v -k2:v2 +\"q kw\":2"; $ATOM_REGEX = '"[^"]+"|[^"\s]+'; "?> atomic group"; preg_match_all("/(?>(?P<flag>[-+])?(?P<key>$ATOM_REGEX:)?(?P<value>$ATOM_REGEX))/", $query, $match, PREG_SET_ORDER); print_r($match);

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.70.0050.00517.34
7.1.60.0030.02119.70
7.1.50.0070.01616.99
7.1.00.0070.07322.43
7.0.200.0040.00816.42
7.0.140.0030.06721.98
7.0.60.0130.07019.89
7.0.50.0030.07017.98
7.0.40.0030.05320.16
7.0.30.0500.03020.25
7.0.20.0370.07020.28
7.0.10.0330.08320.09
7.0.00.0070.04020.26
5.6.280.0130.06321.11
5.6.210.0130.07320.71
5.6.200.0070.07718.16
5.6.190.0030.06320.57
5.6.180.0030.04020.46
5.6.170.0230.08020.44
5.6.160.0100.08320.46
5.6.150.0030.04318.18
5.6.140.0100.07718.13
5.6.130.0030.05018.15
5.6.120.0070.04021.13
5.6.110.0070.08021.08
5.6.100.0030.08720.96
5.6.90.0170.07321.09
5.6.80.0170.07320.37
5.6.70.0200.04020.39
5.5.350.0030.07720.36
5.5.340.0070.08317.99
5.5.330.0070.08020.35
5.5.320.0230.08020.18
5.5.310.0330.07320.32
5.5.300.0100.07317.98
5.5.290.0000.09318.08
5.5.280.0070.05020.87
5.5.270.0030.07720.68
5.5.260.0070.04020.86
5.5.250.0030.08020.70
5.5.240.0130.05020.28
5.4.450.0200.04731.27
5.4.440.0200.04731.24
5.4.430.0330.03329.30
5.4.420.0370.04329.29
5.4.410.0200.04729.28
5.4.400.0200.04729.14
5.4.390.0270.03728.63
5.4.380.0170.05318.75
5.4.370.0200.05018.52
5.4.360.0170.04718.75
5.4.350.0200.05018.72
5.4.340.0200.05018.59
5.4.320.0070.03512.49
5.4.310.0080.03612.49
5.4.300.0090.03412.49
5.4.290.0080.04412.49
5.4.280.0120.03912.38
5.4.270.0100.03412.39
5.4.260.0070.04412.39
5.4.250.0050.04112.38
5.4.240.0080.04012.38
5.4.230.0100.03612.38
5.4.220.0060.03712.38
5.4.210.0060.04312.38
5.4.200.0060.04012.38
5.4.190.0070.03812.37
5.4.180.0070.03712.38
5.4.170.0080.04012.39
5.4.160.0070.03612.38
5.4.150.0130.03212.38
5.4.140.0080.03612.06
5.4.130.0070.03612.05
5.4.120.0020.04012.01
5.4.110.0060.03812.00
5.4.100.0060.04212.01
5.4.90.0050.04112.00
5.4.80.0070.03712.00
5.4.70.0070.04211.99
5.4.60.0070.03512.00
5.4.50.0090.03511.99
5.4.40.0090.03611.98
5.4.30.0060.03611.98
5.4.20.0080.04111.98
5.4.10.0070.03711.98
5.4.00.0060.04211.48
5.3.290.0100.04512.80
5.3.280.0070.03812.71
5.3.270.0080.03812.73
5.3.260.0090.03712.72
5.3.250.0070.03912.71
5.3.240.0120.03312.72
5.3.230.0100.04212.71
5.3.220.0110.04212.68
5.3.210.0100.03912.68
5.3.200.0120.03512.68
5.3.190.0100.04412.68
5.3.180.0080.03812.67
5.3.170.0100.03312.67
5.3.160.0050.03912.67
5.3.150.0100.03412.67
5.3.140.0090.03412.66
5.3.130.0080.03812.66
5.3.120.0090.04512.66
5.3.110.0070.04012.66
5.3.100.0120.03412.12
5.3.90.0130.04012.10
5.3.80.0090.03812.09
5.3.70.0070.04012.10
5.3.60.0080.04212.08
5.3.50.0100.04012.03
5.3.40.0070.03912.03
5.3.30.0120.03611.98
5.3.20.0100.03611.77
5.3.10.0100.03211.73
5.3.00.0130.03211.72
5.2.170.0090.0319.23
5.2.160.0060.0299.22
5.2.150.0080.0289.23
5.2.140.0060.0309.22
5.2.130.0070.0379.18
5.2.120.0060.0289.18
5.2.110.0060.0289.19
5.2.100.0040.0309.18
5.2.90.0100.0269.18
5.2.80.0080.0299.18
5.2.70.0040.0349.18
5.2.60.0060.0309.13
5.2.50.0050.0319.10
5.2.40.0080.0279.08
5.2.30.0050.0319.06
5.2.20.0060.0299.05
5.2.10.0050.0308.96
5.2.00.0070.0288.82
5.1.60.0100.0268.09
5.1.50.0060.0268.08
5.1.40.0040.0258.06
5.1.30.0100.0258.41
5.1.20.0060.0268.43
5.1.10.0040.0338.16
5.1.00.0040.0298.16
5.0.50.0020.0236.63
5.0.40.0050.0196.50
5.0.30.0060.0296.31
5.0.20.0050.0186.29
5.0.10.0030.0256.26
5.0.00.0050.0366.25
4.4.90.0040.0164.78
4.4.80.0040.0204.75
4.4.70.0040.0154.75
4.4.60.0020.0174.76
4.4.50.0040.0184.77
4.4.40.0080.0284.71
4.4.30.0070.0234.76
4.4.20.0040.0194.84
4.4.10.0030.0184.85
4.4.00.0030.0264.76
4.3.110.0040.0164.67
4.3.100.0060.0134.66
4.3.90.0060.0124.63
4.3.80.0040.0244.59
4.3.70.0060.0224.63
4.3.60.0040.0194.63
4.3.50.0060.0174.62
4.3.40.0080.0274.54
4.3.30.0050.0183.30
4.3.20.0050.0133.29
4.3.10.0020.0203.23
4.3.00.0070.02026.63