3v4l.org

run code in 150+ 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) . "\r\n\r\n"; }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Implied is treated as a integer Integer is treated as a integer string is treated as a integer Float is treated as a integer
Output for hhvm-3.10.0

Process exited with code 153.