3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $host = "potato"; list($host1, $host2) = explode('.', $host, 2); echo "$host - $host1 - $host2"; ?>
Output for 5.3.0 - 7.2.0
Notice: Undefined offset: 1 in /in/UC0X1 on line 4 potato - potato -
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 1 in /in/UC0X1 on line 4 potato - potato -