run code in 200+ php & hhvm versions
Bugs & Features
<?php $key = 'polo-ralph-lauren-grey-v-neck-sweater_99912_3-300x300.d20140220-u175918.jpg'; if (strpos($key, '.d201402') !== FALSE){ $stringToReplace = $key; $removeTimestamp = strlen($stringToReplace); $removeTimestamp = floor($removeTimestamp - 21); $keytemp = substr_replace($stringToReplace, "jpg", $removeTimestamp); rename($key, '$keytemp'); echo 'Filename replaced '; echo $key," has been replaced by "; echo $keytemp; } ?>

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

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