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"); echo "true" . (true ? "1" : "0"); echo "false" . (false ? "1" : "0");
based on 1Xdi4
Output for 7.0.0 - 7.2.0
null0true1false0
Output for 5.3.17 - 5.6.28
null1true0false1