3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function get_option($val) { return null; } $locale = get_option( 'language_code' ) ?? 'en_gb'; echo $locale;
based on Sh5Yr
Output for 7.0.0 - 7.2.0
en_gb
Output for 5.3.20 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/ZR7pP on line 7
Process exited with code 255.