3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $onep = 'small_'; $twop = 'middle_'; $threep = 'assets/images/catalog/kitchen/fuksi/middle_DSCN0818.JPG'; if ($threep != '') { $threepcount = str_replace($onep, $twop, $threep, $count); if ($count >= 1) { $threepout = str_replace($twop, $onep, $threep, $count); } else { $threepout = str_replace($twop, $onep, $threep, $count); } } else { echo ''; } echo $threepout;
based on shV1c
Output for 5.5.0 - 7.3.0rc2
assets/images/catalog/kitchen/fuksi/small_DSCN0818.JPG