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 = '(' . implode('|', $stopwords) . ')'; var_dump($regexp); mb_regex_encoding('UTF-8'); var_dump(mb_regex_encoding()); $initResult = mb_ereg_search_init($text); var_dump($initResult); $totalResult = mb_ereg_search($regexp, "imz"); var_dump($totalResult); while($r = mb_ereg_search_getregs()) { var_dump($r); break; }

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.40.0090.00618.67
8.3.30.0090.00618.89
8.3.20.0000.00818.91
8.3.10.0080.00021.11
8.3.00.0080.00023.59
8.2.170.0110.00722.96
8.2.160.0100.00320.46
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00019.83
8.2.110.0060.00320.68
8.2.100.0080.00318.03
8.2.90.0080.00019.20
8.2.80.0080.00017.97
8.2.70.0080.00017.75
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0050.00318.47
8.2.30.0000.00819.96
8.2.20.0040.00417.63
8.2.10.0040.00417.82
8.2.00.0060.00617.71
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00922.46
8.1.230.0000.01120.85
8.1.220.0040.00418.77
8.1.210.0090.00019.10
8.1.200.0060.00317.25
8.1.190.0080.00017.53
8.1.180.0050.00518.10
8.1.170.0000.00818.83
8.1.160.0040.00418.95
8.1.150.0050.00318.84
8.1.140.0000.00717.66
8.1.130.0070.00017.91
8.1.120.0000.00717.69
8.1.110.0000.00817.61
8.1.100.0000.00717.64
8.1.90.0040.00417.61
8.1.80.0040.00417.60
8.1.70.0040.00417.59
8.1.60.0030.00517.76
8.1.50.0040.00417.62
8.1.40.0040.00417.65
8.1.30.0030.00617.82
8.1.20.0060.00317.88
8.1.10.0040.00417.71
8.1.00.0040.00417.56
8.0.300.0040.00420.01
8.0.290.0000.00717.30
8.0.280.0070.00018.60
8.0.270.0030.00317.41
8.0.260.0000.00616.96
8.0.250.0040.00417.14
8.0.240.0000.00817.08
8.0.230.0030.00317.14
8.0.220.0030.00317.02
8.0.210.0090.00017.07
8.0.200.0040.00417.12
8.0.190.0070.00017.13
8.0.180.0040.00417.11
8.0.170.0000.00817.11
8.0.160.0040.00417.07
8.0.150.0040.00417.03
8.0.140.0000.00817.03
8.0.130.0030.00313.56
8.0.120.0030.00616.92
8.0.110.0000.00717.16
8.0.100.0070.00017.06
8.0.90.0080.00017.04
8.0.80.0090.01317.04
8.0.70.0040.00416.91
8.0.60.0000.00717.13
8.0.50.0040.00416.89
8.0.30.0160.01017.08
8.0.20.0080.01017.40
8.0.10.0040.00417.04
8.0.00.0070.01016.73
7.4.330.0000.00514.87
7.4.320.0060.00016.77
7.4.300.0030.00316.67
7.4.290.0030.00316.48
7.4.280.0030.00516.54
7.4.270.0040.00416.63
7.4.260.0030.00313.26
7.4.250.0030.00516.72
7.4.240.0080.00016.75
7.4.230.0000.00716.45
7.4.220.0100.01016.46
7.4.210.0050.01416.69
7.4.200.0040.00416.53
7.4.190.0030.00516.86
7.4.160.0120.00416.75
7.4.150.0060.01217.40
7.4.140.0030.01517.86
7.4.130.0080.00916.64
7.4.120.0060.01116.48
7.4.110.0150.00416.51
7.4.100.0100.01416.38
7.4.90.0130.00416.75
7.4.80.0040.01419.37
7.4.70.0080.00816.56
7.4.60.0090.01016.60
7.4.50.0030.00616.66
7.4.40.0060.01022.27
7.4.30.0140.00616.38
7.4.00.0070.01014.79
7.3.330.0000.00513.29
7.3.320.0050.00513.23
7.3.310.0070.00016.36
7.3.300.0030.00316.28
7.3.290.0170.00616.43
7.3.280.0090.01116.41
7.3.270.0080.00817.40
7.3.260.0150.00618.24
7.3.250.0170.00816.46
7.3.240.0130.01016.34
7.3.230.0080.00816.39
7.3.210.0110.00616.23
7.3.200.0140.00619.39
7.3.190.0100.00616.55
7.3.180.0060.00916.38
7.3.170.0130.00416.27
7.3.160.0100.00716.38
7.3.120.0060.00915.01
7.3.110.0000.01614.96
7.3.100.0030.01014.91
7.3.90.0070.01014.73
7.3.80.0060.00614.73
7.3.70.0030.01014.72
7.3.60.0000.01314.71
7.3.50.0030.01014.95
7.3.40.0040.01114.90
7.3.30.0090.00614.75
7.3.20.0160.00016.76
7.3.10.0060.00716.59
7.3.00.0070.00716.67
7.2.330.0100.01316.64
7.2.320.0100.01316.72
7.2.310.0090.00916.60
7.2.300.0090.01216.49
7.2.290.0120.00616.71
7.2.240.0070.01014.88
7.2.230.0030.01414.78
7.2.220.0060.00915.06
7.2.210.0060.00615.11
7.2.200.0070.01014.83
7.2.190.0110.00015.01
7.2.180.0040.00415.04
7.2.170.0040.01114.89
7.2.160.0120.00014.90
7.2.150.0090.00316.84
7.2.140.0060.01017.14
7.2.130.0060.00716.82
7.2.120.0060.00816.78
7.2.110.0070.00716.93
7.2.100.0060.00716.81
7.2.90.0080.00716.85
7.2.80.0060.00616.81
7.2.70.0050.01016.89
7.2.60.0070.00616.78
7.2.50.0030.01016.90
7.2.40.0060.00716.88
7.2.30.0080.00616.95
7.2.20.0070.00416.94
7.2.10.0050.00716.85
7.2.00.0060.00817.31
7.1.330.0090.00616.09
7.1.320.0030.01015.96
7.1.310.0040.01215.77
7.1.300.0040.00815.89
7.1.290.0040.00916.03
7.1.280.0060.01015.66
7.1.270.0030.01315.82
7.1.260.0040.00715.99
7.1.250.0050.00815.91
7.1.240.0060.00716.12
7.1.230.0040.00615.87
7.1.220.0050.01015.99
7.1.210.0040.01015.98
7.1.200.0050.00816.05
7.1.190.0060.00616.00
7.1.180.0070.00515.87
7.1.170.0030.01215.81
7.1.160.0060.00715.80
7.1.150.0020.01015.83
7.1.140.0050.00515.94
7.1.130.0030.00615.99
7.1.120.0050.00815.98
7.1.110.0080.00615.73
7.1.100.0030.00916.64
7.1.90.0060.00515.91
7.1.80.0050.00915.84
7.1.70.0040.00816.48
7.1.60.0050.01117.10
7.1.50.0120.00616.45
7.1.40.0060.00316.02
7.1.30.0050.00815.86
7.1.20.0020.00915.89
7.1.10.0080.00215.88
7.1.00.0070.02718.13
7.0.330.0040.00815.64
7.0.320.0060.00215.52
7.0.310.0110.00315.57
7.0.300.0000.01015.51
7.0.290.0040.00515.46
7.0.280.0000.01215.45
7.0.270.0060.00715.62
7.0.260.0090.00415.54
7.0.250.0080.00315.68
7.0.240.0070.00615.54
7.0.230.0060.00715.64
7.0.220.0060.00715.64
7.0.210.0050.00815.34
7.0.200.0040.00616.00
7.0.190.0040.00915.50
7.0.180.0030.00715.71
7.0.170.0060.00715.58
7.0.160.0050.00815.40
7.0.150.0030.00715.65
7.0.140.0050.02717.76
7.0.130.0020.01415.45
7.0.120.0030.01015.42
7.0.110.0080.00315.65
7.0.100.0050.01015.62
7.0.90.0070.00515.43
7.0.80.0080.00315.44
7.0.70.0050.02217.77
7.0.60.0050.01817.54
7.0.50.0040.03217.77
7.0.40.0060.03215.75
7.0.30.0070.02915.80
7.0.20.0040.03415.75
7.0.10.0040.02915.75
7.0.00.0020.02515.72
5.6.380.0080.00714.83
5.6.370.0120.00314.55
5.6.360.0090.00514.48
5.6.350.0060.01014.47
5.6.340.0080.00314.18
5.6.330.0040.01014.49
5.6.320.0050.00914.65
5.6.310.0090.00514.38
5.6.300.0070.00514.60
5.6.290.0070.00714.43
5.6.280.0050.02816.62
5.6.270.0120.00314.53
5.6.260.0090.00714.49
5.6.250.0050.00814.55
5.6.240.0100.00514.32
5.6.230.0070.01014.55
5.6.220.0070.03116.56
5.6.210.0060.02916.52
5.6.200.0030.03816.73
5.6.190.0080.03016.66
5.6.180.0040.02516.71
5.6.170.0020.03716.71
5.6.160.0060.03016.62
5.6.150.0100.02216.81
5.6.140.0070.02616.68
5.6.130.0070.03216.68
5.6.120.0030.03816.65
5.6.110.0100.03016.79
5.6.100.0070.02616.67
5.6.90.0050.02616.70
5.6.80.0020.02116.41
5.6.70.0060.02916.38
5.6.60.0050.03116.42
5.6.50.0040.02416.52
5.6.40.0060.03316.44
5.6.30.0090.02716.37
5.6.20.0060.02316.49
5.6.10.0060.03016.43
5.6.00.0050.03216.45
5.5.380.0030.01011.18
5.5.370.0060.00611.37
5.5.360.0050.03114.20
5.5.350.0050.03114.47
5.5.340.0040.02914.56
5.5.330.0060.03014.46
5.5.320.0010.03214.52
5.5.310.0100.02614.25
5.5.300.0040.01514.53
5.5.290.0040.03114.44
5.5.280.0030.03614.46
5.5.270.0040.03314.39
5.5.260.0090.02914.41
5.5.250.0040.03214.29
5.5.240.0050.02914.26
5.5.230.0070.02814.31
5.5.220.0050.02714.14
5.5.210.0030.03114.26
5.5.200.0040.03114.17
5.5.190.0030.03314.15
5.5.180.0050.03014.26
5.5.170.0050.01012.67
5.5.160.0050.02214.21
5.5.150.0040.03014.20
5.5.140.0040.02114.34
5.5.130.0030.02914.18
5.5.120.0020.02114.09
5.5.110.0030.01814.11
5.5.100.0060.01914.13
5.5.90.0040.01914.12
5.5.80.0060.01414.12
5.5.70.0060.02714.16
5.5.60.0050.02814.02
5.5.50.0070.02114.25
5.5.40.0050.02914.10
5.5.30.0080.02514.13
5.5.20.0040.03113.98
5.5.10.0020.03214.08
5.5.00.0060.03114.07
5.4.450.0050.02013.78
5.4.440.0050.02813.84
5.4.430.0040.03113.87
5.4.420.0010.03413.70
5.4.410.0030.03113.58
5.4.400.0020.02313.78
5.4.390.0040.02313.47
5.4.380.0050.02813.64
5.4.370.0050.02613.74
5.4.360.0050.02913.74
5.4.350.0060.02613.68
5.4.340.0010.03113.53
5.4.330.0040.00710.69
5.4.320.0040.02413.71
5.4.310.0050.01913.53
5.4.300.0020.02213.71
5.4.290.0050.02513.55
5.4.280.0050.03013.50
5.4.270.0030.03013.68
5.4.260.0050.02013.59
5.4.250.0040.01413.66
5.4.240.0050.02713.38
5.4.230.0050.02913.72
5.4.220.0040.03013.66
5.4.210.0030.02213.63
5.4.200.0030.02813.68
5.4.190.0020.02513.67
5.4.180.0040.03313.72
5.4.170.0030.02913.39
5.4.160.0050.02713.68
5.4.150.0040.03113.59
5.4.140.0080.02112.68
5.4.130.0040.02912.72
5.4.120.0050.01912.79
5.4.110.0070.02712.67
5.4.100.0030.02512.66
5.4.90.0030.02112.70
5.4.80.0060.02012.70
5.4.70.0040.02912.79
5.4.60.0040.02312.65
5.4.50.0030.02212.83
5.4.40.0040.02812.69
5.4.30.0030.02312.66
5.4.20.0050.02512.77
5.4.10.0060.02912.77
5.4.00.0040.02812.59
5.3.290.0040.02111.81
5.3.280.0070.02911.83
5.3.270.0020.03111.66
5.3.260.0060.02311.85
5.3.250.0050.02311.72
5.3.240.0050.02911.66
5.3.230.0020.02211.85
5.3.220.0040.03111.73
5.3.210.0030.02411.80
5.3.200.0020.01811.64
5.3.190.0050.03011.74
5.3.180.0060.02411.77
5.3.170.0030.03211.88
5.3.160.0020.02511.81
5.3.150.0020.03211.74
5.3.140.0040.01511.84
5.3.130.0060.02411.73
5.3.120.0020.02511.64
5.3.110.0030.01911.71
5.3.100.0040.02711.64
5.3.90.0020.02811.64
5.3.80.0060.02711.59
5.3.70.0030.02811.48
5.3.60.0030.03011.65
5.3.50.0040.02611.48
5.3.40.0040.02911.47
5.3.30.0060.02711.55
5.3.20.0010.02611.51
5.3.10.0030.02711.35
5.3.00.0050.02611.32
5.2.170.0040.02010.35
5.2.160.0010.02410.37
5.2.150.0020.02410.41
5.2.140.0040.01710.41
5.2.130.0050.01410.44
5.2.120.0040.02410.38
5.2.110.0060.02210.41
5.2.100.0020.02510.37
5.2.90.0030.02210.45
5.2.80.0050.02010.34
5.2.70.0030.02310.37
5.2.60.0040.01710.40
5.2.50.0020.01610.41
5.2.40.0050.02210.43
5.2.30.0030.02310.38
5.2.20.0040.02510.38
5.2.10.0050.02110.32
5.2.00.0030.02310.33
5.1.60.0030.02110.14
5.1.50.0040.02010.14
5.1.40.0050.01310.16
5.1.30.0050.02110.20
5.1.20.0040.02010.11
5.1.10.0050.02010.05
5.1.00.0040.01810.08
5.0.50.0020.01710.05
5.0.40.0050.01610.05
5.0.30.0060.02010.05
5.0.20.0010.01910.05
5.0.10.0030.01510.05
5.0.00.0020.02210.05
4.4.90.0000.01610.05
4.4.80.0010.01510.05
4.4.70.0000.01610.05
4.4.60.0030.01310.05
4.4.50.0010.01210.05
4.4.40.0020.01910.05
4.4.30.0030.01010.05
4.4.20.0020.01310.05
4.4.10.0020.01510.05
4.4.00.0010.01710.05
4.3.110.0020.01410.05
4.3.100.0010.01510.05
4.3.90.0010.01210.05
4.3.80.0010.01410.05
4.3.70.0020.01010.05
4.3.60.0030.01310.05
4.3.50.0040.01310.05
4.3.40.0020.02010.05
4.3.30.0000.01610.05
4.3.20.0020.01410.05
4.3.10.0030.01210.05
4.3.00.0020.01310.05

preferences:
41.06 ms | 400 KiB | 5 Q