3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $characters = ["A", "a", "1", " ", "\t", "\u{2603}", "\u{0416}", "\u{200e}"]; foreach ($characters as $character) { var_dump(IntlChar::isalnum($character)); }
based on lpldp
Output for 7.0.0 - 7.0.4, 7.0.6 - 7.2.0
bool(true) bool(true) bool(true) bool(false) bool(false) bool(false) bool(true) bool(false)
Output for 7.0.5
Fatal error: Uncaught Error: Class 'IntlChar' not found in /in/F25ug:5 Stack trace: #0 {main} thrown in /in/F25ug on line 5
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Fatal error: Class 'IntlChar' not found in /in/F25ug on line 5
Process exited with code 255.
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/F25ug on line 3
Process exited with code 255.