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/>'; date('d.m.Y', mktime(0, 0, 0, 1, 1, 1))
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected end of file in /in/Kb9i0 on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/Kb9i0 on line 16
Process exited with code 255.