3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php exec("locale;", $o); echo implode(", ", $o), PHP_EOL;
based on lLi4i
Output for 5.4.45 - 7.2.6
Output for 5.4.40 - 5.4.44
sh: 1: locale: not found
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.4.39
LANG=C, LC_CTYPE="C", LC_NUMERIC="C", LC_TIME="C", LC_COLLATE="C", LC_MONETARY="C", LC_MESSAGES="C", LC_PAPER="C", LC_NAME="C", LC_ADDRESS="C", LC_TELEPHONE="C", LC_MEASUREMENT="C", LC_IDENTIFICATION="C", LC_ALL=
Output for 4.3.1 - 4.3.9, 5.0.0 - 5.0.1
LANG=C, LC_CTYPE="C", LC_NUMERIC="C", LC_TIME="C", LC_COLLATE="C", LC_MONETARY="C", LC_MESSAGES="C", LC_PAPER="C", LC_NAME="C", LC_ADDRESS="C", LC_TELEPHONE="C", LC_MEASUREMENT="C", LC_IDENTIFICATION="C", LC_ALL= Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LdmZ3 on line 2 PHP_EOL
Output for 4.3.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LdmZ3 on line 2 PHP_EOL