3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $headline = "1940,superman's,action,figure,ideal,wood,,"; echo $headline; $headline = str_replace(',,',",",$headline); echo $headline;
Output for 4.3.0 - 7.2.0
1940,superman's,action,figure,ideal,wood,,1940,superman's,action,figure,ideal,wood,