3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // A named character var_dump(IntlChar::charName("/")); // A named character with valid nameChoice constant values var_dump(IntlChar::charName("/", IntlChar::UNICODE_CHAR_NAME)); var_dump(IntlChar::charName("/", IntlChar::UNICODE_10_CHAR_NAME)); // A named character, but an invalid nameChoice constant value var_dump(IntlChar::charName("/", 12345));
based on hSTHZ
Output for 7.0.6 - 7.2.0
string(7) "SOLIDUS" string(7) "SOLIDUS" string(0) "" NULL
Output for 7.0.0 - 7.0.5
string(7) "SOLIDUS" string(7) "SOLIDUS" string(0) "" bool(false)
Output for 5.4.0 - 5.6.28
Fatal error: Class 'IntlChar' not found in /in/R2NWM on line 4
Process exited with code 255.