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'); $initResult = mb_ereg_search_init($text); var_dump($initResult); $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.0070.00716.50
8.3.50.0090.01218.49
8.3.40.0110.00318.88
8.3.30.0140.00018.67
8.3.20.0030.00618.77
8.3.10.0060.00320.27
8.3.00.0000.00819.26
8.2.180.0100.01016.88
8.2.170.0110.00422.96
8.2.160.0100.00718.69
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00618.94
8.2.110.0040.00720.88
8.2.100.0120.00017.91
8.2.90.0040.00419.59
8.2.80.0000.00819.32
8.2.70.0050.00317.63
8.2.60.0080.00017.93
8.2.50.0060.00618.07
8.2.40.0080.00018.28
8.2.30.0070.00018.04
8.2.20.0060.00317.65
8.2.10.0040.00417.93
8.2.00.0070.00017.71
8.1.280.0100.00325.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00522.72
8.1.230.0080.00321.04
8.1.220.0040.00417.88
8.1.210.0040.00418.92
8.1.200.0030.00617.48
8.1.190.0000.00817.66
8.1.180.0040.00418.10
8.1.170.0000.00818.94
8.1.160.0000.00719.08
8.1.150.0040.00418.72
8.1.140.0040.00417.62
8.1.130.0000.00717.89
8.1.120.0040.00317.51
8.1.110.0020.00517.60
8.1.100.0040.00417.45
8.1.90.0000.00717.50
8.1.80.0000.00717.60
8.1.70.0030.00317.60
8.1.60.0040.00417.72
8.1.50.0090.00017.59
8.1.40.0050.00217.67
8.1.30.0000.00817.68
8.1.20.0050.00217.84
8.1.10.0000.00717.65
8.1.00.0040.00417.62
8.0.300.0040.00420.16
8.0.290.0040.00416.88
8.0.280.0070.00018.51
8.0.270.0030.00317.37
8.0.260.0080.00016.91
8.0.250.0040.00417.15
8.0.240.0030.00317.14
8.0.230.0040.00417.07
8.0.220.0030.00317.08
8.0.210.0020.00517.05
8.0.200.0070.00017.11
8.0.190.0050.00317.09
8.0.180.0030.00517.08
8.0.170.0060.00316.88
8.0.160.0000.00717.03
8.0.150.0040.00417.08
8.0.140.0040.00416.92
8.0.130.0050.00013.44
8.0.120.0000.00816.99
8.0.110.0030.00516.84
8.0.100.0000.00716.84
8.0.90.0040.00417.10
8.0.80.0070.00717.01
8.0.70.0080.00016.92
8.0.60.0070.00017.06
8.0.50.0040.00416.79
8.0.30.0060.00917.04
8.0.20.0080.01417.17
8.0.10.0050.00217.10
8.0.00.0110.01116.92
7.4.330.0000.00512.96
7.4.320.0030.00316.71
7.4.300.0060.00316.76
7.4.290.0070.00016.77
7.4.280.0060.00316.73
7.4.270.0020.00516.70
7.4.260.0000.00513.39
7.4.250.0080.00016.70
7.4.240.0040.00416.64
7.4.230.0030.00316.63
7.4.220.0170.01416.76
7.4.210.0040.01116.79
7.4.200.0030.00316.41
7.4.190.0030.00316.79
7.4.160.0200.00316.55
7.4.150.0100.00716.60
7.4.140.0070.01716.43
7.4.130.0110.00916.57
7.4.120.0060.01016.51
7.4.110.0060.01216.72
7.4.100.0100.00716.73
7.4.90.0070.01116.49
7.4.80.0100.00619.39
7.4.70.0140.00516.57
7.4.60.0070.00916.63
7.4.50.0000.00516.62
7.4.40.0100.00716.29
7.4.30.0090.00616.38
7.4.00.0090.00615.24
7.3.330.0030.00313.24
7.3.320.0060.00013.29
7.3.310.0030.00316.18
7.3.300.0040.00416.26
7.3.290.0050.00916.40
7.3.280.0080.01316.37
7.3.270.0100.01316.52
7.3.260.0150.00816.60
7.3.250.0070.01216.57
7.3.240.0030.01316.30
7.3.230.0060.01216.29
7.3.210.0060.01216.51
7.3.200.0100.00616.29
7.3.190.0040.01716.29
7.3.180.0030.01216.19
7.3.170.0030.01316.32
7.3.160.0120.00616.53
7.3.120.0070.00714.80
7.3.110.0040.01214.68
7.3.100.0030.00714.82
7.3.90.0060.01014.95
7.3.80.0060.00914.96
7.3.70.0070.00714.84
7.3.60.0040.01114.82
7.3.50.0030.01314.88
7.3.40.0060.00314.74
7.3.30.0100.00314.88
7.3.20.0000.01316.39
7.3.10.0030.01016.71
7.3.00.0070.00816.52
7.2.330.0060.01216.65
7.2.320.0140.01116.64
7.2.310.0030.01316.66
7.2.300.0100.01316.59
7.2.290.0080.00816.68
7.2.240.0100.00315.06
7.2.230.0030.01315.09
7.2.220.0060.00614.96
7.2.210.0060.00914.96
7.2.200.0000.00915.13
7.2.190.0030.00714.86
7.2.180.0060.00614.88
7.2.170.0070.00714.95
7.2.160.0030.01015.09
7.2.150.0060.01016.93
7.2.140.0100.00317.11
7.2.130.0030.01216.76
7.2.120.0050.01016.91
7.2.110.0020.01216.81
7.2.100.0070.00616.90
7.2.90.0110.00416.72
7.2.80.0060.00617.07
7.2.70.0090.00216.81
7.2.60.0070.00516.92
7.2.50.0090.00416.87
7.2.40.0030.00816.94
7.2.30.0090.00816.79
7.2.20.0080.00417.06
7.2.10.0070.00716.97
7.2.00.0090.01017.76
7.1.330.0030.01015.94
7.1.320.0080.00316.05
7.1.310.0080.00415.91
7.1.300.0080.00816.08
7.1.290.0030.01015.93
7.1.280.0100.00315.78
7.1.270.0070.00715.95
7.1.260.0030.01015.91
7.1.250.0040.00715.97
7.1.100.0070.01018.21
7.1.70.0100.00616.93
7.1.60.0030.02219.31
7.1.50.0070.01317.26
7.1.00.0000.06022.46
7.0.200.0110.00815.05
7.0.140.0000.07322.20
7.0.120.0070.07022.13
7.0.60.0100.08319.99
7.0.50.0170.06718.01
7.0.40.0100.06320.35
7.0.30.0370.06320.13
7.0.20.0200.07020.07
7.0.10.0070.04320.17
7.0.00.0070.08720.16
5.6.280.0070.07020.98
5.6.210.0070.08320.72
5.6.200.0070.04718.33
5.6.190.0100.08020.68
5.6.180.0370.04320.46
5.6.170.0170.04320.59
5.6.160.0100.05320.52
5.6.150.0100.04718.29
5.6.140.0100.07318.29
5.6.130.0130.08018.25
5.6.120.0030.04020.97
5.6.110.0030.08021.04
5.6.100.0100.08321.07
5.6.90.0070.03721.18
5.6.80.0200.07020.44
5.5.350.0300.07320.35
5.5.340.0170.07018.12
5.5.330.0100.05320.32
5.5.320.0300.03720.36
5.5.310.0300.06320.35
5.5.300.0070.05718.12
5.5.290.0100.07018.13
5.5.280.0130.04720.93
5.5.270.0030.04021.00
5.5.260.0000.04320.95
5.5.250.0100.05720.66
5.5.240.0070.07720.34
5.4.450.0130.07319.41
5.4.440.0100.04719.46
5.4.430.0070.06319.10
5.4.420.0070.07719.48
5.4.410.0070.07019.11
5.4.400.0030.05719.09
5.4.390.0130.05718.92
5.4.380.0030.08019.10
5.4.370.0100.07018.81
5.4.360.0030.07019.00
5.4.350.0100.07318.79
5.4.340.0070.07719.18
5.4.320.0070.05019.16
5.4.310.0070.06019.00
5.4.300.0070.05019.18
5.4.290.0100.06718.80
5.4.280.0170.03719.08
5.4.270.0030.06319.11
5.4.260.0000.06319.18
5.4.250.0070.06318.78
5.4.240.0130.06719.14
5.4.230.0030.07719.11
5.4.220.0130.07018.91
5.4.210.0000.06019.00
5.4.200.0170.07019.17
5.4.190.0070.06319.07
5.4.180.0030.07319.13
5.4.170.0030.04319.11
5.4.160.0030.03719.12
5.4.150.0070.03718.90
5.4.140.0070.03716.34
5.4.130.0070.03316.48
5.4.120.0070.03316.39
5.4.110.0000.04316.31
5.4.100.0030.03716.44
5.4.90.0030.03716.41
5.4.80.0030.03316.38
5.4.70.0030.03316.34
5.4.60.0000.03716.40
5.4.50.0000.04016.26
5.4.40.0030.03316.21
5.4.30.0030.03716.21
5.4.20.0030.03316.59
5.4.10.0130.03716.24
5.4.00.0100.03015.66
5.3.290.0130.07014.61
5.3.280.0070.04314.57
5.3.270.0200.06714.39
5.3.260.0000.08014.54
5.3.250.0070.03314.53
5.3.240.0100.03714.48
5.3.230.0030.03714.49
5.3.220.0030.03714.53
5.3.210.0030.04014.50
5.3.200.0000.04014.46
5.3.190.0000.04014.39
5.3.180.0070.03314.48
5.3.170.0100.03014.58
5.3.160.0030.03314.57
5.3.150.0130.03014.50
5.3.140.0100.03314.43
5.3.130.0000.04314.47
5.3.120.0030.04014.47
5.3.110.0070.04014.52
5.3.100.0000.03713.98
5.3.90.0000.03713.96
5.3.80.0000.04313.97
5.3.70.0030.03313.97
5.3.60.0000.03713.93
5.3.50.0070.03313.91
5.3.40.0000.04313.87
5.3.30.0030.03713.84
5.3.20.0070.03013.61
5.3.10.0070.03313.45
5.3.00.0070.07013.56
5.2.170.0030.02710.96
5.2.160.0070.02311.30
5.2.150.0030.02711.08
5.2.140.0030.02711.07
5.2.130.0030.02710.92
5.2.120.0030.02711.27
5.2.110.0000.03010.99
5.2.100.0030.03011.10
5.2.90.0000.03011.00
5.2.80.0000.03311.25
5.2.70.0100.02310.91
5.2.60.0000.03010.90
5.2.50.0100.02011.17
5.2.40.0000.03010.96
5.2.30.0070.02310.96
5.2.20.0000.03010.96
5.2.10.0000.03710.86
5.2.00.0030.02710.71
5.1.60.0000.02310.03
5.1.50.0030.0239.83
5.1.40.0030.02010.02
5.1.30.0030.02310.29
5.1.20.0030.04010.43
5.1.10.0030.02310.06
5.1.00.0030.03010.08
5.0.50.0000.0208.50
5.0.40.0100.0138.48
5.0.30.0100.0408.29
5.0.20.0030.0238.19
5.0.10.0030.0438.07
5.0.00.0000.0608.20
4.4.90.0000.0178.02
4.4.80.0000.0138.02
4.4.70.0000.0178.02
4.4.60.0000.0178.02
4.4.50.0000.0138.02
4.4.40.0030.0238.02
4.4.30.0030.0138.02
4.4.20.0030.0138.02
4.4.10.0070.0108.02
4.4.00.0000.0308.02
4.3.110.0030.0338.02
4.3.100.0030.0178.02
4.3.90.0000.0378.02
4.3.80.0030.0438.02
4.3.70.0000.0308.02
4.3.60.0000.0408.02
4.3.50.0000.0238.02
4.3.40.0000.0408.02
4.3.30.0000.0338.02
4.3.20.0030.0378.02
4.3.10.0030.0308.02
4.3.00.0000.0408.02

preferences:
31.88 ms | 401 KiB | 5 Q