3v4l.org

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