3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(IntlChar::charDirection("A") === IntlChar::CHAR_DIRECTION_LEFT_TO_RIGHT); var_dump(IntlChar::charDirection("\u{05E9}") === IntlChar::CHAR_DIRECTION_RIGHT_TO_LEFT); var_dump(IntlChar::charDirection("+") === IntlChar::CHAR_DIRECTION_EUROPEAN_NUMBER_SEPARATOR); var_dump(IntlChar::charDirection(".") === IntlChar::CHAR_DIRECTION_COMMON_NUMBER_SEPARATOR); ?>
based on dXWQE
Output for 7.0.0 - 7.0.4, 7.0.6 - 7.2.6
bool(true) bool(true) bool(true) bool(true)
Output for 7.0.5
Fatal error: Uncaught Error: Class 'IntlChar' not found in /in/UADn1:2 Stack trace: #0 {main} thrown in /in/UADn1 on line 2
Process exited with code 255.
Output for 5.3.17 - 5.6.28
Fatal error: Class 'IntlChar' not found in /in/UADn1 on line 2
Process exited with code 255.