3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(IntlChar::forDigit(0)); var_dump(IntlChar::forDigit(3)); var_dump(IntlChar::forDigit(3, 10)); var_dump(IntlChar::forDigit(10)); var_dump(IntlChar::forDigit(10, 16)); ?>
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.30, 8.0.0 - 8.0.12, 8.0.14 - 8.0.22, 8.1.0 - 8.1.9
int(48) int(51) int(51) int(0) int(97)
Output for 8.0.13
Fatal error: Uncaught Error: Class "IntlChar" not found in /in/sOcGh:2 Stack trace: #0 {main} thrown in /in/sOcGh on line 2
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Fatal error: Uncaught Error: Class 'IntlChar' not found in /in/sOcGh:2 Stack trace: #0 {main} thrown in /in/sOcGh on line 2
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
Fatal error: Class 'IntlChar' not found in /in/sOcGh on line 2
Process exited with code 255.

preferences:
21.82 ms | 413 KiB | 5 Q