3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = (bool) 1; var_dump($a);
based on Kjltl
Output for 5.5.0 - 7.3.0beta1
bool(true)