3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(IntlChar::getPropertyEnum('Bidi_Class') === IntlChar::PROPERTY_BIDI_CLASS); var_dump(IntlChar::getPropertyEnum('script') === IntlChar::PROPERTY_SCRIPT); var_dump(IntlChar::getPropertyEnum('IDEOGRAPHIC') === IntlChar::PROPERTY_IDEOGRAPHIC); var_dump(IntlChar::getPropertyEnum('Some made up text') === IntlChar::PROPERTY_INVALID_CODE); // Some made-up value
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/IjYXj:2 Stack trace: #0 {main} thrown in /in/IjYXj on line 2
Process exited with code 255.
Output for 5.3.17 - 5.6.28
Fatal error: Class 'IntlChar' not found in /in/IjYXj on line 2
Process exited with code 255.