3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(IntlChar::charName("\u{2603}")); var_dump(IntlChar::charName(".")); var_dump(IntlChar::charName("."), IntlChar::UNICODE_CHAR_NAME); var_dump(IntlChar::charName("."), IntlChar::UNICODE_10_CHAR_NAME); var_dump(IntlChar::charName("."), 12345); ?>
based on A2pKo
Output for 7.0.0 - 7.0.4, 7.0.6 - 7.2.0
string(7) "SNOWMAN" string(9) "FULL STOP" string(9) "FULL STOP" int(0) string(9) "FULL STOP" int(1) string(9) "FULL STOP" int(12345)
Output for 7.0.5
Fatal error: Uncaught Error: Class 'IntlChar' not found in /in/dVFOd:2 Stack trace: #0 {main} thrown in /in/dVFOd on line 2
Process exited with code 255.
Output for 5.3.17 - 5.6.28
Fatal error: Class 'IntlChar' not found in /in/dVFOd on line 2
Process exited with code 255.