3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(NAN=>INF,INF=>INF,INF+1=>INF); print_r($a); print_r($a[INF]); print_r($a[NAN]);
based on mHTgq
Output for 7.0.0 - 7.3.0rc4
Array ( [0] => INF ) INFINF
Output for 5.6.0 - 5.6.29
Array ( [-9223372036854775808] => INF ) INFINF