3v4l.org

run code in 200+ 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!"; } else { print "It's not null!"; } print $abs_arr[$abs_arr_len-1]; ?>
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant abs_arr - assumed 'abs_arr' (this will throw an Error in a future version of PHP) in /in/veqdY on line 10 Warning: sizeof(): Parameter must be an array or an object that implements Countable in /in/veqdY on line 10 It's not null!http
Output for 4.3.0 - 7.1.20
Notice: Use of undefined constant abs_arr - assumed 'abs_arr' in /in/veqdY on line 10 It's not null!http