3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //following GMT value or offset get from api $offsetHours = '-5 hours'; // This time i get from api $currentValue = '1401705628'; $actualTimeStamp = strtotime($offsetHours,$currentValue); echo strtotime($offsetHours)."==="; echo $actualTimeStamp."==="; echo date('d-M-Y h:i A',$actualTimeStamp); echo "==mk="mktime(-5, 0, 0, 0, 0, 0); echo "===".date("d-M-Y h:i A", $currentValue+mktime(-5, 0, 0, 0, 0, 0));
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'mktime' (T_STRING), expecting ',' or ';' in /in/EZEN6 on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/EZEN6 on line 12
Process exited with code 255.