3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tracking = '1Z0ER5190360727519'; 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 "FedEx";} 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 "USPS";}

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=1Z0ER5190360727519
Output for Array change keys
http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=1Z0ER5190360727519
Output for Lexical anon
http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=1Z0ER5190360727519

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page