3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $host_config = 'somehost:8080'; list($host, $port) = explode(':', $host_config, 2); // $host == somehost // $port == 8080 var_dump($host, $port);
based on 54I2U
Output for 4.3.0 - 7.2.0
string(8) "somehost" string(4) "8080"