3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $is_localized = (int) 52 > 0; var_dump($is_localized); $alternate = ((int) 52) > 0; var_dump($alternate); $third = (int) (52 > 0); var_dump($third);
based on G9ZDf
Output for 4.3.0 - 7.2.0
bool(true) bool(true) int(1)