3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data['uptime_start'] = '1.12.2014'; $data['uptime_end'] = '31.12.2014'; $data['uptime_start'] = date('Y-m-d H:i:s',new DateTime($data['uptime_start'])->getTimestamp()); $data['uptime_end'] = date('Y-m-d H:i:s',new DateTime($data['uptime_end'])->getTimestamp());
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /in/u8fLM on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/u8fLM on line 6
Process exited with code 255.