3v4l.org

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