3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $type = gettype(14018919967); echo $type; $int = (int)14018919967; echo PHP_EOL; echo $int. " != 14018919967"; $type2 = gettype($int); echo PHP_EOL; echo $type2; echo PHP_EOL; echo PHP_INT_SIZE;
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
integer 14018919967 != 14018919967 integer 8
Output for 4.3.10 - 4.3.11, 5.0.2 - 5.0.4
integer 14018919967 != 14018919967 integer Notice: Use of undefined constant PHP_INT_SIZE - assumed 'PHP_INT_SIZE' in /in/EeLP2 on line 11 PHP_INT_SIZE
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
integer Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/EeLP2 on line 5 PHP_EOL14018919967 != 14018919967 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/EeLP2 on line 8 PHP_EOLinteger Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/EeLP2 on line 10 PHP_EOL Notice: Use of undefined constant PHP_INT_SIZE - assumed 'PHP_INT_SIZE' in /in/EeLP2 on line 11 PHP_INT_SIZE