3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = "hi"; $one = boolval($var); echo PHP_EOL; echo $one; echo PHP_EOL; $new = (bool) $var; echo PHP_EOL; echo $new;
based on 8uc2u
Output for 5.5.0 - 7.3.0rc4
1 1