3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a['bar'] = 'fd'; $a['-99'] = 'bilk'; $a['18446744073709551517'] = 'bode'; var_export($a); var_dump(MAXINT);
Output for 7.2.0
array ( 'bar' => 'fd', -99 => 'bilk', '18446744073709551517' => 'bode', ) Warning: Use of undefined constant MAXINT - assumed 'MAXINT' (this will throw an Error in a future version of PHP) in /in/NV6OW on line 6 string(6) "MAXINT"
Output for 5.5.0 - 7.1.10
array ( 'bar' => 'fd', -99 => 'bilk', '18446744073709551517' => 'bode', ) Notice: Use of undefined constant MAXINT - assumed 'MAXINT' in /in/NV6OW on line 6 string(6) "MAXINT"
Output for 4.3.3 - 5.2.13, 5.3.0 - 5.3.2, 5.3.4 - 5.4.45
array ( 'bar' => 'fd', -99 => 'bilk', '18446744073709551517' => 'bode', )string(6) "MAXINT"
Output for 5.2.14 - 5.2.17, 5.3.3
array ( 'bar' => 'fd', 18446744073709551517 => 'bilk', '18446744073709551517' => 'bode', )string(6) "MAXINT"
Output for 4.3.0 - 4.3.2
array ( 'bar' => 'fd', '-99' => 'bilk', '18446744073709551517' => 'bode', )string(6) "MAXINT"