3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array("5"=>"bar"); $foo = "10.0000"; // gettype($foo) = "string" $foo /= 2; //Makes $foo = 5 but still gettype($foo) = "double" unset($array[$foo]); print_r($array);
Output for 4.3.9 - 7.1.7
Array ( )
Output for 4.3.0 - 4.3.8
Array ( [5] => bar )