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, 0, 0, 0); echo '<br/>';
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(0) <br/>int(0) <br/>int(0) <br/>943916400<br/>943916400<br/>
Output for 4.3.0 - 5.0.5
int(0) <br/>int(0) <br/>int(0) <br/>-1<br/>-1<br/>