3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = '0.0.0'; $arr = explode('.', $date); var_dump((int)$arr[0]); echo '<br/>'; var_dump((int)$arr[1]); echo '<br/>'; var_dump((int)$arr[2]); echo '<br/>'; echo mktime(0, 0, 0, (int)$arr[1], (int)$arr[0], (int)$arr[2]); echo '<br/>'; echo mktime(0, 0, 0, 1, 1, 1); echo '<br/>'; echo date('d.m.Y', mktime(0, 0, 0, 1, 1, 1));
Output for 5.1.0 - 7.1.0
int(0) <br/>int(0) <br/>int(0) <br/>943916400<br/>978303600<br/>01.01.2001
Output for 4.3.0 - 5.0.5
int(0) <br/>int(0) <br/>int(0) <br/>-1<br/>978303600<br/>01.01.2001