3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = 1; (int)$value == 1 ? (int)1 : ((int)$value == 2 ? (int)0 : null);
Output for 4.3.0 - 7.1.0