3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'https://priorityplusqa.geiger.com'; $domain = explode('.', parse_url($str)[1]); var_dump($domain);
based on 2DgC3
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Notice: Undefined offset: 1 in /in/7fS4K on line 4 array(1) { [0]=> string(0) "" }
Output for hhvm-3.22.0
Notice: Undefined index: 1 in /in/7fS4K on line -1 array(1) { [0]=> string(0) "" }
Output for hhvm-3.21.3
Notice: Undefined index: 1 in /in/7fS4K on line 4 array(1) { [0]=> string(0) "" }
Output for hhvm-3.18.5
Notice: Undefined index: 1 in /in/7fS4K on line 4 Warning: explode() expects parameter 2 to be string, null given in /in/7fS4K on line 4 NULL