3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $params = 'folder=BP+Portrait+Award+2014%2CBlah&format=jpg&public_id=test_dtestddddd_test_1407335836timetamp=1407335836'; $urlSafeParams = preg_replace('/(\?<=folder)*%2C/', ',', $params); print $urlSafeParams;
based on C58Q5
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
folder=BP+Portrait+Award+2014,Blah&format=jpg&public_id=test_dtestddddd_test_1407335836timetamp=1407335836