3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TXT /some /text / TXT; $pattern = "/"; $pattern = mb_convert_encoding($pattern, 'UTF-8', 'Windows-1251'); $pattern = preg_quote($pattern, '/'); $pattern = mb_convert_encoding($pattern, 'Windows-1251', 'UTF-8'); $pattern .= "(?'namedS'text|some)"; var_dump($pattern); $matches = array(); $match = preg_match_all("/" . $pattern . "/mi", $text, $matches); var_dump($match, $matches); mb_regex_encoding('UTF-8'); mb_ereg_search_init($text); while(mb_ereg_search("" . $pattern, "imz")) { $r = mb_ereg_search_getregs(); mb_ereg_search_setpos(mb_ereg_search_getpos()); var_dump($r); }

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.0110.00718.93
8.3.50.0120.00522.22
8.3.40.0090.00619.03
8.3.30.0100.01018.95
8.3.20.0080.00018.98
8.3.10.0030.00521.21
8.3.00.0070.01123.73
8.2.180.0120.00617.25
8.2.170.0040.01122.96
8.2.160.0040.01120.47
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0050.00320.16
8.2.110.0030.00620.77
8.2.100.0090.00318.22
8.2.90.0000.00819.59
8.2.80.0090.00018.30
8.2.70.0030.00618.13
8.2.60.0050.00318.30
8.2.50.0040.00418.25
8.2.40.0000.00818.38
8.2.30.0080.00019.59
8.2.20.0070.00318.23
8.2.10.0040.00418.14
8.2.00.0030.00518.28
8.1.280.0110.01425.92
8.1.270.0000.00823.99
8.1.260.0000.00826.35
8.1.250.0000.01128.09
8.1.240.0070.00322.80
8.1.230.0000.01221.09
8.1.220.0000.00818.77
8.1.210.0040.00419.06
8.1.200.0000.00917.73
8.1.190.0040.00417.88
8.1.180.0000.00818.10
8.1.170.0080.00018.99
8.1.160.0070.00019.17
8.1.150.0080.00018.92
8.1.140.0000.00717.78
8.1.130.0030.00317.96
8.1.120.0070.00017.88
8.1.110.0000.01017.89
8.1.100.0070.00017.87
8.1.90.0000.00717.80
8.1.80.0040.00417.83
8.1.70.0030.00517.85
8.1.60.0040.00417.97
8.1.50.0000.00717.89
8.1.40.0050.00317.88
8.1.30.0050.00318.07
8.1.20.0030.00618.00
8.1.10.0050.00217.92
8.1.00.0020.00517.96
8.0.300.0040.00420.23
8.0.290.0040.00417.30
8.0.280.0070.00018.66
8.0.270.0000.00717.40
8.0.260.0000.00717.23
8.0.250.0070.00017.26
8.0.240.0000.00717.31
8.0.230.0050.00317.32
8.0.220.0070.00017.21
8.0.210.0020.00517.24
8.0.200.0070.00317.36
8.0.190.0050.00317.35
8.0.180.0040.00417.31
8.0.170.0050.00217.38
8.0.160.0000.00717.29
8.0.150.0000.00717.21
8.0.140.0030.00717.25
8.0.130.0080.00013.70
8.0.120.0090.00017.20
8.0.110.0040.00417.16
8.0.100.0040.00417.16
8.0.90.0000.00717.29
8.0.80.0040.01117.26
8.0.70.0080.00017.42
8.0.60.0000.00717.16
8.0.50.0000.00717.25
8.0.30.0100.01017.42
8.0.20.0070.01217.40
8.0.10.0050.00217.23
8.0.00.0110.01017.16
7.4.330.0000.00713.43
7.4.320.0030.00316.95
7.4.300.0030.00316.96
7.4.290.0040.00416.93
7.4.280.0030.00316.85
7.4.270.0000.00916.93
7.4.260.0030.00313.66
7.4.250.0040.00416.95
7.4.240.0030.00516.82
7.4.230.0000.00716.95
7.4.220.0150.00616.89
7.4.210.0080.01016.87
7.4.200.0000.00816.85
7.4.190.0080.00016.96
7.4.160.0060.01016.67
7.4.150.0120.00617.40
7.4.140.0130.00917.86
7.4.130.0050.01216.94
7.4.120.0080.00916.96
7.4.110.0090.00916.78
7.4.100.0130.00516.77
7.4.90.0120.00616.88
7.4.80.0060.01219.39
7.4.70.0030.01316.88
7.4.60.0150.00316.94
7.4.50.0000.00816.79
7.4.40.0070.00622.52
7.4.30.0030.01417.16
7.4.00.0050.01115.41
7.3.330.0030.00313.44
7.3.320.0040.00213.42
7.3.310.0000.00716.59
7.3.300.0020.00516.72
7.3.290.0130.00416.69
7.3.280.0080.00916.67
7.3.270.0120.00617.40
7.3.260.0140.00818.24
7.3.250.0090.00916.79
7.3.240.0140.00316.83
7.3.230.0110.00716.77
7.3.210.0130.00816.66
7.3.200.0110.01219.39
7.3.190.0090.01616.74
7.3.180.0030.01316.79
7.3.170.0070.01016.73
7.3.160.0130.00316.89
7.3.120.0090.00615.11
7.3.110.0000.01915.12
7.3.100.0070.00714.93
7.3.90.0040.00815.11
7.3.80.0030.01315.10
7.3.70.0030.01315.29
7.3.60.0030.00715.15
7.3.50.0000.01015.22
7.3.40.0060.00915.13
7.3.30.0030.01315.05
7.3.20.0030.00717.08
7.3.10.0060.00617.13
7.3.00.0090.00616.65
7.2.330.0110.00716.79
7.2.320.0110.00816.96
7.2.310.0120.00816.92
7.2.300.0070.01016.93
7.2.290.0100.00816.77
7.2.250.0100.01015.28
7.2.240.0100.01015.32
7.2.230.0030.01015.39
7.2.220.0030.01015.17
7.2.210.0130.00715.28
7.2.200.0110.00415.14
7.2.190.0040.01115.38
7.2.180.0040.01115.35
7.2.170.0110.00315.29
7.2.60.0070.01117.25
7.2.00.0150.00719.55
7.1.330.0040.01216.47
7.1.320.0190.00016.54
7.1.310.0070.01116.41
7.1.300.0100.00316.06
7.1.290.0120.00016.16
7.1.280.0060.00916.35
7.1.270.0060.00916.49
7.1.260.0100.00316.06
7.1.200.0240.00816.38
7.1.100.0000.01218.51
7.1.70.0030.00617.59
7.1.60.0080.00419.40
7.1.50.0110.01417.43
7.1.00.0030.06722.48
7.0.200.0000.00917.22
7.0.140.0030.07022.08
7.0.70.0000.04321.55
7.0.60.0000.08721.61
7.0.50.0030.07322.04
7.0.40.0030.06320.12
7.0.30.0000.06320.00
7.0.20.0030.05020.03
7.0.10.0100.07720.05
7.0.00.0000.07720.05
5.6.280.0070.07021.14
5.6.220.0070.07720.48
5.6.210.0100.07720.39
5.6.200.0100.08021.09
5.6.190.0030.08321.05
5.6.180.0000.07720.89
5.6.170.0100.07721.05
5.6.160.0200.06021.07
5.6.150.0100.07020.95
5.6.140.0030.05020.91
5.6.130.0130.07721.03
5.6.120.0000.06720.88
5.6.110.0070.06321.04
5.6.100.0030.08321.02
5.6.90.0030.08320.87
5.6.80.0030.04020.41
5.6.70.0030.07020.43
5.6.60.0070.07320.42
5.6.50.0100.06720.34
5.6.40.0030.05720.42
5.6.30.0000.07720.22
5.6.20.0070.07320.31
5.6.10.0100.04720.23
5.6.00.0100.07720.26
5.5.360.0030.08020.23
5.5.350.0070.08320.40
5.5.340.0030.04720.80
5.5.330.0070.07020.77
5.5.320.0100.03720.74
5.5.310.0130.07020.79
5.5.300.0000.07020.84
5.5.290.0070.04720.68
5.5.280.0100.04020.83
5.5.270.0000.04720.82
5.5.260.0030.06020.78
5.5.250.0030.07320.49
5.5.240.0030.07720.16
5.5.230.0030.07720.19
5.5.220.0030.06720.25
5.5.210.0030.05720.11
5.5.200.0070.06320.09
5.5.190.0070.05320.09
5.5.180.0030.07020.18
5.5.160.0000.07020.18
5.5.150.0000.08320.09
5.5.140.0100.06720.12
5.5.130.0030.07020.13
5.5.120.0000.07720.07
5.5.110.0030.08320.12
5.5.100.0000.07720.05
5.5.90.0100.06720.07
5.5.80.0130.06020.02
5.5.70.0030.06319.98
5.5.60.0070.07020.05
5.5.50.0030.05720.05
5.5.40.0070.07020.09
5.5.30.0070.07320.07
5.5.20.0000.08319.96
5.5.10.0070.07320.05
5.5.00.0030.08019.96
5.4.450.0030.06319.25
5.4.440.0130.07019.16
5.4.430.0070.07319.33
5.4.420.0100.05319.27
5.4.410.0030.05319.18
5.4.400.0000.07018.88
5.4.390.0000.05318.82
5.4.380.0000.07019.04
5.4.370.0070.07318.65
5.4.360.0000.06718.88
5.4.350.0070.07318.96
5.4.340.0000.05718.84
5.4.320.0030.06718.88
5.4.310.0030.06318.65
5.4.300.0030.06319.10
5.4.290.0070.06018.80
5.4.280.0130.07018.88
5.4.270.0070.07318.92
5.4.260.0000.07318.95
5.4.250.0000.07318.67
5.4.240.0030.07018.67
5.4.230.0070.06018.83
5.4.220.0030.06318.66
5.4.210.0130.06718.81
5.4.200.0070.07318.64
5.4.190.0030.07018.96
5.4.180.0070.05318.98
5.4.170.0000.06718.83
5.4.160.0030.05318.82
5.4.150.0000.05318.85
5.4.140.0070.06716.31
5.4.130.0000.05016.20
5.4.120.0100.05316.02
5.4.110.0000.06716.24
5.4.100.0030.06716.42
5.4.90.0030.07716.23
5.4.80.0100.06016.29
5.4.70.0000.07016.25
5.4.60.0030.07316.32
5.4.50.0000.05716.17
5.4.40.0030.04316.35
5.4.30.0030.06316.22
5.4.20.0200.04316.34
5.4.10.0100.04316.17
5.4.00.0000.04015.71
5.3.290.0070.07014.61
5.3.280.0000.08014.57
5.3.270.0070.05014.61
5.3.260.0000.07314.55
5.3.250.0030.08314.59
5.3.240.0030.06714.47
5.3.230.0030.05014.61
5.3.220.0030.07014.52
5.3.210.0070.07314.43
5.3.200.0030.07714.57
5.3.190.0030.07714.54
5.3.180.0070.06714.56
5.3.170.0030.05714.52
5.3.160.0030.07314.54
5.3.150.0000.06314.50
5.3.140.0030.06714.55
5.3.130.0100.03014.54
5.3.120.0000.03714.48
5.3.110.0000.03714.38
5.3.100.0070.07713.89
5.3.90.0000.04714.00
5.3.80.0030.05713.87
5.3.70.0030.06713.87
5.3.60.0030.06013.97
5.3.50.0100.05013.89
5.3.40.0070.07013.91
5.3.30.0030.06713.66
5.3.20.0000.06713.45
5.3.10.0030.03013.63
5.3.00.0000.03713.64
5.2.170.0070.05711.15
5.2.160.0070.04311.19
5.2.150.0030.05711.01
5.2.140.0000.03711.06
5.2.130.0000.04011.14
5.2.120.0030.02711.10
5.2.110.0000.06311.14
5.2.100.0030.03010.96
5.2.90.0000.05311.07
5.2.80.0030.05010.94
5.2.70.0000.05011.12
5.2.60.0070.04711.10
5.2.50.0030.05711.09
5.2.40.0070.06010.96
5.2.30.0000.06011.03
5.2.20.0070.05710.98
5.2.10.0000.05710.91
5.2.00.0000.06010.66
5.1.60.0000.05310.49
5.1.50.0000.05010.49
5.1.40.0000.04010.49
5.1.30.0000.05710.49
5.1.20.0070.03310.49
5.1.10.0030.04710.49
5.1.00.0030.05310.49
5.0.50.0000.05010.49
5.0.40.0000.04010.49
5.0.30.0030.06010.49
5.0.20.0000.04710.49
5.0.10.0030.04310.49
5.0.00.0000.04710.49
4.4.90.0000.04010.49
4.4.80.0030.03010.49
4.4.70.0000.03310.49
4.4.60.0030.03310.49
4.4.50.0000.03710.49
4.4.40.0000.03710.49
4.4.30.0000.03310.49
4.4.20.0000.03710.49
4.4.10.0070.02010.49
4.4.00.0030.05310.49
4.3.110.0000.03310.49
4.3.100.0000.03710.49
4.3.90.0000.03310.49
4.3.80.0000.04310.49
4.3.70.0030.02710.49
4.3.60.0000.03710.49
4.3.50.0000.03710.49
4.3.40.0000.05310.49
4.3.30.0000.03010.49
4.3.20.0000.03710.49
4.3.10.0030.02710.49
4.3.00.0070.03010.49

preferences:
59.75 ms | 400 KiB | 5 Q