3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $days = array( 'maandag' => strtotime( "last monday" ), 'dinsdag' => strtotime( "last tuesday" ), 'woensdag'=>strtotime( "last wednesday" ), 'thursday' => strtotime( "last thursday" ), 'friday'=> strtotime( "last friday" ), 'saturday'=> strtotime( "last saturday" ), 'sunday'=> strtotime( "last sunday" ), ); foreach($days as $name => $time){ echo $name . ' ' .date('j-n-Y',$time) . "\n"; }
based on XSTmS
Output for 5.6.0 - 7.3.0beta1
maandag 22-8-2016 dinsdag 23-8-2016 woensdag 24-8-2016 thursday 18-8-2016 friday 19-8-2016 saturday 20-8-2016 sunday 21-8-2016