3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $values = array( true, false, PHP_INT_MAX, ~PHP_INT_MAX ); foreach ($values as $value) { echo var_export($value, true), "\n"; } /* terminal output is: true true false 9223372036854775807 */
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
true false 9223372036854775807 -9223372036854775808
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/ZkMti on line 5 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/ZkMti on line 6 true false 'PHP_INT_MAX' '�����������'