3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = date('Y-m-d H:m:s'); echo $date; $newdate = date('Y-m-d H:m:s' strtotime($date. ' +7 days'); echo $newdate;
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'strtotime' (T_STRING) in /in/9hPY1 on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/9hPY1 on line 4
Process exited with code 255.