3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $field = 'December 22, 2015 at 5:00 AM'; $newfield = date('m/d/Y', strtotime($field); if (date('D', strtotime($field)) == date('D')) { echo 'yes'; } else { echo 'no'; } echo $newfield; echo date('D');
based on i4eVI
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected ';', expecting ',' or ')' in /in/PdiAV on line 3
Process exited with code 255.
Output for 5.3.21 - 5.6.16
Parse error: syntax error, unexpected ';' in /in/PdiAV on line 3
Process exited with code 255.