3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = ["A", 63, 123, 9731]; foreach ($values as $value) { var_dump(IntlChar::chr($value)); }
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.28, 7.4.0 - 7.4.16, 8.0.0 - 8.0.3
string(1) "A" string(1) "?" string(1) "{" string(3) "☃"
Output for 5.6.38
Fatal error: Class 'IntlChar' not found in /in/ggakS on line 4
Process exited with code 255.