3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = 'Jumpy Qbert grawlix'; $usage = count_chars(strtolower($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), 'Duplicated Letters' => array_diff(array_count_values($letters), [1]), ]);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/IUTV1 on line 10 Warning: array_count_values(): Can only count string and integer values, entry skipped in /in/IUTV1 on line 11 array ( 'Sentence' => 'Jumpy Qbert grawlix', 'Total Length' => 19, 'Alphabetical Length' => 15, 'Unused Letters' => array ( 0 => 'a', 1 => 'b', 2 => 'c', 3 => 'd', 4 => 'e', 5 => 'f', 6 => 'g', 7 => 'h', 8 => 'i', 9 => 'j', 10 => 'k', 11 => 'l', 12 => 'm', 13 => 'n', 14 => 'o', 15 => 'p', 16 => 'q', 17 => 'r', 18 => 's', 19 => 't', 20 => 'u', 21 => 'v', 22 => 'w', 23 => 'x', 24 => 'y', 25 => 'z', ), 'Duplicated Letters' => array ( ), )

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:
53.35 ms | 402 KiB | 8 Q