3v4l.org

run code in 200+ 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"; echo 'Case B'; if ((!defined('URL_REWRITING_ALL')) || (!URL_REWRITING_ALL)) { echo 'if is true'; } else { echo 'if is false'; }
Output for 7.2.0
Case A Warning: Use of undefined constant URL_REWRITING_ALL - assumed 'URL_REWRITING_ALL' (this will throw an Error in a future version of PHP) in /in/BUZqd on line 3 if is true Case Bif is true
Output for 4.3.0 - 7.1.10
Case A Notice: Use of undefined constant URL_REWRITING_ALL - assumed 'URL_REWRITING_ALL' in /in/BUZqd on line 3 if is true Case Bif is true