3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php putenv("TEST='PHP_SELF'"); $test = getenv("TEST"); echo $test; $test = getenv(PHP_SELF); echo $test;
Output for 7.2.0
'PHP_SELF' Warning: Use of undefined constant PHP_SELF - assumed 'PHP_SELF' (this will throw an Error in a future version of PHP) in /in/T36VG on line 5
Output for 4.3.0 - 7.1.10
'PHP_SELF' Notice: Use of undefined constant PHP_SELF - assumed 'PHP_SELF' in /in/T36VG on line 5