3v4l.org

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