3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php # URL that generated this code: # http://txt2re.com/index-php.php3?s=directv%20-%20some%20stuff%20hereHR34NC-5001nc&26&28&54&55&-62&56&51&52 $txt='directv - some stuff here 7H34-200nc'; $re='.*?([a-z]?[a-z]\\d\\d).*?((-\\d\\d\\d)?)'; if ($c=preg_match_all ("/".$re."/is", $txt, $matches)) { $w1=$matches[1][0]; $w2=$matches[2][0]; print "$w1$w2\n"; }

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.00.0070.00716.79
7.2.130.0080.00416.86
7.2.120.0080.00417.07
7.2.110.0040.00916.73
7.2.100.0070.00716.45
7.2.90.0060.00616.85
7.2.80.0070.01017.06
7.2.70.0030.01316.78
7.2.60.0070.01016.95
7.2.50.0060.00617.02
7.2.40.0070.00717.09
7.2.30.0030.00917.09
7.2.20.0110.00017.00
7.2.10.0060.00617.00
7.2.00.0070.01018.18
7.1.250.0070.00715.84
7.1.240.0030.00515.78
7.1.230.0140.00015.92
7.1.220.0110.00415.87
7.1.210.0070.00315.69
7.1.200.0070.00715.98
7.1.190.0060.00615.81
7.1.180.0070.01015.66
7.1.170.0130.00015.93
7.1.160.0060.00315.83
7.1.150.0070.01015.80
7.1.140.0080.00415.66
7.1.130.0060.00615.81
7.1.120.0060.01015.99
7.1.110.0000.01215.84
7.1.100.0100.00517.23
7.1.90.0070.00716.11
7.1.80.0030.01015.87
7.1.70.0040.00416.75
7.1.60.0120.00717.68
7.1.50.0100.00716.57
7.1.40.0030.00716.05
7.1.30.0070.00716.00
7.1.20.0060.00316.10
7.1.10.0030.00915.89
7.1.00.0050.04219.24
7.0.330.0060.00615.41
7.0.320.0060.00915.32
7.0.310.0040.00715.10
7.0.300.0070.00715.72
7.0.290.0040.00815.65
7.0.280.0030.00715.35
7.0.270.0030.00915.75
7.0.260.0060.00915.71
7.0.250.0050.00515.73
7.0.240.0030.00915.36
7.0.230.0060.00615.74
7.0.220.0120.00315.71
7.0.210.0030.01015.70
7.0.200.0020.00816.34
7.0.190.0060.00615.48
7.0.180.0060.00315.72
7.0.170.0040.01115.45
7.0.160.0040.00415.84
7.0.150.0000.00815.69
7.0.140.0030.04018.95
7.0.130.0060.00915.41
7.0.120.0110.00415.74
7.0.110.0000.01315.45
7.0.100.0020.05317.76
7.0.90.0080.04217.77
7.0.80.0120.02517.84
7.0.70.0060.04817.74
7.0.60.0050.04517.75
7.0.50.0080.04118.15
7.0.40.0090.02716.72
7.0.30.0030.04616.75
7.0.20.0050.04816.73
7.0.10.0140.03816.60
7.0.00.0050.04516.89
5.6.380.0030.01014.67
5.6.370.0070.00714.58
5.6.360.0040.00814.10
5.6.350.0030.00914.34
5.6.340.0000.01614.32
5.6.330.0030.00614.25
5.6.320.0060.00614.36
5.6.310.0070.00714.34
5.6.300.0000.01414.44
5.6.290.0040.01114.38
5.6.280.0020.05117.88
5.6.270.0080.00314.61
5.6.260.0030.01014.56
5.6.250.0070.03717.48
5.6.240.0050.04217.56
5.6.230.0080.04017.55
5.6.220.0120.03817.72
5.6.210.0120.03517.43
5.6.200.0080.02817.77
5.6.190.0020.04717.73
5.6.180.0050.04217.70
5.6.170.0070.04517.73
5.6.160.0020.02917.84
5.6.150.0080.04317.70
5.6.140.0030.05017.73
5.6.130.0090.04217.75
5.6.120.0050.03217.63
5.6.110.0100.04117.64
5.6.100.0130.03817.73
5.6.90.0060.02317.87
5.6.80.0090.03117.42
5.6.70.0080.04317.41
5.6.60.0030.04317.46
5.6.50.0050.03817.46
5.6.40.0050.04317.50
5.6.30.0050.03617.37
5.6.20.0020.02917.42
5.6.10.0070.03717.51
5.6.00.0030.04117.39
5.5.380.0070.04215.83
5.5.370.0080.04015.82
5.5.360.0050.04215.81
5.5.350.0020.04815.78
5.5.340.0100.03816.03
5.5.330.0050.03715.93
5.5.320.0110.03816.00
5.5.310.0090.03915.89
5.5.300.0030.02916.04
5.5.290.0060.03516.14
5.5.280.0020.04716.00
5.5.270.0020.04316.08
5.5.260.0060.04516.01
5.5.250.0080.02515.89
5.5.240.0020.04415.71
5.5.230.0050.04315.64
5.5.220.0080.04015.66
5.5.210.0070.04015.72
5.5.200.0050.04015.65
5.5.190.0030.03515.66
5.5.180.0060.04015.69
5.5.170.0000.00711.18
5.5.160.0020.02915.71
5.5.150.0050.03015.66
5.5.140.0090.03515.71
5.5.130.0050.04115.64
5.5.120.0070.03815.72
5.5.110.0100.03215.71
5.5.100.0080.03815.79
5.5.90.0130.03515.67
5.5.80.0090.03815.62
5.5.70.0090.03215.57
5.5.60.0030.04315.63
5.5.50.0050.02715.62
5.5.40.0040.02715.62
5.5.30.0080.03315.59
5.5.20.0050.03815.59
5.5.10.0030.04715.62
5.5.00.0090.02915.61
5.4.450.0090.03615.43
5.4.440.0100.02115.38
5.4.430.0060.04115.36
5.4.420.0030.04115.33
5.4.410.0030.02815.16
5.4.400.0030.04315.07
5.4.390.0080.03015.15
5.4.380.0110.02015.10
5.4.370.0050.02415.10
5.4.360.0080.02215.04
5.4.350.0080.02215.12
5.4.340.0050.02515.15
5.4.330.0030.00711.18
5.4.320.0030.04215.11
5.4.310.0070.03814.99
5.4.300.0050.03015.12
5.4.290.0080.03215.12
5.4.280.0040.02515.05
5.4.270.0100.03415.11
5.4.260.0070.03815.11
5.4.250.0020.02715.04
5.4.240.0050.04115.07
5.4.230.0050.04015.07
5.4.220.0080.03815.15
5.4.210.0030.03715.12
5.4.200.0020.04215.10
5.4.190.0070.03715.15
5.4.180.0030.04315.13
5.4.170.0110.03015.03
5.4.160.0030.03815.19
5.4.150.0020.02815.04
5.4.140.0030.03813.61
5.4.130.0070.03713.80
5.4.120.0070.02513.73
5.4.110.0030.04013.77
5.4.100.0030.02713.73
5.4.90.0050.03513.87
5.4.80.0070.03213.70
5.4.70.0070.03513.77
5.4.60.0060.02113.73
5.4.50.0060.03813.76
5.4.40.0020.04113.79
5.4.30.0030.04213.78
5.4.20.0020.04113.79
5.4.10.0110.03013.70
5.4.00.0050.02113.48
5.3.290.0030.04112.90
5.3.280.0080.04012.86
5.3.270.0020.02912.89
5.3.260.0080.03512.88
5.3.250.0030.04112.82
5.3.240.0040.04412.88
5.3.230.0080.03512.87
5.3.220.0080.02612.79
5.3.210.0040.04212.85
5.3.200.0070.03412.84
5.3.190.0050.04212.87
5.3.180.0030.03812.82
5.3.170.0050.02812.80
5.3.160.0100.03212.78
5.3.150.0090.02812.80
5.3.140.0000.04412.83
5.3.130.0070.03612.83
5.3.120.0050.03912.84
5.3.110.0050.04012.79
5.3.100.0050.03512.58
5.3.90.0030.04212.57
5.3.80.0070.03712.53
5.3.70.0020.02412.59
5.3.60.0020.02812.56
5.3.50.0090.03512.45
5.3.40.0050.02812.51
5.3.30.0030.03812.42
5.3.20.0060.03812.40
5.3.10.0030.03212.38
5.3.00.0070.03712.39
5.2.170.0000.02711.79
5.2.160.0040.03511.79
5.2.150.0060.03111.79
5.2.140.0080.02211.79
5.2.130.0050.02711.79
5.2.120.0070.03011.79
5.2.110.0050.02811.79
5.2.100.0000.03411.79
5.2.90.0030.02711.79
5.2.80.0030.02211.79
5.2.70.0020.01711.79
5.2.60.0020.02311.79
5.2.50.0040.02311.79
5.2.40.0030.01911.79
5.2.30.0050.04011.79
5.2.20.0040.02811.79
5.2.10.0040.02911.79
5.2.00.0000.03411.79
5.1.60.0000.02611.79
5.1.50.0020.01811.79
5.1.40.0040.02911.79
5.1.30.0050.02111.79
5.1.20.0020.03011.79
5.1.10.0040.02911.79
5.1.00.0030.02511.79
5.0.50.0050.01111.79
5.0.40.0030.01311.79
5.0.30.0020.02311.79
5.0.20.0050.01911.79
5.0.10.0030.01211.79
5.0.00.0050.03211.79
4.4.90.0040.01211.79
4.4.80.0000.02011.79
4.4.70.0060.01011.79
4.4.60.0030.01411.79
4.4.50.0050.01511.79
4.4.40.0020.02311.79
4.4.30.0000.02111.79
4.4.20.0020.01311.79
4.4.10.0040.01011.79
4.4.00.0030.02511.79
4.3.110.0020.01811.79
4.3.100.0020.01211.79
4.3.90.0000.01511.79
4.3.80.0030.01611.79
4.3.70.0020.01711.79
4.3.60.0020.00811.79
4.3.50.0000.01011.79
4.3.40.0030.02211.79
4.3.30.0020.01611.79
4.3.20.0000.01311.79
4.3.10.0030.01011.79
4.3.00.0030.01811.79