3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $my_string = "T E S T R E N T A L A K T I E B O L A G"; $string_a = str_replace(' ','+',$my_string); $string_b = str_replace(' ','',$string_a ); $final_string = str_replace('+',' ',$string_b); echo $final_string;
Output for 4.3.0 - 7.1.0
TEST RENTAL AKTIEBOLAG