3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ($foo = 'bar' AND 'bar' === $foo) { var_dump('Yep!'); } else { var_dump('WUT?'); }
based on CQtij
Output for 5.6.0 - 7.3.0rc4
string(4) "Yep!"