3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo; define('Foo\\null', \true); define('Foo\\true', \false); define('Foo\\false', \true); echo "null" . (null ? "1" : "0"), "\n"; echo "true" . (true ? "1" : "0"), "\n"; echo "false" . (false ? "1" : "0"), "\n";
based on uJFHV
Output for 7.0.0 - 7.2.0
null0 true1 false0
Output for 5.4.0 - 5.6.28
null1 true0 false1