3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = "http://findadvertisers.linksynergy.com/merchantsearch"; $tok = "?token="; $merch = "&merchantname="; $id = "a74fv65abc123"; $name = null; $absolute = $url . $tok . $id . $merch . $name; $abs_arr = preg_split("/[:\/\.\?\=\&]+/", $absolute); $abs_arr_len = sizeof($abs_arr); if ($abs_arr[$abs_arr_len-1] == null) { print "It's null!\n"; } else { print "It's not null!"; } print_r($abs_arr[$abs_arr_len-1]); ?>
Output for 4.3.0 - 7.1.0
It's null!