3v4l.org

run code in 300+ PHP versions simultaneously
<?php $correctSentence = "The year stations are summer, winter, spring and fall."; $textSentence = "The year stations are four summer, winter and spring and summer."; $correctArray = str_word_count($correctSentence, 1); $textArray = str_word_count($textSentence, 1); var_export( array_merge( array_diff($textArray, $correctArray), array_keys(array_filter(array_count_values($textArray), fn($v) => $v > 1)) ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'four', 1 => 'summer', 2 => 'and', )

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.64 ms | 405 KiB | 5 Q