3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = 020120142100; echo (int)$var.'<br>'; echo date( 'd-m-Y hh:mm:i', $var ).'<br>'; echo PHP_INT_SIZE.' '.PHP_INT_MAX; ?>
Output for 5.1.0 - 7.1.0
2168505408<br>19-09-2038 1111:0909:36<br>8 9223372036854775807
Output for 4.4.0 - 4.4.9, 5.0.5
2168505408<br>19-09-2038 1212:0909:36<br>8 9223372036854775807
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
2168505408<br>19-09-2038 1212:0909:36<br> Notice: Use of undefined constant PHP_INT_SIZE - assumed 'PHP_INT_SIZE' in /in/koZoG on line 5 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/koZoG on line 5 PHP_INT_SIZE PHP_INT_MAX