3v4l.org

run code in 200+ php & hhvm versions
<?php $month_number = "08"; $month_year = "2016"; echo "<div class=\"item"; // the ternary aspect: $month_result = ($month_number === "09"); $year_result = ($month_year === "2017"); echo ($month_result && $year_result)? "active":""; echo "\"></div>";
Output for 4.3.0 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.6
<div class="item"></div>