3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text1="w3resource.com "; $text2="w3resource.com\t\t"; $text3="\t\tw3resource.com\x0A"; $text4="Good Morning"; $trimmed_text=rtrim($text1); var_dump($trimmed_text); echo '<br>'; $trimmed_text=rtrim($text2); var_dump($trimmed_text); echo '<br>'; $trimmed_text=rtrim($text3); var_dump($trimmed_text); echo '<br>'; $trimmed_text=rtrim($text1,'w3'); var_dump($trimmed_text); echo '<br>'; $trimmed_text=rtrim($text4,"ng"); var_dump($trimmed_text); ?>
Output for git.master, git.master_jit, rfc.property-hooks
string(14) "w3resource.com" <br>string(14) "w3resource.com" <br>string(16) " w3resource.com" <br>string(16) "w3resource.com " <br>string(10) "Good Morni"

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
46.76 ms | 401 KiB | 8 Q