3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $week_start = new DateTime(); $week_start->setISODate(Y,$week_no); echo $week_start->format('d-M-Y');
based on Rp1FG
Output for 7.2.0
Warning: Use of undefined constant Y - assumed 'Y' (this will throw an Error in a future version of PHP) in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in /in/1btIT on line 4 17-Nov-2015
Output for 7.0.20 - 7.1.10
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in /in/1btIT on line 4 17-Nov-2015
Output for 7.0.6
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in /in/1btIT on line 4 03-May-2016
Output for 7.0.5
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in /in/1btIT on line 4 03-Apr-2016
Output for 7.0.4
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in /in/1btIT on line 4 10-Mar-2016
Output for 7.0.3
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in /in/1btIT on line 4 18-Mar-2016
Output for 7.0.2
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in /in/1btIT on line 4 23-Mar-2016
Output for 7.0.1
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in /in/1btIT on line 4 24-Mar-2016
Output for 7.0.0
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in /in/1btIT on line 4 27-Mar-2016
Output for 5.3.19 - 5.4.45, 5.6.28
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 17-Nov-2015
Output for 5.6.21
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 02-May-2016
Output for 5.6.20
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 10-Apr-2016
Output for 5.6.19
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 08-Mar-2016
Output for 5.6.18
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 15-Mar-2016
Output for 5.6.17
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 19-Mar-2016
Output for 5.6.16
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 28-Mar-2016
Output for 5.6.15
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 29-Mar-2016
Output for 5.6.14
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 02-Apr-2016
Output for 5.6.13
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 15-Apr-2016
Output for 5.6.12
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 20-Apr-2016
Output for 5.6.11
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 24-Apr-2016
Output for 5.6.10
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 25-Apr-2016
Output for 5.6.9
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 27-Apr-2016
Output for 5.6.8
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 30-Apr-2016
Output for 5.5.35
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 22-May-2016
Output for 5.5.34
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 11-Apr-2016
Output for 5.5.33
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 09-Mar-2016
Output for 5.5.32
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 17-Mar-2016
Output for 5.5.31
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 21-Mar-2016
Output for 5.5.30
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 01-Apr-2016
Output for 5.5.29
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 17-Apr-2016
Output for 5.5.28
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 21-Apr-2016
Output for 5.5.27
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 22-Apr-2016
Output for 5.5.26
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 26-Apr-2016
Output for 5.5.25
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 29-Apr-2016
Output for 5.5.24
Notice: Use of undefined constant Y - assumed 'Y' in /in/1btIT on line 4 Notice: Undefined variable: week_no in /in/1btIT on line 4 Warning: DateTime::setISODate() expects parameter 1 to be long, string given in /in/1btIT on line 4 24-May-2016