3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //round pour le changement d'heure $debut = mktime(0, 0, 0, 10, 26, 2013); $fin = mktime(0, 0, 0, 11, 10, 2013); $d1 = new DateTime('now',new DateTimeZone('Europe/Paris')); $d2 = new DateTime('now',new DateTimeZone('Europe/Paris')) $d1->setTimestamp($debut); $d2->setTimestamp($fin); $diff = $d1->diff($d2); prinr_t($diff);
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '$d1' (T_VARIABLE) in /in/rF7ES on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/rF7ES on line 9
Process exited with code 255.