3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( (float) INF > PHP_FLOAT_MAX, (int) INF > PHP_INT_MAX, (float) NAN > PHP_FLOAT_MAX, (int) NAN > PHP_INT_MAX );
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/NE7id on line 3 Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/NE7id on line 5 bool(true) bool(false) bool(true) bool(false)
Output for hhvm-3.12.0
Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/NE7id on line 3 Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/NE7id on line 5 bool(true) bool(false) bool(false) bool(false)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.6 - 4.3.11, 5.0.0 - 5.0.1, 5.0.3 - 5.0.4
Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/NE7id on line 3 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/NE7id on line 4 Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/NE7id on line 5 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/NE7id on line 7 bool(true) bool(false) bool(true) bool(false)
Output for 5.0.2
Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/NE7id on line 3 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/NE7id on line 4 Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/NE7id on line 5 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/NE7id on line 7 bool(true) bool(true) bool(true) bool(false)
Output for 4.3.0 - 4.3.5
Notice: Use of undefined constant INF - assumed 'INF' in /in/NE7id on line 3 Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/NE7id on line 3 Notice: Use of undefined constant INF - assumed 'INF' in /in/NE7id on line 4 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/NE7id on line 4 Notice: Use of undefined constant NAN - assumed 'NAN' in /in/NE7id on line 5 Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/NE7id on line 5 Notice: Use of undefined constant NAN - assumed 'NAN' in /in/NE7id on line 6 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/NE7id on line 7 bool(true) bool(false) bool(true) bool(false)