3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 'Case A'; if ((!URL_REWRITING_ALL) || !defined('URL_REWRITING_ALL')) { echo 'if is true'; } else { echo 'if is false'; } echo "\n\n"; echo 'Case B'; if ((!defined('URL_REWRITING_ALL')) || (!URL_REWRITING_ALL)) { echo 'if is true'; } else { echo 'if is false'; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Case A Notice: Use of undefined constant URL_REWRITING_ALL - assumed 'URL_REWRITING_ALL' in /in/pZnAQ on line 3 if is true Case Bif is true