3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_export(Locale::getPrimaryLanguage('und'));
Output for 8.5.0 - 8.5.13, 8.6.0
Fatal error: Uncaught Error: Class "Locale" not found in /in/f1mRX:3 Stack trace: #0 {main} thrown in /in/f1mRX on line 3
Process exited with code 255.
Output for 8.4.15 - 8.4.28, 8.3.28 - 8.3.37, 8.2.31 - 8.2.36
''
Output for 8.4.1 - 8.4.14, 8.3.0 - 8.3.27
'und'

preferences:
26.4 ms | 1178 KiB | 6 Q