3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tracking = '1Z0ER5190360727519'; if(isset($_GET['tracking'])){$tracking=$_GET['tracking'];} if(preg_match("/\b(1Z ?[0-9A-Z]{3} ?[0-9A-Z]{3} ?[0-9A-Z]{2} ?[0-9A-Z]{4} ?[0-9A-Z]{3} ?[0-9A-Z]|[\dT]\d\d\d ?\d\d\d\d ?\d\d\d)\b/i", $tracking)==1){print "http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=".$tracking;} if(preg_match("/\b((96\d\d\d\d\d ?\d\d\d\d|96\d\d) ?\d\d\d\d ?d\d\d\d( ?\d\d\d)?)\b/i", $tracking)==1){print "https://www.fedex.com/fedextrack/?tracknumbers=".$tracking;} if(preg_match("/\b(91\d\d ?\d\d\d\d ?\d\d\d\d ?\d\d\d\d ?\d\d\d\d ?\d\d|91\d\d ?\d\d\d\d ?\d\d\d\d ?\d\d\d\d ?\d\d\d\d)\b/i", $tracking)==1){print "https://tools.usps.com/go/TrackConfirmAction.action?tLabels=".$tracking;}
Output for 4.3.0 - 7.1.0
http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=1Z0ER5190360727519