3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateSubmitted = "January 2, 2013'; if(strtotime("now") > strtotime($dateSubmitted . "+90 days") { echo "expired"; } else { echo "not expired"; } //echo date('F j, Y', strtotime($date . '+90 days')); ?>
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected 'now' (T_STRING) in /in/Yass0 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected T_STRING in /in/Yass0 on line 5
Process exited with code 255.

preferences:
171.59 ms | 1395 KiB | 39 Q