3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = new DateTime(); $2pm_yesterday = clone $subject; $2pm_yesterday->modify('2pm yesterday'); var_dump($2pm_yesterday);
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected '2' (T_LNUMBER), expecting variable (T_VARIABLE) or '$' in /in/O1scg on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /in/O1scg on line 5
Process exited with code 255.