3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $newsPiece['pages'] = '15B'; if ((int)$newsPiece['pages']):?> <?php echo $newsPiece['pages']?><?php endif;?> <?php $newsPiece['pages'] = '15-38'; if ((int)$newsPiece['pages']):?> <?php echo $newsPiece['pages']?><?php endif;?>
Output for 4.3.0 - 7.1.0
15B 15-38