3v4l.org

run code in 300+ PHP versions simultaneously
<?php function replaceStrAt($str, $substr, $from, $to = null){ is_null($to) and $to = $from; return mb_substr($str, 0, $from) . $substr . mb_substr($str, $to + 1); } function insertSubstrInto($str, $substr, $index){ return mb_substr($str, 0, $index) . $substr . mb_substr($str, $index); } $s = 'И просто текст'; echo replaceStrAt($s, "\t", 4), "\n"; echo insertSubstrInto($s, "\t", 4), "\n";
Output for git.master, git.master_jit, rfc.property-hooks
И пр сто текст И пр осто текст

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:
66.81 ms | 405 KiB | 5 Q