3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('Implied', 1=> 'Integer', '2' => 'string', 3.0 => 'Float'); foreach($a AS $k=>$v){ echo "$v is treated as a ".gettype($k); }
Output for 4.3.0 - 7.2.0
Implied is treated as a integerInteger is treated as a integerstring is treated as a integerFloat is treated as a integer