3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $characters = ["A", "a", ord("A"), "Φ", "φ", "1"]; foreach ($characters as $character) { var_dump(IntlChar::tolower($character)); } ?>
based on 34DMm
Output for 7.0.0 - 7.3.1
string(1) "a" string(1) "a" int(97) string(2) "φ" string(2) "φ" string(1) "1"
Output for 5.4.0 - 5.6.38
Fatal error: Class 'IntlChar' not found in /in/j2HpN on line 4
Process exited with code 255.
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/j2HpN on line 2
Process exited with code 255.