3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $is_dot = strrpos('com.ua', '.'); $domain_suffix = ($is_dot === FALSE )?$domain['items']['dom']:mb_substr($domain['items']['dom'],$is_dot+1); echo $domain_suffix;
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: domain in /in/0QjA2 on line 3
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: domain in /in/0QjA2 on line 3