3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "А Анна упала на лапу Азора"; $words = explode(' ', $text); foreach($words as &$word) { $reverse_word = utf8_strrev($word); if (strtolower($word) == strtolower($reverse_word)) { echo $word . " - поллиндром\n"; } else { echo $word . " - не поллиндром\n"; } } function utf8_strrev($str){ preg_match_all('/./us', $str, $ar); return join('',array_reverse($ar[0])); }
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:
123.33 ms | 406 KiB | 5 Q