3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
Output for 5.3.0 - 7.3.0rc4
Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /in/CJPJM on line 3
Output for 4.3.0 - 5.2.17
Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /in/CJPJM on line 3