3v4l.org

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