3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $valueOfTrue = 0; // this was coming from config in real-world. $valueOfFalse = 1; // Same here. ^ define('TRUE', $valueOfTrue); define('FALSE', $valueOfFalse); var_dump(TRUE, FALSE); // Happy debugging... if (TRUE) { echo 'yay'; }
Output for 5.1.3 - 7.1.0
bool(true) bool(false) yay
Output for 4.3.0 - 5.1.2
int(0) int(1)