3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = strtolower('Jumpy Qbert grawlix'); $usage = count_chars($sentence, 3); $alphabet = range('a', 'z'); var_export([ 'Sentence' => $sentence, 'Total Length' => strlen($sentence), 'Alphabetical Length' => preg_match_all('~[a-z]~', $sentence, $letters), 'Unused Letters' => array_diff($alphabet, $letters[0]), 'Duplicated Letters' => array_diff(array_count_values($letters[0]), [1]), ]);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'Sentence' => 'jumpy qbert grawlix', 'Total Length' => 19, 'Alphabetical Length' => 17, 'Unused Letters' => array ( 2 => 'c', 3 => 'd', 5 => 'f', 7 => 'h', 10 => 'k', 13 => 'n', 14 => 'o', 18 => 's', 21 => 'v', 25 => 'z', ), 'Duplicated Letters' => array ( 'r' => 2, ), )

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