3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(IntlChar::charFromName("RECYCLING SYMBOL FOR TYPE-1 PLASTICS")); var_dump(IntlChar::charFromName("sdfasdfasdfasdf"));
Output for 7.0.6 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.28, 7.4.0 - 7.4.16, 8.0.0 - 8.0.3
int(9843) NULL
Output for 7.0.5
Fatal error: Uncaught Error: Class 'IntlChar' not found in /in/171NK:2 Stack trace: #0 {main} thrown in /in/171NK on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.4
int(9843) bool(false)
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.21
Fatal error: Class 'IntlChar' not found in /in/171NK on line 2
Process exited with code 255.