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.0060.01018.75
8.3.50.0180.01122.14
8.3.40.0040.01119.27
8.3.30.0160.00019.17
8.3.20.0040.00420.09
8.3.10.0050.00321.91
8.3.00.0000.00822.51
8.2.180.0090.00919.29
8.2.170.0040.01122.96
8.2.160.0060.00921.27
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0060.00319.88
8.2.110.0060.00322.51
8.2.100.0060.00618.16
8.2.90.0040.00419.59
8.2.80.0050.00318.27
8.2.70.0050.00318.00
8.2.60.0040.00418.40
8.2.50.0040.00418.25
8.2.40.0000.00818.28
8.2.30.0050.00318.55
8.2.20.0080.00018.20
8.2.10.0000.00818.13
8.2.00.0060.00318.04
8.1.280.0090.01225.92
8.1.270.0040.00422.20
8.1.260.0130.00626.35
8.1.250.0070.00728.09
8.1.240.0090.00023.92
8.1.230.0000.01219.34
8.1.220.0040.00417.89
8.1.210.0000.00818.77
8.1.200.0060.00317.75
8.1.190.0050.00317.91
8.1.180.0040.00418.10
8.1.170.0050.00319.09
8.1.160.0040.00422.14
8.1.150.0040.00418.94
8.1.140.0000.00817.79
8.1.130.0000.00717.98
8.1.120.0040.00417.73
8.1.110.0000.00817.86
8.1.100.0000.00717.84
8.1.90.0040.00417.73
8.1.80.0000.00717.86
8.1.70.0030.00317.88
8.1.60.0030.00518.06
8.1.50.0080.00017.94
8.1.40.0040.00417.94
8.1.30.0000.00818.02
8.1.20.0000.00918.07
8.1.10.0060.00317.85
8.1.00.0040.00417.94
8.0.300.0000.00718.77
8.0.290.0040.00417.30
8.0.280.0040.00318.57
8.0.270.0040.00417.48
8.0.260.0040.00417.16
8.0.250.0030.00317.41
8.0.240.0030.00517.32
8.0.230.0040.00417.33
8.0.220.0030.00317.36
8.0.210.0000.00717.31
8.0.200.0030.00317.34
8.0.190.0000.00717.35
8.0.180.0060.00317.21
8.0.170.0030.00617.34
8.0.160.0000.00717.42
8.0.150.0040.00417.20
8.0.140.0070.00017.26
8.0.130.0030.00313.70
8.0.120.0000.00817.22
8.0.110.0040.00417.35
8.0.100.0080.00017.32
8.0.90.0000.00817.30
8.0.80.0030.01217.22
8.0.70.0040.00417.32
8.0.60.0000.00817.11
8.0.50.0040.00417.18
8.0.30.0110.01217.50
8.0.20.0080.01117.60
8.0.10.0070.00017.31
8.0.00.0120.01016.98
7.4.330.0000.00515.00
7.4.320.0000.00716.85
7.4.300.0030.00316.79
7.4.290.0040.00416.95
7.4.280.0000.00716.83
7.4.270.0030.00316.91
7.4.260.0040.00416.92
7.4.250.0040.00416.92
7.4.240.0030.00516.89
7.4.230.0040.00416.97
7.4.220.0180.00016.90
7.4.210.0070.00816.90
7.4.200.0000.00716.76
7.4.190.0030.00317.07
7.4.160.0120.00416.86
7.4.150.0130.00717.40
7.4.140.0100.00817.86
7.4.130.0090.00916.91
7.4.120.0130.00617.01
7.4.110.0160.00416.79
7.4.100.0090.01216.88
7.4.90.0150.00316.91
7.4.80.0040.01416.75
7.4.70.0100.00717.13
7.4.60.0100.01016.90
7.4.50.0080.00016.61
7.4.40.0060.00622.77
7.4.30.0070.01016.87
7.4.00.0110.00715.52
7.3.330.0000.00613.42
7.3.320.0030.00313.58
7.3.310.0000.00716.54
7.3.300.0000.00716.54
7.3.290.0130.00316.72
7.3.280.0110.00716.70
7.3.270.0100.00817.40
7.3.260.0140.01016.64
7.3.250.0130.00916.85
7.3.240.0110.00616.75
7.3.230.0110.01116.67
7.3.210.0100.01016.77
7.3.200.0110.01119.39
7.3.190.0160.00316.71
7.3.180.0150.00316.88
7.3.170.0070.01016.69
7.3.160.0120.00416.55
7.3.120.0030.01315.15
7.3.10.0170.00016.89
7.3.00.0090.01316.55
7.2.330.0200.01316.93
7.2.320.0070.01116.86
7.2.310.0200.00317.08
7.2.300.0070.01116.99
7.2.290.0100.00716.92
7.2.130.0100.00717.02
7.2.120.0180.00316.95
7.2.110.0100.01616.90
7.2.100.0150.00917.11
7.2.90.0120.00317.01
7.2.80.0130.01017.05
7.2.70.0090.01317.14
7.2.60.0110.01317.12
7.2.50.0190.01017.17
7.2.40.0200.01217.10
7.2.30.0190.00617.13
7.2.20.0160.01117.26
7.2.10.0200.01116.92
7.2.00.0150.00618.28
7.1.250.0060.01016.03
7.1.100.0030.00918.61
7.1.70.0040.00417.68
7.1.60.0060.00617.57
7.1.50.0030.01017.23
7.1.40.0080.00817.03
7.1.30.0040.01217.37
7.1.20.0000.01417.36
7.1.10.0060.00317.35
7.1.00.0000.01617.29
7.0.200.0030.00616.96
7.0.190.0000.00817.29
7.0.180.0050.00316.87
7.0.170.0030.00716.70
7.0.160.0030.00616.64
7.0.150.0070.00316.71
7.0.140.0030.00916.96
7.0.130.0000.00916.99
7.0.120.0000.00916.96
7.0.110.0050.00517.08
7.0.100.0030.00916.79
7.0.90.0060.00317.20
7.0.80.0040.00717.02
7.0.70.0030.00616.81
7.0.60.0100.00316.94
7.0.50.0000.01017.25
7.0.40.0000.01215.31
7.0.30.0060.00615.31
7.0.20.0030.00715.31
7.0.10.0000.01115.31
7.0.00.0020.00715.31
5.6.300.0070.07320.96
5.6.290.0030.04620.76
5.6.280.0030.04621.10
5.6.270.0030.04420.98
5.6.260.0030.04721.10
5.6.250.0000.04220.93
5.6.240.0100.05320.96
5.6.230.0000.05221.13
5.6.220.0000.05521.07
5.6.210.0000.04820.66
5.6.200.0030.04321.10
5.6.190.0030.04520.91
5.6.180.0100.04421.08
5.6.170.0100.03920.93
5.6.160.0000.04620.96
5.6.150.0000.04521.07
5.6.140.0070.04821.09
5.6.130.0070.04021.00
5.6.120.0030.04020.80
5.6.110.0070.05120.80
5.6.100.0070.03720.93
5.6.90.0030.04221.02
5.6.80.0000.04620.29
5.6.70.0130.03620.28
5.6.60.0100.03820.35
5.6.50.0030.05420.50
5.6.40.0070.04120.36
5.6.30.0090.03920.39
5.6.20.0100.04220.25
5.6.10.0100.07320.47
5.6.00.0040.04220.43
5.5.380.0030.03817.60
5.5.370.0100.03617.57
5.5.360.0070.04017.56
5.5.350.0060.04217.53
5.5.340.0290.02917.95
5.5.330.0030.04217.96
5.5.320.0070.04417.96
5.5.310.0030.04318.13
5.5.300.0030.05018.04
5.5.290.0000.04618.14
5.5.280.0030.04018.16
5.5.270.0100.05418.03
5.5.260.0000.04418.12
5.5.250.0000.04217.90
5.5.240.0030.04217.52
5.5.230.0030.04017.52
5.5.220.0100.03517.34
5.5.210.0060.03517.42
5.5.200.0090.03517.48
5.5.190.0210.04917.44
5.5.180.0090.04117.44
5.5.160.0030.03817.52
5.5.150.0120.03417.48
5.5.140.0030.04517.57
5.5.130.0000.04017.41
5.5.120.0060.03817.40
5.5.110.0130.04017.30
5.5.100.0170.03317.35
5.5.90.0000.04517.29
5.5.80.0000.04517.41
5.5.70.0000.04417.42
5.5.60.0070.04317.09
5.5.50.0090.03017.48
5.5.40.0000.04617.37
5.5.30.0030.04717.31
5.5.20.0070.04017.07
5.5.10.0030.03717.23
5.5.00.0070.03817.04
5.4.450.0000.04219.41
5.4.440.0100.03719.37
5.4.430.0030.03919.13
5.4.420.0000.04119.20
5.4.410.0070.04919.07
5.4.400.0030.03918.91
5.4.390.0030.03718.88
5.4.380.0030.04019.11
5.4.370.0030.03618.88
5.4.360.0000.04419.04
5.4.350.0000.06018.97
5.4.340.0090.04018.88
5.4.320.0030.07918.88
5.4.310.0070.05618.96
5.4.300.0030.04318.99
5.4.290.0100.03918.99
5.4.280.0070.04018.88
5.4.270.0100.04118.80
5.4.260.0060.03918.88
5.4.250.0000.04118.94
5.4.240.0030.04019.10
5.4.230.0100.03418.98
5.4.220.0000.04518.95
5.4.210.0000.03919.10
5.4.200.0030.03618.95
5.4.190.0070.03218.95
5.4.180.0070.07118.87
5.4.170.0030.06518.98
5.4.160.0000.08218.87
5.4.150.0070.07118.90
5.4.140.0070.03416.52
5.4.130.0070.04016.75
5.4.120.0090.03416.46
5.4.110.0000.04316.51
5.4.100.0030.03516.63
5.4.90.0030.04716.30
5.4.80.0030.03716.57
5.4.70.0070.03316.61
5.4.60.0030.04016.26
5.4.50.0000.04116.57
5.4.40.0030.06916.54
5.4.30.0030.06916.52
5.4.20.0040.03916.42
5.4.10.0070.03316.57
5.4.00.0030.03516.09
5.3.290.0000.04115.31
5.3.280.0030.03515.31
5.3.270.0000.03915.31
5.3.260.0030.06415.31
5.3.250.0070.07715.31
5.3.240.0100.06215.31
5.3.230.0030.06615.31
5.3.220.0000.04915.31
5.3.210.0090.03815.31
5.3.200.0030.04315.31
5.3.190.0030.07415.31
5.3.180.0030.03615.31
5.3.170.0030.07415.31
5.3.160.0000.06915.31
5.3.150.0030.06815.31
5.3.140.0030.04415.31
5.3.130.0100.03515.31
5.3.120.0030.03715.31
5.3.110.0060.05215.31
5.3.100.0000.04015.31
5.3.90.0030.04315.31
5.3.80.0070.06015.31
5.3.70.0000.05315.31
5.3.60.0060.04715.31
5.3.50.0130.02615.31
5.3.40.0030.03815.31
5.3.30.0070.06515.31
5.3.20.0000.03715.31
5.3.10.0000.04015.31
5.3.00.0030.03715.31
5.2.170.0000.03115.31
5.2.160.0070.02415.31
5.2.150.0030.05015.31
5.2.140.0030.03115.31
5.2.130.0030.03015.31
5.2.120.0000.03215.31
5.2.110.0030.03115.31
5.2.100.0030.02815.31
5.2.90.0030.03015.31
5.2.80.0070.02415.31
5.2.70.0030.02815.31
5.2.60.0060.04515.31
5.2.50.0070.03015.31
5.2.40.0000.03015.31
5.2.30.0070.04415.31
5.2.20.0030.05115.31
5.2.10.0000.04615.31
5.2.00.0070.02615.31
5.1.60.0000.02815.31
5.1.50.0030.02315.31
5.1.40.0000.02615.31
5.1.30.0030.02815.31
5.1.20.0040.02515.31
5.1.10.0030.02615.31
5.1.00.0060.02115.31
5.0.50.0070.02015.31
5.0.40.0040.01915.31
5.0.30.0000.03515.31
5.0.20.0040.02215.31
5.0.10.0100.01315.31
5.0.00.0000.03215.31
4.4.90.0000.02015.31
4.4.80.0070.02315.31
4.4.70.0000.02715.31
4.4.60.0030.01415.31
4.4.50.0030.03415.31
4.4.40.0000.02515.31
4.4.30.0030.01715.31
4.4.20.0000.02015.31
4.4.10.0000.01715.31
4.4.00.0000.02815.31
4.3.110.0000.02115.31
4.3.100.0000.01615.31
4.3.90.0000.01715.31
4.3.80.0000.03215.31
4.3.70.0000.02115.31
4.3.60.0050.01115.31
4.3.50.0000.02315.31
4.3.40.0060.02215.31
4.3.30.0000.02015.31
4.3.20.0040.01815.31
4.3.10.0030.01515.31
4.3.00.0000.01915.31

preferences:
43.43 ms | 401 KiB | 5 Q