3v4l.org

run code in 300+ PHP versions simultaneously
<?php // A named character var_dump(IntlChar::charName("\u{00B6}")); // A named character with valid nameChoice constant values var_dump(IntlChar::charName("\u{00B6}", IntlChar::UNICODE_CHAR_NAME)); var_dump(IntlChar::charName("\u{00B6}", IntlChar::UNICODE_10_CHAR_NAME)); // A named character, but an invalid nameChoice constant value var_dump(IntlChar::charName("\u{00B6}", 12345));
Output for 7.0.6 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
string(12) "PILCROW SIGN" string(12) "PILCROW SIGN" string(0) "" NULL
Output for 8.0.13
Fatal error: Uncaught Error: Class "IntlChar" not found in /in/liKR2:4 Stack trace: #0 {main} thrown in /in/liKR2 on line 4
Process exited with code 255.
Output for 7.0.5, 7.3.32 - 7.3.33, 7.4.33
Fatal error: Uncaught Error: Class 'IntlChar' not found in /in/liKR2:4 Stack trace: #0 {main} thrown in /in/liKR2 on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.4
string(12) "PILCROW SIGN" string(12) "PILCROW SIGN" string(0) "" bool(false)
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
Fatal error: Class 'IntlChar' not found in /in/liKR2 on line 4
Process exited with code 255.

preferences:
222.88 ms | 402 KiB | 227 Q