3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tests = array( true && false || false, true && false || true, true && true || false, true && true || true, false && false || false, false && false || true, false && true || false, false && true || true ); foreach($tests as $i => $test){ echo "Test $i: " . ($test?"True":"False") . "\n"; }
Output for 4.3.0 - 7.1.0
Test 0: False Test 1: True Test 2: True Test 3: True Test 4: False Test 5: True Test 6: False Test 7: True