3v4l.org

run code in 200+ php & hhvm versions
<?php $foo = "string"; var_dump($foo); settype($foo, "integer"); var_dump($foo);
Output for 5.6.0 - 7.2.6
string(6) "string" int(0)