3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace { define('true', false); // Notice: Constant true already defined var_dump(true === false); //false } namespace Knp { define('Knp\\true', false); var_dump(true === false); // true in php5 }
based on PPPRY
Output for 7.0.0 - 7.2.0
Notice: Constant true already defined in /in/DjLKE on line 4 bool(false) bool(false)
Output for 5.3.18 - 5.6.21
Notice: Constant true already defined in /in/DjLKE on line 4 bool(false) bool(true)