3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(range(PHP_INT_MAX, ((float) PHP_INT_MAX) + 0.1));
based on 2MWNS
Output for 5.0.5 - 7.1.0
array(1) { [0]=> float(9.2233720368548E+18) }
Output for 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/VBDSQ on line 2 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/VBDSQ on line 2 Warning: range(): step exceeds the specified range in /in/VBDSQ on line 2 bool(false)
Output for 4.4.0 - 4.4.9
array(2) { [0]=> int(-1) [1]=> int(0) }
Output for 4.3.0 - 4.3.11
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/VBDSQ on line 2 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/VBDSQ on line 2 array(1) { [0]=> int(0) }