3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=(bool)'a'; var_dump('' == $a and 'a' == $a and '' === (string)$a and 'a' === (string)$a);
based on YjT2C
Output for 5.3.18 - 7.2.0
bool(false)