3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Mdcnt = array("0","31","28","31","30","31","30","31","31","30","31","30","31"); for($i=20140329 ; $i<=20140402;$i++){ $year = substr($i,0,4); $mon = intval(substr($i,4,2)); $day = intval(substr($i,6,2)); print $mon . " - " .$day."\n"; if($mon >13 or $mon < 1) continue; if($day > $Mdcnt[$mon] or $day < 1) continue; $days = sprintf("%04d%02d%02d",$year,$mon,$day); print $days."\n"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
3 - 29 20140329 3 - 30 20140330 3 - 31 20140331 3 - 32 3 - 33 3 - 34 3 - 35 3 - 36 3 - 37 3 - 38 3 - 39 3 - 40 3 - 41 3 - 42 3 - 43 3 - 44 3 - 45 3 - 46 3 - 47 3 - 48 3 - 49 3 - 50 3 - 51 3 - 52 3 - 53 3 - 54 3 - 55 3 - 56 3 - 57 3 - 58 3 - 59 3 - 60 3 - 61 3 - 62 3 - 63 3 - 64 3 - 65 3 - 66 3 - 67 3 - 68 3 - 69 3 - 70 3 - 71 3 - 72 3 - 73 3 - 74 3 - 75 3 - 76 3 - 77 3 - 78 3 - 79 3 - 80 3 - 81 3 - 82 3 - 83 3 - 84 3 - 85 3 - 86 3 - 87 3 - 88 3 - 89 3 - 90 3 - 91 3 - 92 3 - 93 3 - 94 3 - 95 3 - 96 3 - 97 3 - 98 3 - 99 4 - 0 4 - 1 20140401 4 - 2 20140402

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.68 ms | 402 KiB | 8 Q