3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $id = 1; $day = '2012-10-04'; $mydate = date("Y-m-d",strtotime($day." last Sunday ")); $item_key = $mydate.'_'.$id; $data[$item_key] = array( 'date' => $mydate, 'offer_id' => $id ); ?>
based on HWal3
Output for 4.3.0 - 7.2.0