3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $true = true; $false = false; var_dump(isset($true)) . PHP_EOL; var_dump(isset($thing)) . PHP_EOL; var_dump(isset($false)) . PHP_EOL;
based on Rmqg2
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
bool(true) bool(false) bool(true)
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
bool(true) Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/UPus5 on line 6 bool(false) Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/UPus5 on line 7 bool(true) Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/UPus5 on line 8