3v4l.org

run code in 300+ PHP versions simultaneously
<?php function revert($str) { $obtainStrList = explode(' ', $str); $revertStr = ''; foreach ($obtainStrList as $obtainStr) { $revertStr .= ' '; for ($i = 1; $i < mb_strlen($obtainStr) + 1; $i++) { $revertStr .= mb_substr($obtainStr, -$i, 1); } } return $revertStr; } echo revert('Delivery Club, ZakaZaka');
Output for git.master_jit, git.master, rfc.property-hooks
yrevileD ,bulC akaZakaZ

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:
31.99 ms | 401 KiB | 8 Q