3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 1; $i < 10; $i++) { echo date('c',strtotime("+$i days")) . " - " . date('c',strtotime('wednesday this week',strtotime("+$i days"))) . "<br/>\n"; }
Output for 5.6.23 - 5.6.28, 7.0.8 - 7.1.0
2013-01-29T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-01-30T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-01-31T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-02-01T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-02-02T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-02-03T22:14:30+01:00 - 2013-01-28T00:00:00+01:00<br/> 2013-02-04T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-05T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-06T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/>
Output for 5.3.0 - 5.6.22, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.7
2013-01-29T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-01-30T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-01-31T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-02-01T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-02-02T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-02-03T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-04T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-05T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-06T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/>
Output for 5.0.3 - 5.0.5, 5.2.0 - 5.2.17
2013-01-29T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-01-30T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-01-31T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-01T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-02T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-03T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-04T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-05T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-06T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/>
Output for 5.1.0 - 5.1.6
2013-01-29T22:14:30+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-01-30T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-01-31T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-01T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-02T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-03T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-04T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-05T22:14:30+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-06T22:14:30+01:00 - 2013-02-13T00:00:00+01:00<br/>
Output for 5.0.0 - 5.0.2
2013-01-29T00:00:00+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-01-30T00:00:00+01:00 - 2013-01-30T00:00:00+01:00<br/> 2013-01-31T00:00:00+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-01T00:00:00+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-02T00:00:00+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-03T00:00:00+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-04T00:00:00+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-05T00:00:00+01:00 - 2013-02-06T00:00:00+01:00<br/> 2013-02-06T00:00:00+01:00 - 2013-02-06T00:00:00+01:00<br/>
Output for 4.3.0 - 4.4.9
c - c<br/> c - c<br/> c - c<br/> c - c<br/> c - c<br/> c - c<br/> c - c<br/> c - c<br/> c - c<br/>