3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace foo; define('foo\\true',false,true); $k = true; var_dump($k); $a = 0; var_dump('' == $a and 'a' == $a and '' === (string)$a and 'a' === (string)$a);
based on JLe8G
Output for 7.0.0 - 7.2.0
bool(true) bool(false)
Output for 5.4.0 - 5.6.28
bool(false) bool(false)