3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $red = 'apple'; echo !!$red; echo (bool) $red; echo (string) true; echo (string) (bool) $red; // 1 $blue = false; var_dump(!!$blue);
Output for 4.3.0 - 7.2.6
1111bool(false)