3v4l.org

run code in 150+ 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 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( )
Output for 4.3.0 - 4.3.8
Array ( [5] => bar )