3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = -1 * (pow(2, 16)-1); echo PHP_INT_SIZE, PHP_EOL; echo date('Y-m-d', $a);
based on nDPru
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.2.0
8 1969-12-31
Output for 4.3.10 - 4.3.11, 5.0.2 - 5.0.4
Notice: Use of undefined constant PHP_INT_SIZE - assumed 'PHP_INT_SIZE' in /in/hClV7 on line 5 PHP_INT_SIZE 1969-12-31
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_INT_SIZE - assumed 'PHP_INT_SIZE' in /in/hClV7 on line 5 PHP_INT_SIZE Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/hClV7 on line 5 PHP_EOL1969-12-31