3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Some test text string with stop-words: stw stw2 stopword stw3stw stopword2c"; $stopwords = array( 'stw', 'stopword' ); $regexp = '/'; $regexp.= '(' . implode('|', $stopwords) . ')' . '/'; var_dump($regexp); mb_regex_encoding('UTF-8'); mb_ereg_search_init($text); $totalResult = mb_ereg_search($regexp, "imz"); var_dump($totalResult); var_dump(mb_regex_encoding());

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.00418.68
8.3.50.0080.00822.05
8.3.40.0120.00918.83
8.3.30.0120.00318.84
8.3.20.0090.00918.52
8.3.10.0050.00321.09
8.3.00.0180.00021.63
8.2.180.0120.00616.75
8.2.170.0120.00922.96
8.2.160.0130.00720.53
8.2.150.0100.00724.18
8.2.140.0000.01824.66
8.2.130.0080.00026.16
8.2.120.0000.00720.83
8.2.110.0050.00521.18
8.2.100.0090.00417.97
8.2.90.0040.00419.40
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0050.00318.04
8.2.50.0030.00718.07
8.2.40.0000.00818.47
8.2.30.0030.00521.27
8.2.20.0070.00317.81
8.2.10.0000.00917.73
8.2.00.0030.00717.90
8.1.280.0090.00625.92
8.1.270.0030.00523.99
8.1.260.0090.00026.35
8.1.250.0100.00728.09
8.1.240.0030.00621.24
8.1.230.0090.00317.47
8.1.220.0050.00317.76
8.1.210.0050.00318.77
8.1.200.0100.00017.48
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0000.00718.84
8.1.160.0050.00218.94
8.1.150.0040.00418.77
8.1.140.0040.00417.46
8.1.130.0000.00717.85
8.1.120.0000.00717.52
8.1.110.0070.00017.61
8.1.100.0000.00817.52
8.1.90.0000.00817.61
8.1.80.0000.00717.52
8.1.70.0000.00717.57
8.1.60.0030.00517.75
8.1.50.0020.00517.62
8.1.40.0000.00717.69
8.1.30.0000.00817.84
8.1.20.0030.00617.76
8.1.10.0040.00417.68
8.1.00.0000.00717.56
8.0.300.0070.00018.77
8.0.290.0000.00716.88
8.0.280.0000.00718.56
8.0.270.0030.00317.30
8.0.260.0030.00316.86
8.0.250.0000.00817.07
8.0.240.0060.00317.07
8.0.230.0000.00717.10
8.0.220.0070.00016.96
8.0.210.0070.00017.00
8.0.200.0000.00617.12
8.0.190.0020.00517.07
8.0.180.0000.00717.03
8.0.170.0050.00317.12
8.0.160.0040.00417.05
8.0.150.0040.00416.96
8.0.140.0000.00916.98
8.0.130.0050.00013.50
8.0.120.0050.00217.08
8.0.110.0020.00517.20
8.0.100.0040.00417.13
8.0.90.0020.00517.09
8.0.80.0060.00917.14
8.0.70.0040.00417.02
8.0.60.0030.00317.03
8.0.50.0050.00216.85
8.0.30.0130.00817.10
8.0.20.0090.00917.40
8.0.10.0000.00816.88
8.0.00.0110.00616.79
7.4.330.0040.00016.91
7.4.320.0000.00716.52
7.4.300.0070.00016.69
7.4.290.0030.00316.55
7.4.280.0080.00316.48
7.4.270.0070.00016.48
7.4.260.0000.00513.32
7.4.250.0070.00316.65
7.4.240.0050.00216.52
7.4.230.0000.00716.32
7.4.220.0100.01616.74
7.4.210.0070.00716.65
7.4.200.0070.00016.52
7.4.190.0000.00716.71
7.4.160.0080.00816.59
7.4.150.0030.01517.40
7.4.140.0120.00917.86
7.4.130.0040.01416.66
7.4.120.0100.00716.60
7.4.110.0090.00916.75
7.4.100.0100.00716.72
7.4.90.0080.01116.63
7.4.80.0150.00919.39
7.4.70.0060.01016.75
7.4.60.0070.01016.33
7.4.50.0020.00216.42
7.4.40.0100.00722.77
7.4.30.0100.00716.41
7.4.10.0100.00715.17
7.4.00.0090.00915.07
7.3.330.0000.00513.08
7.3.320.0090.00513.19
7.3.310.0040.00416.43
7.3.300.0070.00016.36
7.3.290.0150.00316.36
7.3.280.0080.01016.38
7.3.270.0130.01017.40
7.3.260.0100.00918.24
7.3.250.0130.00616.38
7.3.240.0110.01116.29
7.3.230.0110.01216.39
7.3.210.0080.00816.40
7.3.200.0110.00719.39
7.3.190.0120.00916.59
7.3.180.0090.00616.30
7.3.170.0100.00616.50
7.3.160.0130.00316.52
7.3.130.0070.01014.83
7.3.120.0080.00914.81
7.3.110.0130.00615.05
7.3.100.0090.00314.82
7.3.90.0070.00914.72
7.3.80.0040.01114.79
7.3.70.0080.00414.76
7.3.60.0060.00714.84
7.3.50.0100.00514.79
7.3.40.0070.00714.72
7.3.30.0050.00514.87
7.3.20.0040.00816.75
7.3.10.0070.00816.65
7.3.00.0050.00716.63
7.2.330.0120.00616.58
7.2.320.0070.01016.65
7.2.310.0070.01016.48
7.2.300.0060.01216.45
7.2.290.0050.01416.66
7.2.260.0080.01114.85
7.2.250.0080.01015.11
7.2.240.0060.01114.99
7.2.230.0050.01015.08
7.2.220.0050.01015.11
7.2.210.0060.01015.03
7.2.200.0050.00715.08
7.2.190.0030.01114.94
7.2.180.0060.00815.06
7.2.170.0040.00815.08
7.2.160.0090.00314.96
7.2.150.0040.00816.98
7.2.140.0030.00916.91
7.2.130.0030.00917.13
7.2.120.0100.00616.89
7.2.110.0040.01116.88
7.2.100.0000.01717.05
7.2.90.0070.00717.08
7.2.80.0040.01416.91
7.2.70.0030.00917.02
7.2.60.0080.00616.87
7.2.50.0030.00916.93
7.2.40.0030.00916.99
7.2.30.0070.00716.90
7.2.20.0060.00617.04
7.2.10.0030.01016.74
7.2.00.0020.01218.16
7.1.330.0060.00616.01
7.1.320.0050.01016.14
7.1.310.0080.00715.86
7.1.300.0080.00715.91
7.1.290.0040.00915.77
7.1.280.0060.00615.91
7.1.270.0040.00915.88
7.1.260.0050.01015.90
7.1.250.0040.01115.97
7.1.240.0000.00916.03
7.1.230.0080.00416.03
7.1.220.0000.01516.04
7.1.210.0040.00715.75
7.1.200.0020.01215.96
7.1.190.0000.00915.96
7.1.180.0000.01216.04
7.1.170.0060.00616.09
7.1.160.0090.00415.70
7.1.150.0100.00315.78
7.1.140.0040.00416.14
7.1.130.0000.01415.81
7.1.120.0070.00315.96
7.1.110.0060.00615.92
7.1.100.0050.00917.03
7.1.90.0060.00616.04
7.1.80.0070.00715.71
7.1.70.0070.00416.46
7.1.60.0050.00716.71
7.1.50.0060.01016.48
7.1.40.0120.00316.01
7.1.30.0060.00615.74
7.1.20.0000.01415.64
7.1.10.0060.00316.10
7.1.00.0050.03719.23
7.0.330.0030.01315.56
7.0.320.0000.01215.76
7.0.310.0040.00715.74
7.0.300.0030.00815.41
7.0.290.0030.01215.28
7.0.280.0030.01315.54
7.0.270.0060.00615.64
7.0.260.0040.00715.52
7.0.250.0090.00315.69
7.0.240.0030.01015.72
7.0.230.0050.00515.84
7.0.220.0060.00915.39
7.0.210.0060.01015.54
7.0.200.0080.00616.21
7.0.190.0090.00315.40
7.0.180.0030.00915.45
7.0.170.0040.00815.59
7.0.160.0070.00715.48
7.0.150.0000.00915.59
7.0.140.0050.03618.86
7.0.130.0080.00415.78
7.0.120.0040.00815.74
7.0.110.0030.00715.59
7.0.100.0060.00615.63
7.0.90.0080.00015.30
7.0.80.0060.00315.26
7.0.70.0070.00715.72
7.0.60.0070.04618.69
7.0.50.0060.04019.03
7.0.40.0080.04116.82
7.0.30.0050.04416.82
7.0.20.0070.04416.95
7.0.10.0030.04816.84
7.0.00.0050.04516.93
5.6.400.0030.01014.79
5.6.390.0040.01114.34
5.6.380.0000.01414.45
5.6.370.0070.00714.55
5.6.360.0060.00314.68
5.6.350.0070.01114.80
5.6.340.0110.00714.79
5.6.330.0030.01414.73
5.6.320.0080.00614.50
5.6.310.0070.01014.48
5.6.300.0060.00914.45
5.6.290.0040.00714.79
5.6.280.0080.03717.83
5.6.270.0000.01214.62
5.6.260.0040.01114.93
5.6.250.0090.00614.25
5.6.240.0070.00714.47
5.6.230.0100.00314.54
5.6.220.0060.00614.35
5.6.210.0050.04117.55
5.6.200.0050.04517.84
5.6.190.0070.04417.80
5.6.180.0070.04717.78
5.6.170.0070.04217.85
5.6.160.0070.04217.70
5.6.150.0030.04817.98
5.6.140.0030.04117.83
5.6.130.0070.04217.86
5.6.120.0060.03817.85
5.6.110.0050.04517.92
5.6.100.0020.04417.82
5.6.90.0050.04717.96
5.6.80.0070.04017.55
5.6.70.0070.04017.52
5.6.60.0080.03817.47
5.6.50.0110.03417.55
5.6.40.0140.03617.56
5.6.30.0050.04217.36
5.6.20.0050.03617.37
5.6.10.0080.03317.57
5.6.00.0030.04217.38
5.5.380.0080.00414.10
5.5.370.0100.00314.59
5.5.360.0110.00014.34
5.5.350.0000.05217.49
5.5.340.0050.03817.77
5.5.330.0050.03917.72
5.5.320.0000.04317.74
5.5.310.0070.04517.74
5.5.300.0030.04317.61
5.5.290.0030.03017.77
5.5.280.0030.04717.65
5.5.270.0030.04717.69
5.5.260.0030.04517.77
5.5.250.0080.04017.68
5.5.240.0070.03617.32
5.5.230.0060.04117.37
5.5.220.0080.04117.26
5.5.210.0030.04317.29
5.5.200.0120.03517.38
5.5.190.0070.03817.49
5.5.180.0100.03717.19
5.5.170.0120.00314.30
5.5.160.0060.03417.38
5.5.150.0050.04217.20
5.5.140.0050.04017.30
5.5.130.0020.03917.42
5.5.120.0040.03217.42
5.5.110.0070.02217.34
5.5.100.0080.03717.16
5.5.90.0050.04517.34
5.5.80.0070.02717.36
5.5.70.0060.02117.17
5.5.60.0080.03217.00
5.5.50.0020.04317.24
5.5.40.0050.03717.19
5.5.30.0030.03317.48
5.5.20.0040.03917.29
5.5.10.0070.03917.30
5.5.00.0070.03317.35
5.4.450.0030.04315.55
5.4.440.0050.03815.59
5.4.430.0030.04015.52
5.4.420.0000.04415.50
5.4.410.0020.04215.51
5.4.400.0030.04015.46
5.4.390.0070.03815.41
5.4.380.0080.03815.45
5.4.370.0050.03015.40
5.4.360.0050.04115.53
5.4.350.0070.04015.52
5.4.340.0080.03515.52
5.4.330.0040.00811.84
5.4.320.0040.02915.42
5.4.310.0030.04015.50
5.4.300.0040.03915.45
5.4.290.0030.04015.51
5.4.280.0050.03715.48
5.4.270.0040.03615.42
5.4.260.0040.04415.42
5.4.250.0020.04315.44
5.4.240.0030.02315.34
5.4.230.0050.03815.44
5.4.220.0050.04015.41
5.4.210.0020.04215.44
5.4.200.0000.04015.45
5.4.190.0050.03715.51
5.4.180.0040.04015.42
5.4.170.0020.02215.41
5.4.160.0080.03515.44
5.4.150.0030.03915.33
5.4.140.0070.02014.15
5.4.130.0040.02814.07
5.4.120.0030.04014.05
5.4.110.0070.02314.14
5.4.100.0090.03414.07
5.4.90.0060.03014.13
5.4.80.0000.04314.04
5.4.70.0030.04114.04
5.4.60.0030.03914.03
5.4.50.0050.03914.04
5.4.40.0030.03814.10
5.4.30.0020.03514.05
5.4.20.0030.04214.01
5.4.10.0040.03914.18
5.4.00.0000.04213.70
5.3.290.0050.04313.21
5.3.280.0030.03613.19
5.3.270.0020.03013.19
5.3.260.0020.03213.18
5.3.250.0060.03813.17
5.3.240.0030.03113.19
5.3.230.0030.04013.18
5.3.220.0100.03713.12
5.3.210.0000.04013.16
5.3.200.0060.03713.19
5.3.190.0040.04113.18
5.3.180.0030.04213.17
5.3.170.0070.03713.18
5.3.160.0050.04113.18
5.3.150.0050.03913.18
5.3.140.0020.04113.18
5.3.130.0000.03713.18
5.3.120.0040.04113.16
5.3.110.0080.03813.17
5.3.100.0020.02512.90
5.3.90.0020.04012.90
5.3.80.0020.04112.87
5.3.70.0030.03512.82
5.3.60.0050.03712.89
5.3.50.0030.04012.88
5.3.40.0000.04112.86
5.3.30.0010.04012.79
5.3.20.0040.03912.68
5.3.10.0070.03412.72
5.3.00.0000.03612.64
5.2.170.0030.06011.09
5.2.160.0070.05311.12
5.2.150.0000.06311.08
5.2.140.0000.05311.12
5.2.130.0000.06011.08
5.2.120.0070.06311.07
5.2.110.0030.04011.03
5.2.100.0070.06010.88
5.2.90.0000.05711.01
5.2.80.0000.06711.06
5.2.70.0030.06311.04
5.2.60.0000.06311.03
5.2.50.0070.05710.94
5.2.40.0030.06010.97
5.2.30.0000.04010.96
5.2.20.0000.06310.75
5.2.10.0070.05310.76
5.2.00.0000.05010.64
5.1.60.0070.04710.64
5.1.50.0030.05710.64
5.1.40.0000.05710.64
5.1.30.0030.06010.64
5.1.20.0030.05310.64
5.1.10.0070.05010.64
5.1.00.0030.05310.64
5.0.50.0000.04710.64
5.0.40.0030.03710.64
5.0.30.0000.06310.64
5.0.20.0070.04010.64
5.0.10.0000.04310.64
5.0.00.0070.06310.64
4.4.90.0000.03010.64
4.4.80.0030.03310.64
4.4.70.0000.03010.64
4.4.60.0000.03710.64
4.4.50.0000.03710.64
4.4.40.0000.05310.64
4.4.30.0000.03010.64
4.4.20.0000.04010.64
4.4.10.0030.03010.64
4.4.00.0030.05310.64
4.3.110.0030.03010.64
4.3.100.0000.03710.64
4.3.90.0000.03310.64
4.3.80.0000.05710.64
4.3.70.0000.03710.64
4.3.60.0030.03310.64
4.3.50.0030.03310.64
4.3.40.0000.05310.64
4.3.30.0000.03310.64
4.3.20.0000.04010.64
4.3.10.0070.03010.64
4.3.00.0030.03010.64

preferences:
54.77 ms | 401 KiB | 5 Q