3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php exec('locale', $o); echo implode(', ', $o); $ну_допустим = 1; var_dump($ну_допустим); exec('LC_ALL=C'); exec('locale', $o); echo implode(', ', $o); $а_это_почему = 2; var_dump($а_это_почему);
based on 7JsuW
Output for 4.3.0, 5.4.45 - 7.2.0
int(1) int(2)
Output for 5.4.40 - 5.4.44
int(1) int(2) sh: 1: locale: not found sh: 1: locale: not found
Output for 4.3.1 - 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=int(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=, 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=int(2)