3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** Vrácení českého názvu měsíce * @param int 1-12 * @return string * @copyright Jakub Vrána, http://php.vrana.cz/ */ function cesky_mesic($mesic) { static $nazvy = array(1 => 'leden', 'únor', 'březen', 'duben', 'květen', 'červen', 'červenec', 'srpen', 'září', 'říjen', 'listopad', 'prosinec'); return $nazvy[$mesic]; } echo cesky_mesic(date("n")) . "\n"; /** Vrácení českého názvu dne v týdnu * @param int 0-6, 0 neděle * @return string * @copyright Jakub Vrána, http://php.vrana.cz/ */ function cesky_den($den) { static $nazvy = array('neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'); return $nazvy[$den]; } echo cesky_den(date("w")) . "\n"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
listopad středa

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.28 ms | 401 KiB | 8 Q