3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $domains = explode(".",str_replace("example.com","","test.example.com")); print "Test: " . $domains[0] . "<br>"; $target = array_pop($domains); print "Target: " . $target . "<br>";
Output for 4.3.0 - 7.1.0
Test: test<br>Target: <br>