3v4l.org

run code in 300+ PHP versions simultaneously
<?php # URL that generated this code: # http://txt2re.com/index-php.php3?s=directv%20HR24NC-500nc&18&20&32&33&-36&34&30&31&12&7&6 $txt='HR24-500'; $re1='.*?'; # Non-greedy match on filler $re2='(?:[a-z][a-z]+)'; # Uninteresting: word $re3='.*?'; # Non-greedy match on filler $re4='((?:[a-z][a-z]+))'; # Word 1 $re5='(\\d+)'; # Integer Number 1 $re6='(\\d)'; # Any Single Digit 1 $re7='(\\d)'; # Any Single Digit 2 $re8='.*?'; # Non-greedy match on filler $re9='(-)'; # Any Single Character 1 $re10='(\\d+)'; # Integer Number 2 $re11='(\\d)'; # Any Single Digit 3 $re12='(\\d)'; # Any Single Digit 4 if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6.$re7.$re8.$re9.$re10.$re11.$re12."/is", $txt, $matches)) { $word1=$matches[1][0]; $int1=$matches[2][0]; $d1=$matches[3][0]; $d2=$matches[4][0]; $c1=$matches[5][0]; $int2=$matches[6][0]; $d3=$matches[7][0]; $d4=$matches[8][0]; print "($word1) ($int1) ($d1) ($d2) ($c1) ($int2) ($d3) ($d4) \n"; }else{ echo "no 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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0040.01118.68
8.3.50.0100.00722.18
8.3.40.0080.00818.77
8.3.30.0110.00418.92
8.3.20.0080.00020.29
8.3.10.0000.00823.53
8.3.00.0090.00019.63
8.2.180.0180.00416.75
8.2.170.0090.00622.96
8.2.160.0070.00720.47
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00422.33
8.2.110.0060.00322.39
8.2.100.0120.00019.70
8.2.90.0000.00919.17
8.2.80.0000.00917.97
8.2.70.0030.00617.59
8.2.60.0060.00317.80
8.2.50.0090.00018.07
8.2.40.0000.00819.87
8.2.30.0070.00018.10
8.2.20.0040.00417.77
8.2.10.0000.00718.17
8.2.00.0000.00717.93
8.1.280.0150.00625.92
8.1.270.0080.00023.65
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00623.89
8.1.230.0060.00619.14
8.1.220.0080.00017.77
8.1.210.0040.00418.77
8.1.200.0060.00317.50
8.1.190.0080.00017.38
8.1.180.0030.00718.83
8.1.170.0030.00518.66
8.1.160.0040.00421.97
8.1.150.0000.00718.79
8.1.140.0030.00517.49
8.1.130.0070.00017.91
8.1.120.0000.00817.63
8.1.110.0040.00417.52
8.1.100.0060.00317.62
8.1.90.0000.00717.62
8.1.80.0000.00817.51
8.1.70.0000.00817.57
8.1.60.0000.00917.75
8.1.50.0000.00917.58
8.1.40.0000.00817.68
8.1.30.0030.00517.67
8.1.20.0040.00417.71
8.1.10.0040.00417.64
8.1.00.0030.00617.57
8.0.300.0070.00018.77
8.0.290.0000.00717.30
8.0.280.0030.00318.54
8.0.270.0050.00217.20
8.0.260.0030.00317.31
8.0.250.0030.00317.09
8.0.240.0000.00717.14
8.0.230.0030.00317.07
8.0.220.0050.00217.06
8.0.210.0000.00816.94
8.0.200.0000.00717.10
8.0.190.0030.00517.09
8.0.180.0040.00417.11
8.0.170.0040.00417.04
8.0.160.0040.00417.04
8.0.150.0040.00416.89
8.0.140.0060.00517.01
8.0.130.0030.00313.47
8.0.120.0000.00816.91
8.0.110.0040.00416.88
8.0.100.0040.00417.11
8.0.90.0040.00417.02
8.0.80.0120.00617.00
8.0.70.0000.00717.06
8.0.60.0000.00817.04
8.0.50.0000.00816.92
8.0.30.0120.00917.17
8.0.20.0060.01317.47
8.0.10.0000.00817.16
8.0.00.0090.00816.92
7.4.330.0060.00015.00
7.4.320.0040.00416.73
7.4.300.0030.00316.79
7.4.290.0070.00016.80
7.4.280.0090.00016.83
7.4.270.0050.00316.83
7.4.260.0030.00316.71
7.4.250.0070.00016.60
7.4.240.0050.00316.77
7.4.230.0070.00016.47
7.4.220.0090.00916.84
7.4.210.0070.01116.80
7.4.200.0040.00416.77
7.4.190.0070.00016.81
7.4.160.0050.01016.59
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0120.01016.64
7.4.120.0070.00916.55
7.4.110.0100.00716.71
7.4.100.0120.00616.57
7.4.90.0080.00916.46
7.4.80.0150.00619.39
7.4.70.0060.01716.64
7.4.60.0030.01416.78
7.4.50.0060.00016.77
7.4.40.0120.00416.58
7.4.30.0030.01316.49
7.4.10.0030.01415.23
7.4.00.0100.00714.93
7.3.330.0000.00613.30
7.3.320.0030.00313.14
7.3.310.0020.00516.29
7.3.300.0000.00716.39
7.3.290.0050.00916.37
7.3.280.0050.01116.45
7.3.270.0030.01317.40
7.3.260.0130.00316.45
7.3.250.0150.00516.44
7.3.240.0120.00616.74
7.3.230.0110.00616.57
7.3.210.0080.01116.55
7.3.200.0040.01419.39
7.3.190.0130.00316.83
7.3.180.0090.00916.48
7.3.170.0090.01316.47
7.3.160.0080.00816.52
7.3.130.0090.00914.75
7.3.120.0060.01015.14
7.3.110.0070.00914.88
7.3.100.0080.00614.99
7.3.90.0060.00615.04
7.3.80.0030.01014.80
7.3.70.0100.00014.91
7.3.60.0040.00615.11
7.3.50.0050.00914.99
7.3.40.0060.00814.89
7.3.30.0070.00514.76
7.3.20.0060.00916.87
7.3.10.0080.00816.84
7.3.00.0040.00816.73
7.2.330.0070.01716.78
7.2.320.0000.01816.88
7.2.310.0090.00916.73
7.2.300.0120.00616.86
7.2.290.0090.00916.84
7.2.260.0070.01315.09
7.2.250.0070.00915.37
7.2.240.0080.01015.25
7.2.230.0030.00815.21
7.2.220.0080.00715.33
7.2.210.0050.00815.39
7.2.200.0090.00715.19
7.2.190.0050.00615.24
7.2.180.0040.01015.13
7.2.170.0040.00615.28
7.2.160.0040.01515.43
7.2.150.0060.00917.22
7.2.140.0100.00317.13
7.2.130.0030.01016.99
7.2.120.0060.01016.85
7.2.110.0090.00917.24
7.2.100.0080.00316.90
7.2.90.0060.01117.07
7.2.80.0060.00617.07
7.2.70.0120.00317.30
7.2.60.0060.00916.92
7.2.50.0080.00317.12
7.2.40.0060.01016.84
7.2.30.0070.00717.20
7.2.20.0040.00817.16
7.2.10.0040.01117.04
7.2.00.0090.00518.43
7.1.330.0040.00915.75
7.1.320.0070.00815.75
7.1.310.0020.00915.95
7.1.300.0060.00815.86
7.1.290.0080.00316.11
7.1.280.0030.01215.89
7.1.270.0060.00715.89
7.1.260.0070.00416.10
7.1.250.0110.00315.79
7.1.240.0030.01115.59
7.1.230.0080.00615.91
7.1.220.0070.00716.00
7.1.210.0070.00415.76
7.1.200.0110.00415.72
7.1.190.0070.00715.93
7.1.180.0100.00715.98
7.1.170.0090.00315.50
7.1.160.0070.00715.91
7.1.150.0030.00816.11
7.1.140.0040.00816.09
7.1.130.0030.01115.94
7.1.120.0070.00715.91
7.1.110.0100.00316.09
7.1.100.0030.00917.16
7.1.90.0000.01415.96
7.1.80.0030.01215.64
7.1.70.0090.00416.69
7.1.60.0100.00917.80
7.1.50.0070.00916.56
7.1.40.0070.00316.08
7.1.30.0070.00416.00
7.1.20.0000.01616.00
7.1.10.0120.00615.96
7.1.00.0070.03819.16
7.0.330.0080.00415.59
7.0.320.0030.01315.55
7.0.310.0040.00715.48
7.0.300.0000.01515.59
7.0.290.0030.00615.68
7.0.280.0060.00615.63
7.0.270.0070.00315.69
7.0.260.0080.00615.54
7.0.250.0000.01215.64
7.0.240.0050.00515.57
7.0.230.0070.00415.47
7.0.220.0000.01515.43
7.0.210.0110.00315.44
7.0.200.0020.00616.32
7.0.190.0040.00415.81
7.0.180.0050.00315.60
7.0.170.0070.00715.64
7.0.160.0070.00715.55
7.0.150.0060.01315.77
7.0.140.0060.03618.79
7.0.130.0040.01115.71
7.0.120.0100.00315.59
7.0.110.0080.00515.64
7.0.100.0050.04517.76
7.0.90.0090.04317.79
7.0.80.0130.02517.84
7.0.70.0050.04017.59
7.0.60.0050.03417.71
7.0.50.0060.04617.93
7.0.40.0110.03816.81
7.0.30.0060.04816.73
7.0.20.0050.03316.98
7.0.10.0060.03016.87
7.0.00.0050.04216.81
5.6.400.0030.00614.61
5.6.390.0000.01314.46
5.6.380.0030.00614.71
5.6.370.0030.00914.05
5.6.360.0040.01114.48
5.6.350.0000.01214.52
5.6.340.0000.01314.45
5.6.330.0090.00614.40
5.6.320.0060.00814.60
5.6.310.0070.01014.56
5.6.300.0090.00314.25
5.6.290.0000.01214.56
5.6.280.0050.03617.64
5.6.270.0070.01114.18
5.6.260.0040.01114.48
5.6.250.0070.04617.46
5.6.240.0020.03417.47
5.6.230.0110.04117.42
5.6.220.0080.04517.47
5.6.210.0100.03817.52
5.6.200.0020.05017.69
5.6.190.0180.03617.63
5.6.180.0080.02617.69
5.6.170.0020.03017.84
5.6.160.0070.04017.70
5.6.150.0080.04517.59
5.6.140.0090.03217.68
5.6.130.0140.03717.64
5.6.120.0080.04417.65
5.6.110.0090.03417.67
5.6.100.0100.04217.63
5.6.90.0080.02917.79
5.6.80.0070.04217.39
5.6.70.0050.04717.39
5.6.60.0070.03617.43
5.6.50.0080.04117.38
5.6.40.0030.04617.35
5.6.30.0020.03217.32
5.6.20.0050.03817.29
5.6.10.0060.04117.48
5.6.00.0100.04017.33
5.5.380.0030.04817.45
5.5.370.0110.04017.27
5.5.360.0030.03017.44
5.5.350.0080.04017.22
5.5.340.0080.03617.50
5.5.330.0050.03217.57
5.5.320.0050.02617.72
5.5.310.0060.04017.55
5.5.300.0060.04017.67
5.5.290.0130.02517.72
5.5.280.0050.04317.66
5.5.270.0050.03917.50
5.5.260.0100.04117.49
5.5.250.0120.03817.53
5.5.240.0050.03817.17
5.5.230.0050.04117.08
5.5.220.0020.03117.20
5.5.210.0070.03817.15
5.5.200.0050.04317.15
5.5.190.0160.03117.32
5.5.180.0070.03017.17
5.5.170.0060.00614.23
5.5.160.0080.03517.31
5.5.150.0030.02517.05
5.5.140.0080.03117.25
5.5.130.0090.01817.18
5.5.120.0030.02417.23
5.5.110.0000.02517.19
5.5.100.0050.02216.94
5.5.90.0070.02416.96
5.5.80.0070.02017.14
5.5.70.0070.02217.14
5.5.60.0030.02317.06
5.5.50.0030.02417.23
5.5.40.0040.03017.04
5.5.30.0100.01817.16
5.5.20.0030.03117.12
5.5.10.0070.02417.09
5.5.00.0100.01817.30
5.4.450.0030.04615.79
5.4.440.0100.04015.85
5.4.430.0060.04415.79
5.4.420.0050.03815.68
5.4.410.0030.04015.78
5.4.400.0090.03715.53
5.4.390.0060.02615.65
5.4.380.0070.04115.63
5.4.370.0050.03015.73
5.4.360.0120.03715.69
5.4.350.0050.02215.59
5.4.340.0030.02615.67
5.4.330.0000.01112.23
5.4.320.0020.02815.60
5.4.310.0060.02315.73
5.4.300.0050.02915.63
5.4.290.0050.02315.59
5.4.280.0060.01815.64
5.4.270.0020.02115.60
5.4.260.0050.01915.68
5.4.250.0030.02015.65
5.4.240.0030.02415.50
5.4.230.0030.02415.63
5.4.220.0030.02215.56
5.4.210.0070.02015.59
5.4.200.0050.01815.59
5.4.190.0000.02415.51
5.4.180.0050.02315.59
5.4.170.0020.02515.65
5.4.160.0020.02615.49
5.4.150.0060.02115.72
5.4.140.0070.01814.29
5.4.130.0020.02414.28
5.4.120.0060.01614.25
5.4.110.0020.02314.22
5.4.100.0070.01914.34
5.4.90.0030.02214.20
5.4.80.0060.02114.21
5.4.70.0100.01214.33
5.4.60.0060.01914.27
5.4.50.0020.02214.28
5.4.40.0050.01814.34
5.4.30.0100.01714.29
5.4.20.0030.02214.30
5.4.10.0000.02114.25
5.4.00.0020.01814.01
5.3.290.0050.02313.44
5.3.280.0060.02313.40
5.3.270.0020.02613.43
5.3.260.0030.02213.41
5.3.250.0040.01913.41
5.3.240.0060.02013.40
5.3.230.0080.01713.40
5.3.220.0050.03013.36
5.3.210.0050.02013.32
5.3.200.0030.02513.40
5.3.190.0030.02013.40
5.3.180.0000.02213.41
5.3.170.0030.01713.39
5.3.160.0040.01813.32
5.3.150.0000.02313.36
5.3.140.0000.02213.40
5.3.130.0030.01813.33
5.3.120.0080.01813.32
5.3.110.0020.02313.38
5.3.100.0020.02113.05
5.3.90.0080.01713.12
5.3.80.0080.01713.11
5.3.70.0080.01713.06
5.3.60.0030.02313.00
5.3.50.0000.02513.05
5.3.40.0010.02313.04
5.3.30.0060.01813.04
5.3.20.0070.01712.90
5.3.10.0020.02212.83
5.3.00.0050.04012.89
5.2.170.0030.03013.00
5.2.160.0070.02013.00
5.2.150.0030.02713.00
5.2.140.0030.02313.00
5.2.130.0070.02013.00
5.2.120.0030.02713.00
5.2.110.0030.06313.00
5.2.100.0030.06313.00
5.2.90.0070.06013.00
5.2.80.0000.06313.00
5.2.70.0000.04313.00
5.2.60.0030.06713.00
5.2.50.0100.06013.00
5.2.40.0030.04713.00
5.2.30.0070.05713.00
5.2.20.0100.03013.00
5.2.10.0070.05313.00
5.2.00.0000.05713.00
5.1.60.0000.04013.00
5.1.50.0070.05313.00
5.1.40.0030.04713.00
5.1.30.0100.04313.00
5.1.20.0030.06013.00
5.1.10.0030.04313.00
5.1.00.0070.02013.00
5.0.50.0030.04313.00
5.0.40.0070.03713.00
5.0.30.0070.05013.00
5.0.20.0130.02313.00
5.0.10.0070.04013.00
5.0.00.0030.06013.00
4.4.90.0030.01713.00
4.4.80.0030.03313.00
4.4.70.0070.03313.00
4.4.60.0000.03713.00
4.4.50.0000.02713.00
4.4.40.0000.05313.00
4.4.30.0000.03013.00
4.4.20.0030.03713.00
4.4.10.0070.02713.00
4.4.00.0030.05313.00
4.3.110.0000.02313.00
4.3.100.0070.01313.00
4.3.90.0030.03313.00
4.3.80.0070.05013.00
4.3.70.0030.03013.00
4.3.60.0000.03313.00
4.3.50.0030.03313.00
4.3.40.0070.03313.00
4.3.30.0000.03313.00
4.3.20.0000.01713.00
4.3.10.0070.02713.00
4.3.00.0000.03313.00

preferences:
43.87 ms | 401 KiB | 5 Q