3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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"; } ?>
Output for 5.3.19 - 5.3.29, 5.4.9 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
CommonHan
Output for 5.3.3 - 5.3.18, 5.4.0 - 5.4.8
Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 8 in /in/BlSC2 on line 19 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 9 in /in/BlSC2 on line 28 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 9 in /in/BlSC2 on line 46 CommonHan Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 10 in /in/BlSC2 on line 175 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 19 in /in/BlSC2 on line 181 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 23 in /in/BlSC2 on line 184 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 7 in /in/BlSC2 on line 187 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 10 in /in/BlSC2 on line 244 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 15 in /in/BlSC2 on line 253 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 8 in /in/BlSC2 on line 280
Output for 5.3.0 - 5.3.2
Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 10 in /in/BlSC2 on line 10 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 8 in /in/BlSC2 on line 16 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 8 in /in/BlSC2 on line 19 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 9 in /in/BlSC2 on line 28 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 9 in /in/BlSC2 on line 46 Common Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 23 in /in/BlSC2 on line 76 Han Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 19 in /in/BlSC2 on line 115 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 24 in /in/BlSC2 on line 121 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 25 in /in/BlSC2 on line 124 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 11 in /in/BlSC2 on line 127 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 9 in /in/BlSC2 on line 130 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 7 in /in/BlSC2 on line 163 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 10 in /in/BlSC2 on line 175 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 15 in /in/BlSC2 on line 178 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 19 in /in/BlSC2 on line 181 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 23 in /in/BlSC2 on line 184 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 7 in /in/BlSC2 on line 187 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 20 in /in/BlSC2 on line 211 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 13 in /in/BlSC2 on line 214 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 12 in /in/BlSC2 on line 238 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 10 in /in/BlSC2 on line 244 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 15 in /in/BlSC2 on line 253 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 11 in /in/BlSC2 on line 274 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 11 in /in/BlSC2 on line 277 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 8 in /in/BlSC2 on line 280