3v4l.org

run code in 200+ PHP versions simultaneously
<?php $address = '222 Silver Dawn Road'; $new_address = str_replace(' ', '+', $address); var_dump($new_address);
based on mY1Ek
Output for 7.1.25 - 7.3.1
string(20) "222+Silver+Dawn+Road"