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(1, 0, 0, (int)$arr[1], (int)$arr[0], (int)$arr[2]); echo '<br/>'; echo mktime(1, 0, 0, 0, 0, 0); echo '<br/>';
Output for 5.1.0 - 7.1.0
int(0) <br/>int(0) <br/>int(0) <br/>943920000<br/>943920000<br/>
Output for 4.3.0 - 5.0.5
int(0) <br/>int(0) <br/>int(0) <br/>-1<br/>-1<br/>