3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $site = "http://hollandshielding.com/"; $url = parse_url($site); $hasSubdomain = preg_match('/(\w)\.(\w)\.(\w)/'); var_dump($subdomain);
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: preg_match() expects at least 2 parameters, 1 given in /in/e0X55 on line 5 Notice: Undefined variable: subdomain in /in/e0X55 on line 7 NULL
Output for 5.2.3 - 5.4.45
Warning: preg_match() expects at least 2 parameters, 1 given in /in/e0X55 on line 5 NULL
Output for 4.3.3 - 5.2.2
<br /> <b>Warning</b>: preg_match() expects at least 2 parameters, 1 given in <b>/in/e0X55</b> on line <b>5</b><br /> NULL
Output for 4.3.0 - 4.3.2
<br /> <b>Warning</b>: Wrong parameter count for preg_match() in <b>/in/e0X55</b> on line <b>5</b><br /> NULL