3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a['bar'] = 'fd'; $a['-99'] = 'bilk'; $a['18446744073709551517'] = 'bode'; var_export($a); var_dump(PHP_INT_MAX);
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.2.13, 5.3.0 - 5.3.2, 5.3.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array ( 'bar' => 'fd', -99 => 'bilk', '18446744073709551517' => 'bode', )int(9223372036854775807)
Output for 5.2.14 - 5.2.17, 5.3.3
array ( 'bar' => 'fd', 18446744073709551517 => 'bilk', '18446744073709551517' => 'bode', )int(9223372036854775807)
Output for 4.3.3 - 4.3.11, 5.0.0 - 5.0.4
array ( 'bar' => 'fd', -99 => 'bilk', '18446744073709551517' => 'bode', ) Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/0ZUco on line 6 string(11) "PHP_INT_MAX"
Output for 4.3.0 - 4.3.2
array ( 'bar' => 'fd', '-99' => 'bilk', '18446744073709551517' => 'bode', ) Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/0ZUco on line 6 string(11) "PHP_INT_MAX"