3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'foo'; $b = false; var_dump($a ==!$b); var_dump($a == (!$b)); var_dump($a !== $b); $a = false; $b = false; var_dump($a ==!$b); var_dump($a == (!$b)); var_dump($a !== $b);
based on XqJ27
Output for 4.3.0 - 7.2.6
bool(true) bool(true) bool(true) bool(false) bool(false) bool(false)