3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (strpos($key, '.d201402') !== FALSE){ $stringToReplace = "marc-by-marc-jacobs-13-black-136831_3-90x90.jpg"; $removeTimestamp = strlen($stringToReplace); $removeTimestamp = floor($removeTimestamp - 21); $example_2 = substr_replace($stringToReplace, "jpg", $removeTimestamp); echo "Example 2: ".$example_2; } ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: key in /in/tjiHs on line 3
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: key in /in/tjiHs on line 3