3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); header("Content-Type: text/plain; charset=utf-8"); mb_internal_encoding('utf-8'); $text = "ну что. не смотрел еще black mesa.я собирался скачать ,но все как-то некогда было."; function makeFirstLetterUppercase($sentences) { $array = []; foreach ($sentences as $part) { $array[] = mb_strtoupper(mb_substr($part, 0, 1)) . mb_substr($part, 1); } return $array; } function fixText($text) { return preg_replace("/[ ]*([\.,;:!?]+)[ ]*/ui", "$1 ", $text); } $text = preg_split("/(?<=[\.!?])/ui", $text); $text = makeFirstLetterUppercase($text); $text = implode($text); $text = fixText($text); print_r($text);
Output for git.master, git.master_jit, rfc.property-hooks
Ну что. не смотрел еще black mesa. Я собирался скачать, но все как-то некогда было.

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