3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(IntlChar::charType("A") === IntlChar::CHAR_CATEGORY_UPPERCASE_LETTER); var_dump(IntlChar::charType(".") === IntlChar::CHAR_CATEGORY_OTHER_PUNCTUATION); var_dump(IntlChar::charType("\t") === IntlChar::CHAR_CATEGORY_CONTROL_CHAR); var_dump(IntlChar::charType("\u{2603}") === IntlChar::CHAR_CATEGORY_OTHER_SYMBOL); ?>
based on k9oQP
Output for 7.0.0 - 7.0.4, 7.0.6 - 7.2.0
bool(true) bool(true) bool(true) bool(true)
Output for 7.0.5
Fatal error: Uncaught Error: Class 'IntlChar' not found in /in/u4DpX:2 Stack trace: #0 {main} thrown in /in/u4DpX on line 2
Process exited with code 255.
Output for 5.3.17 - 5.6.28
Fatal error: Class 'IntlChar' not found in /in/u4DpX on line 2
Process exited with code 255.