3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print date_create('monday next week')->format('d-m-Y'); print date_create('friday next week')->format('d-m-Y');
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25, 5.6.28, 7.0.14 - 7.1.0
17-02-201421-02-2014
Output for 5.6.21, 7.0.6
09-05-201613-05-2016
Output for 5.5.30, 5.6.14 - 5.6.16, hhvm-3.10.0, 7.0.5
04-04-201608-04-2016
Output for 5.5.33, 5.6.19, hhvm-3.12.0, 7.0.4
14-03-201618-03-2016
Output for 5.5.32, 5.6.17 - 5.6.18, 7.0.3
21-03-201625-03-2016
Output for 5.5.31, 7.0.0 - 7.0.2
28-03-201601-04-2016
Output for 5.6.20
11-04-201615-04-2016
Output for 5.5.29, 5.5.34, 5.6.13
18-04-201622-04-2016
Output for 5.5.27 - 5.5.28, 5.6.11 - 5.6.12
25-04-201629-04-2016
Output for 5.5.25 - 5.5.26, 5.6.8 - 5.6.10
02-05-201606-05-2016
Output for 5.5.24, 5.5.35 - 5.6.7
30-05-201603-06-2016
Output for 5.4.41 - 5.4.45
21-09-201525-09-2015
Output for 5.4.39 - 5.4.40
11-05-201515-05-2015
Output for 5.4.38
09-03-201513-03-2015
Output for 5.4.36 - 5.4.37
16-02-201520-02-2015
Output for 5.4.34 - 5.4.35
08-12-201412-12-2014
Output for 5.3.29, 5.4.26 - 5.4.32
08-09-201412-09-2014
Output for 5.2.0 - 5.2.17
24-02-201421-02-2014
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function date_create() in /in/9AVRo on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/9AVRo on line 2
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/9AVRo on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/9AVRo on line 2
Process exited with code 255.