3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print date_create('next week tuesday')->format('d-m-Y'."\n"); print date_create('wednesday next week')->format('d-m-Y'."\n"); print date_create('thursday next week')->format('d-m-Y'."\n"); print date_create('friday next week')->format('d-m-Y'."\n"); print date_create('saturday next week')->format('d-m-Y'."\n"); print date_create('sunday next week')->format('d-m-Y'."\n"); print date_create('monday next week')->format('d-m-Y'."\n"); print date_create('tuesday +2 weeks')->format('d-m-Y'."\n");
Output for 5.6.28, 7.0.14 - 7.1.0
18-02-2014 19-02-2014 20-02-2014 21-02-2014 22-02-2014 23-02-2014 17-02-2014 04-03-2014
Output for 5.6.21, 7.0.6
10-05-2016 11-05-2016 12-05-2016 13-05-2016 14-05-2016 15-05-2016 09-05-2016 17-05-2016
Output for 5.5.30, 5.6.14, hhvm-3.10.0, 7.0.5
05-04-2016 06-04-2016 07-04-2016 08-04-2016 09-04-2016 10-04-2016 04-04-2016 19-04-2016
Output for hhvm-3.12.0, 7.0.4
15-03-2016 16-03-2016 17-03-2016 18-03-2016 19-03-2016 20-03-2016 14-03-2016 29-03-2016
Output for 5.5.32, 5.6.17, 7.0.3
22-03-2016 23-03-2016 24-03-2016 25-03-2016 26-03-2016 27-03-2016 21-03-2016 05-04-2016
Output for 5.5.31, 7.0.2
29-03-2016 30-03-2016 31-03-2016 01-04-2016 02-04-2016 03-04-2016 28-03-2016 05-04-2016
Output for 7.0.0 - 7.0.1
29-03-2016 30-03-2016 31-03-2016 01-04-2016 02-04-2016 03-04-2016 28-03-2016 12-04-2016
Output for 5.6.20
12-04-2016 13-04-2016 14-04-2016 15-04-2016 16-04-2016 17-04-2016 11-04-2016 26-04-2016
Output for 5.5.33, 5.6.19
15-03-2016 16-03-2016 17-03-2016 18-03-2016 19-03-2016 20-03-2016 14-03-2016 22-03-2016
Output for 5.6.18
22-03-2016 23-03-2016 24-03-2016 25-03-2016 26-03-2016 27-03-2016 21-03-2016 29-03-2016
Output for 5.6.15 - 5.6.16
05-04-2016 06-04-2016 07-04-2016 08-04-2016 09-04-2016 10-04-2016 04-04-2016 12-04-2016
Output for 5.5.29, 5.6.13
19-04-2016 20-04-2016 21-04-2016 22-04-2016 23-04-2016 24-04-2016 18-04-2016 03-05-2016
Output for 5.6.12
26-04-2016 27-04-2016 28-04-2016 29-04-2016 30-04-2016 01-05-2016 25-04-2016 03-05-2016
Output for 5.5.27 - 5.5.28, 5.6.11
26-04-2016 27-04-2016 28-04-2016 29-04-2016 30-04-2016 01-05-2016 25-04-2016 10-05-2016
Output for 5.5.26, 5.6.10
03-05-2016 04-05-2016 05-05-2016 06-05-2016 07-05-2016 08-05-2016 02-05-2016 10-05-2016
Output for 5.5.25, 5.6.8 - 5.6.9
03-05-2016 04-05-2016 05-05-2016 06-05-2016 07-05-2016 08-05-2016 02-05-2016 17-05-2016
Output for 5.5.24, 5.5.35
31-05-2016 01-06-2016 02-06-2016 03-06-2016 04-06-2016 05-06-2016 30-05-2016 07-06-2016
Output for 5.5.34
19-04-2016 20-04-2016 21-04-2016 22-04-2016 23-04-2016 24-04-2016 18-04-2016 26-04-2016
Output for 5.2.0 - 5.4.45
17-11-2015 18-11-2015 19-11-2015 20-11-2015 21-11-2015 22-11-2015 16-11-2015 24-11-2015
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function date_create() in /in/aYOog on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/aYOog on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/aYOog on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/aYOog on line 3
Process exited with code 255.