3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $nb_lots_per_day = array( '1' => 6, '2' => 0, '3' => 0, '4' => 0, '5' => 5, '6' => 0, '7' => 0, '8' => 0, '9' => 0, '10' => 0, '11' => 6, '12' => 0, '13' => 0, '14' => 0, '15' => 0, '16' => 0, '17' => 0, '18' => 6, '19' => 5, '20' => 0, '21' => 0, '22' => 0, '23' => 5, '24' => 0, '25' => 0, '26' => 0, '27' => 10, '28' => 0, '29' => 0, '30' => 0, '31' => 0 ); $nb_lots = $nb_lots_per_day[(int)(date('j'))]; var_dump($nb_lots);
Output for 4.3.0 - 7.2.6
int(0)