3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $Host = 'foo:bar'; $Host = explode(':', $Host); $Host = $Host[0]; var_dump($Host);
Output for 4.3.0 - 7.1.0
string(3) "foo"