3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $strImageFile = "../a....//sdf/dfgh/dfgh.jpg"; // Actually fix the directory traversal vulnerability... while (strpos($strImageFile, "../") !== false) { $strImageFile = str_replace("../", "", $strImageFile); } print $strImageFile; ?>
based on eQt2R
Output for 5.3.18 - 7.2.0
asdf/dfgh/dfgh.jpg