3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $val = true; var_dump($val); var_dump(empty($val)); var_dump(is_string($val)); $val = (string)$val; var_dump($val);
Output for 4.3.0 - 7.1.0
bool(true) bool(false) bool(false) string(1) "1"