3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo ( 1 or false || 2 ) ? 'true' : 'false'; echo "\n"; echo ( 1 || false or 2) ? 'true' : 'false';
based on 1ktMW
Output for 4.3.0 - 7.1.0
true true