3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strImageFile = "../a..../sdf/dfgh/dfgh.jpg"; // Actually fix the directory traversal vulnerability... while (strpos($strImageFile, "../") !== false) { $strImageFile = str_replace("../", "", $strImageFile); } print $strImageFile; ?>

preferences:
45.92 ms | 402 KiB | 5 Q