3v4l.org

run code in 300+ PHP versions simultaneously
<?php $anchor = "中文网站100强"; if ( preg_match("/\p{Arabic}+/u", $anchor) ) { print "Arabic"; } if ( preg_match("/\p{Armenian}+/u", $anchor) ) { print "Armenian"; } if ( preg_match("/\p{Avestan}+/u", $anchor) ) { print "Avestan"; } if ( preg_match("/\p{Balinese}+/u", $anchor) ) { print "Balinese"; } if ( preg_match("/\p{Bamum}+/u", $anchor) ) { print "Bamum"; } if ( preg_match("/\p{Batak}+/u", $anchor) ) { print "Batak"; } if ( preg_match("/\p{Bengali}+/u", $anchor) ) { print "Bengali"; } if ( preg_match("/\p{Bopomofo}+/u", $anchor) ) { print "Bopomofo"; } if ( preg_match("/\p{Brahmi}+/u", $anchor) ) { print "Brahmi"; } if ( preg_match("/\p{Braille}+/u", $anchor) ) { print "Braille"; } if ( preg_match("/\p{Buginese}+/u", $anchor) ) { print "Buginese"; } if ( preg_match("/\p{Buhid}+/u", $anchor) ) { print "Buhid"; } if ( preg_match("/\p{Canadian_Aboriginal}+/u", $anchor) ) { print "Canadian_Aboriginal"; } if ( preg_match("/\p{Carian}+/u", $anchor) ) { print "Carian"; } if ( preg_match("/\p{Chakma}+/u", $anchor) ) { print "Chakma"; } if ( preg_match("/\p{Cham}+/u", $anchor) ) { print "Cham"; } if ( preg_match("/\p{Cherokee}+/u", $anchor) ) { print "Cherokee"; } if ( preg_match("/\p{Common}+/u", $anchor) ) { print "Common"; } if ( preg_match("/\p{Coptic}+/u", $anchor) ) { print "Coptic"; } if ( preg_match("/\p{Cuneiform}+/u", $anchor) ) { print "Cuneiform"; } if ( preg_match("/\p{Cypriot}+/u", $anchor) ) { print "Cypriot"; } if ( preg_match("/\p{Cyrillic}+/u", $anchor) ) { print "Cyrillic"; } if ( preg_match("/\p{Deseret}+/u", $anchor) ) { print "Deseret"; } if ( preg_match("/\p{Devanagari}+/u", $anchor) ) { print "Devanagari"; } if ( preg_match("/\p{Egyptian_Hieroglyphs}+/u", $anchor) ) { print "Egyptian_Hieroglyphs"; } if ( preg_match("/\p{Ethiopic}+/u", $anchor) ) { print "Ethiopic"; } if ( preg_match("/\p{Georgian}+/u", $anchor) ) { print "Georgian"; } if ( preg_match("/\p{Glagolitic}+/u", $anchor) ) { print "Glagolitic"; } if ( preg_match("/\p{Gothic}+/u", $anchor) ) { print "Gothic"; } if ( preg_match("/\p{Greek}+/u", $anchor) ) { print "Greek"; } if ( preg_match("/\p{Gujarati}+/u", $anchor) ) { print "Gujarati"; } if ( preg_match("/\p{Gurmukhi}+/u", $anchor) ) { print "Gurmukhi"; } if ( preg_match("/\p{Han}+/u", $anchor) ) { print "Han"; } if ( preg_match("/\p{Hangul}+/u", $anchor) ) { print "Hangul"; } if ( preg_match("/\p{Hanunoo}+/u", $anchor) ) { print "Hanunoo"; } if ( preg_match("/\p{Hebrew}+/u", $anchor) ) { print "Hebrew"; } if ( preg_match("/\p{Hiragana}+/u", $anchor) ) { print "Hiragana"; } if ( preg_match("/\p{Imperial_Aramaic}+/u", $anchor) ) { print "Imperial_Aramaic"; } if ( preg_match("/\p{Inherited}+/u", $anchor) ) { print "Inherited"; } if ( preg_match("/\p{Inscriptional_Pahlavi}+/u", $anchor) ) { print "Inscriptional_Pahlavi"; } if ( preg_match("/\p{Inscriptional_Parthian}+/u", $anchor) ) { print "Inscriptional_Parthian"; } if ( preg_match("/\p{Javanese}+/u", $anchor) ) { print "Javanese"; } if ( preg_match("/\p{Kaithi}+/u", $anchor) ) { print "Kaithi"; } if ( preg_match("/\p{Kannada}+/u", $anchor) ) { print "Kannada"; } if ( preg_match("/\p{Katakana}+/u", $anchor) ) { print "Katakana"; } if ( preg_match("/\p{Kayah_Li}+/u", $anchor) ) { print "Kayah_Li"; } if ( preg_match("/\p{Kharoshthi}+/u", $anchor) ) { print "Kharoshthi"; } if ( preg_match("/\p{Khmer}+/u", $anchor) ) { print "Khmer"; } if ( preg_match("/\p{Lao}+/u", $anchor) ) { print "Lao"; } if ( preg_match("/\p{Latin}+/u", $anchor) ) { print "Latin"; } if ( preg_match("/\p{Lepcha}+/u", $anchor) ) { print "Lepcha"; } if ( preg_match("/\p{Limbu}+/u", $anchor) ) { print "Limbu"; } if ( preg_match("/\p{Linear_B}+/u", $anchor) ) { print "Linear_B"; } if ( preg_match("/\p{Lisu}+/u", $anchor) ) { print "Lisu"; } if ( preg_match("/\p{Lycian}+/u", $anchor) ) { print "Lycian"; } if ( preg_match("/\p{Lydian}+/u", $anchor) ) { print "Lydian"; } if ( preg_match("/\p{Malayalam}+/u", $anchor) ) { print "Malayalam"; } if ( preg_match("/\p{Mandaic}+/u", $anchor) ) { print "Mandaic"; } if ( preg_match("/\p{Meetei_Mayek}+/u", $anchor) ) { print "Meetei_Mayek"; } if ( preg_match("/\p{Meroitic_Cursive}+/u", $anchor) ) { print "Meroitic_Cursive"; } if ( preg_match("/\p{Meroitic_Hieroglyphs}+/u", $anchor) ) { print "Meroitic_Hieroglyphs"; } if ( preg_match("/\p{Miao}+/u", $anchor) ) { print "Miao"; } if ( preg_match("/\p{Mongolian}+/u", $anchor) ) { print "Mongolian"; } if ( preg_match("/\p{Myanmar}+/u", $anchor) ) { print "Myanmar"; } if ( preg_match("/\p{New_Tai_Lue}+/u", $anchor) ) { print "New_Tai_Lue"; } if ( preg_match("/\p{Nko}+/u", $anchor) ) { print "Nko"; } if ( preg_match("/\p{Ogham}+/u", $anchor) ) { print "Ogham"; } if ( preg_match("/\p{Old_Italic}+/u", $anchor) ) { print "Old_Italic"; } if ( preg_match("/\p{Old_Persian}+/u", $anchor) ) { print "Old_Persian"; } if ( preg_match("/\p{Old_South_Arabian}+/u", $anchor) ) { print "Old_South_Arabian"; } if ( preg_match("/\p{Old_Turkic}+/u", $anchor) ) { print "Old_Turkic"; } if ( preg_match("/\p{Ol_Chiki}+/u", $anchor) ) { print "Ol_Chiki"; } if ( preg_match("/\p{Oriya}+/u", $anchor) ) { print "Oriya"; } if ( preg_match("/\p{Osmanya}+/u", $anchor) ) { print "Osmanya"; } if ( preg_match("/\p{Phags_Pa}+/u", $anchor) ) { print "Phags_Pa"; } if ( preg_match("/\p{Phoenician}+/u", $anchor) ) { print "Phoenician"; } if ( preg_match("/\p{Rejang}+/u", $anchor) ) { print "Rejang"; } if ( preg_match("/\p{Runic}+/u", $anchor) ) { print "Runic"; } if ( preg_match("/\p{Samaritan}+/u", $anchor) ) { print "Samaritan"; } if ( preg_match("/\p{Saurashtra}+/u", $anchor) ) { print "Saurashtra"; } if ( preg_match("/\p{Sharada}+/u", $anchor) ) { print "Sharada"; } if ( preg_match("/\p{Shavian}+/u", $anchor) ) { print "Shavian"; } if ( preg_match("/\p{Sinhala}+/u", $anchor) ) { print "Sinhala"; } if ( preg_match("/\p{Sora_Sompeng}+/u", $anchor) ) { print "Sora_Sompeng"; } if ( preg_match("/\p{Sundanese}+/u", $anchor) ) { print "Sundanese"; } if ( preg_match("/\p{Syloti_Nagri}+/u", $anchor) ) { print "Syloti_Nagri"; } if ( preg_match("/\p{Syriac}+/u", $anchor) ) { print "Syriac"; } if ( preg_match("/\p{Tagalog}+/u", $anchor) ) { print "Tagalog"; } if ( preg_match("/\p{Tagbanwa}+/u", $anchor) ) { print "Tagbanwa"; } if ( preg_match("/\p{Tai_Le}+/u", $anchor) ) { print "Tai_Le"; } if ( preg_match("/\p{Tai_Tham}+/u", $anchor) ) { print "Tai_Tham"; } if ( preg_match("/\p{Tai_Viet}+/u", $anchor) ) { print "Tai_Viet"; } if ( preg_match("/\p{Takri}+/u", $anchor) ) { print "Takri"; } if ( preg_match("/\p{Tamil}+/u", $anchor) ) { print "Tamil"; } if ( preg_match("/\p{Telugu}+/u", $anchor) ) { print "Telugu"; } if ( preg_match("/\p{Thaana}+/u", $anchor) ) { print "Thaana"; } if ( preg_match("/\p{Thai}+/u", $anchor) ) { print "Thai"; } if ( preg_match("/\p{Tibetan}+/u", $anchor) ) { print "Tibetan"; } if ( preg_match("/\p{Tifinagh}+/u", $anchor) ) { print "Tifinagh"; } if ( preg_match("/\p{Ugaritic}+/u", $anchor) ) { print "Ugaritic"; } if ( preg_match("/\p{Vai}+/u", $anchor) ) { print "Vai"; } if ( preg_match("/\p{Yi}+/u", $anchor) ) { print "Yi"; } ?>

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.00917.13
8.3.50.0100.01616.84
8.3.40.0160.00619.26
8.3.30.0070.01519.17
8.3.20.0030.00619.10
8.3.10.0030.00619.23
8.3.00.0030.00619.76
8.2.180.0120.00818.66
8.2.170.0090.00922.96
8.2.160.0070.00721.33
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0000.00820.88
8.2.110.0070.00421.10
8.2.100.0040.00818.22
8.2.90.0030.00721.32
8.2.80.0040.00419.59
8.2.70.0060.00318.13
8.2.60.0030.00618.18
8.2.50.0050.00918.13
8.2.40.0000.00818.41
8.2.30.0000.00818.40
8.2.20.0060.00318.22
8.2.10.0030.00618.11
8.2.00.0000.01218.25
8.1.280.0110.01125.92
8.1.270.0060.00924.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00322.71
8.1.230.0030.01021.13
8.1.220.0060.00317.77
8.1.210.0000.01019.20
8.1.200.0070.00417.73
8.1.190.0080.00017.55
8.1.180.0100.00018.10
8.1.170.0100.00020.71
8.1.160.0000.00819.25
8.1.150.0080.00019.05
8.1.140.0000.01117.80
8.1.130.0040.00418.16
8.1.120.0040.00417.85
8.1.110.0030.00617.72
8.1.100.0000.00817.84
8.1.90.0050.00317.86
8.1.80.0000.00917.75
8.1.70.0000.00917.78
8.1.60.0040.01117.84
8.1.50.0030.00517.85
8.1.40.0000.00917.90
8.1.30.0030.00617.95
8.1.20.0000.00817.84
8.1.10.0000.00917.91
8.1.00.0060.00317.93
8.0.300.0000.00820.41
8.0.290.0030.00517.38
8.0.280.0090.00018.85
8.0.270.0000.00817.56
8.0.260.0000.00717.34
8.0.250.0090.00017.40
8.0.240.0030.00517.39
8.0.230.0040.00417.35
8.0.220.0000.00817.30
8.0.210.0030.00517.22
8.0.200.0040.00417.38
8.0.190.0030.00617.37
8.0.180.0060.00317.21
8.0.170.0100.00017.30
8.0.160.0030.00617.33
8.0.150.0030.00617.28
8.0.140.0130.00417.25
8.0.130.0000.00713.78
8.0.120.0000.00917.26
8.0.110.0000.00817.29
8.0.100.0030.00817.19
8.0.90.0000.00817.43
8.0.80.0030.01517.28
8.0.70.0030.00517.22
8.0.60.0040.00417.34
8.0.50.0000.00917.33
8.0.30.0060.01517.32
8.0.20.0120.01317.57
8.0.10.0060.00317.49
8.0.00.0090.01217.29
7.4.330.0000.00613.36
7.4.320.0000.00716.92
7.4.300.0020.00516.91
7.4.290.0000.01116.82
7.4.280.0040.00417.07
7.4.270.0000.00917.07
7.4.260.0000.00613.59
7.4.250.0000.00917.00
7.4.240.0040.00416.95
7.4.230.0040.00417.02
7.4.220.0120.01317.00
7.4.210.0080.01116.93
7.4.200.0030.00617.03
7.4.190.0040.00416.84
7.4.160.0070.01016.99
7.4.150.0110.00816.75
7.4.140.0090.01116.95
7.4.130.0100.01316.87
7.4.120.0090.01116.82
7.4.110.0100.01016.67
7.4.100.0150.00616.78
7.4.90.0100.01016.80
7.4.80.0060.01619.39
7.4.70.0000.02416.88
7.4.60.0090.00916.90
7.4.50.0000.00916.96
7.4.40.0080.00717.02
7.4.30.0120.00616.78
7.4.00.0050.01215.39
7.3.330.0000.01013.35
7.3.320.0000.00713.35
7.3.310.0070.00016.59
7.3.300.0000.00816.64
7.3.290.0100.00716.60
7.3.280.0100.01216.65
7.3.270.0100.01017.09
7.3.260.0030.01616.64
7.3.250.0120.00916.91
7.3.240.0090.01216.69
7.3.230.0090.00916.66
7.3.210.0090.01016.74
7.3.200.0000.02716.75
7.3.190.0060.01216.68
7.3.180.0070.01116.75
7.3.170.0080.01216.93
7.3.160.0060.01216.73
7.3.120.0150.00115.31
7.3.110.0060.01515.36
7.3.100.0110.00815.30
7.3.90.0030.01415.13
7.3.80.0040.01115.11
7.3.70.0070.01115.36
7.3.60.0090.00315.02
7.3.50.0110.00715.03
7.3.40.0070.01015.27
7.3.30.0100.00614.97
7.3.20.0040.01216.99
7.3.10.0000.01517.02
7.3.00.0060.00616.81
7.2.330.0070.01317.02
7.2.320.0100.01316.98
7.2.310.0120.01516.96
7.2.300.0140.00717.02
7.2.290.0150.00316.89
7.2.250.0160.00615.58
7.2.240.0070.01415.19
7.2.230.0090.00615.19
7.2.220.0070.01015.47
7.2.210.0130.00615.43
7.2.200.0090.00615.30
7.2.190.0060.01315.36
7.2.180.0070.01415.34
7.2.170.0120.00915.44
7.2.60.0030.01017.08
7.2.00.0190.00819.42
7.1.330.0070.01116.13
7.1.320.0060.00916.16
7.1.310.0100.01315.96
7.1.300.0040.01416.12
7.1.290.0000.01316.20
7.1.280.0070.00715.98
7.1.270.0070.00715.86
7.1.260.0060.01016.04
7.1.200.0040.01116.09
7.1.100.0080.00318.59
7.1.70.0000.00917.34
7.1.60.0080.01219.40
7.1.50.0040.01917.46
7.1.00.0130.05722.63
7.0.200.0280.00015.21
7.0.140.0070.07322.12
7.0.120.0070.07022.24
7.0.100.0070.04020.17
7.0.90.0100.03720.22
7.0.80.0100.03320.17
7.0.70.0070.04320.16
7.0.60.0100.03720.23
7.0.50.0100.03720.49
7.0.40.0000.04720.16
7.0.30.0070.04320.16
7.0.20.0030.04320.21
7.0.10.0000.04720.16
7.0.00.0070.04020.22
5.6.280.0030.07321.22
5.6.250.0030.04020.71
5.6.240.0070.03720.57
5.6.230.0000.04720.75
5.6.220.0000.03720.63
5.6.210.0030.04020.74
5.6.200.0100.03321.13
5.6.190.0030.04321.04
5.6.180.0100.03721.03
5.6.170.0130.03321.13
5.6.160.0000.04321.16
5.6.150.0100.08321.18
5.6.140.0030.08721.13
5.6.130.0100.08021.11
5.6.120.0130.08021.10
5.6.110.0070.08721.03
5.6.100.0070.07021.24
5.6.90.0070.07321.02
5.6.80.0030.06320.63
5.6.70.0000.08720.47
5.6.60.0030.05720.46
5.6.50.0000.06720.63
5.6.40.0070.08020.45
5.6.30.0000.08320.39
5.6.20.0100.03720.54
5.6.10.0070.08020.39
5.6.00.0070.05720.50
5.5.380.0070.04020.47
5.5.370.0070.04020.57
5.5.360.0000.03720.48
5.5.350.0000.05020.51
5.5.340.0000.04720.98
5.5.330.0100.03720.89
5.5.320.0030.03720.89
5.5.310.0030.03320.81
5.5.300.0170.07320.87
5.5.290.0100.06720.89
5.5.280.0070.07320.85
5.5.270.0200.06320.95
5.5.260.0170.07020.90
5.5.250.0000.08320.82
5.5.240.0070.07320.39
5.5.230.0070.06320.36
5.5.220.0170.06720.25
5.5.210.0100.03320.22
5.5.200.0100.07320.26
5.5.190.0100.08020.34
5.5.180.0100.05320.19
5.5.160.0130.06720.21
5.5.150.0070.03320.25
5.5.140.0130.07020.04
5.5.130.0030.04320.33
5.5.120.0000.05720.20
5.5.110.0070.05720.32
5.5.100.0030.04020.21
5.5.90.0170.07020.10
5.5.80.0100.07020.23
5.5.70.0030.06320.26
5.5.60.0070.07720.22
5.5.50.0070.07020.13
5.5.40.0200.06720.18
5.5.30.0030.07320.13
5.5.20.0070.06720.00
5.5.10.0070.07320.05
5.5.00.0030.04320.03
5.4.450.0070.07319.34
5.4.440.0170.06719.38
5.4.430.0030.08019.32
5.4.420.0000.08319.29
5.4.410.0030.08319.45
5.4.400.0070.05319.09
5.4.390.0130.07018.81
5.4.380.0170.03319.16
5.4.370.0030.08018.98
5.4.360.0130.06019.14
5.4.350.0030.07018.98
5.4.340.0070.06019.02
5.4.320.0170.06019.25
5.4.310.0100.07018.99
5.4.300.0130.03719.03
5.4.290.0030.06319.19
5.4.280.0070.07719.13
5.4.270.0200.06018.98
5.4.260.0030.05319.09
5.4.250.0030.08019.14
5.4.240.0000.04318.91
5.4.230.0100.06019.08
5.4.220.0070.05718.98
5.4.210.0070.06318.99
5.4.200.0170.06718.99
5.4.190.0100.07319.04
5.4.180.0100.03318.83
5.4.170.0070.06019.01
5.4.160.0000.08718.94
5.4.150.0130.07719.07
5.4.140.0000.06316.37
5.4.130.0030.07716.44
5.4.120.0000.07716.34
5.4.110.0030.07316.48
5.4.100.0070.07316.34
5.4.90.0100.06316.32
5.4.80.0100.07016.50
5.4.70.0030.08716.35
5.4.60.0070.04316.36
5.4.50.0070.07016.48
5.4.40.0070.07016.48
5.4.30.0030.07316.42
5.4.20.0000.04316.27
5.4.10.0030.07716.40
5.4.00.0130.05015.75
5.3.290.0100.07314.69
5.3.280.0030.06314.70
5.3.270.0030.07714.71
5.3.260.0030.05014.71
5.3.250.0000.08314.66
5.3.240.0030.04014.67
5.3.230.0030.07714.52
5.3.220.0030.07314.66
5.3.210.0000.08714.64
5.3.200.0100.06314.51
5.3.190.0070.07714.61
5.3.180.0100.06014.53
5.3.170.0030.04314.65
5.3.160.0130.07014.68
5.3.150.0070.07314.50
5.3.140.0030.04714.65
5.3.130.0030.04014.62
5.3.120.0070.07314.59
5.3.110.0000.04714.51
5.3.100.0030.07714.08
5.3.90.0100.06014.11
5.3.80.0000.08014.08
5.3.70.0030.03713.98
5.3.60.0030.03314.04
5.3.50.0070.06714.02
5.3.40.0070.06013.82
5.3.30.0030.05714.01
5.3.20.0000.07713.79
5.3.10.0130.06713.66
5.3.00.0000.04713.73

preferences:
40.68 ms | 401 KiB | 5 Q