3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $names = array( '01' => 'January', '02' => 'February', '03' => 'March', '04' => 'April', '05' => 'May', '06' => 'June', '07' => 'July', '08' => 'August', '09' => 'September', '10' => 'October', '11' => 'November', '12' => 'December' ); $_POST["finalmonth"] = 03; if (!isset($names[$_POST["finalmonth"]])) echo 'Unknown month'; else echo $names[$_POST["finalmonth"]]; ?>
based on PXoQ9
Output for 4.3.0 - 7.1.0
Unknown month