3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(IntlChar::charFromName("LATIN CAPITAL LETTER A")); var_dump(IntlChar::charFromName("SNOWMAN")); var_dump(IntlChar::charFromName("Snowman")); var_dump(IntlChar::charFromName("A RANDOM STRING WHICH DOESN'T CORRESPOND TO ANY UNICODE CHARACTER")); ?>
based on 7shoS
Output for 7.0.6 - 7.2.0
int(65) int(9731) int(9731) NULL
Output for 7.0.5
Fatal error: Uncaught Error: Class 'IntlChar' not found in /in/nEMae:2 Stack trace: #0 {main} thrown in /in/nEMae on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.4
int(65) int(9731) int(9731) bool(false)
Output for 5.3.17 - 5.6.28
Fatal error: Class 'IntlChar' not found in /in/nEMae on line 2
Process exited with code 255.