3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ( true && true ){ echo "true && true\n"; } if ( true && false ){ echo "true && false\n"; } if ( false && false ){ echo "false && false\n"; } if ( true and true ){ echo "true and true\n"; } if ( true and !false ){ echo "true and !false\n"; } if ( !false and true and true){ echo "!false and true\n"; } if ( false and false ){ echo "false and false\n"; }
based on vSlol
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
true && true true and true true and !false !false and true