3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

preferences:
33.72 ms | 402 KiB | 5 Q