3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function date_ouverture($form, &$form_state) { $now = strtotime('now'); $date = date_format($now, "D/G"); $tab_jour = array( "lundi-deb" => "7h30", "lundi-fin" => "18h30", "mardi-deb" => "7h30", "mardi-fin" => "18h30", "mercredi-deb" => "7h30", "mercredi-fin" => "18h30", "jeudi-deb" => "7h30", "jeudi-fin" => "18h30", "vendredi-deb" => "7h30", "vendredi-fin" => "14h00", ); echo($date); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0