3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p =<<<EOT That interviews should involve simple code is now common wisdom in programming circles. The story is that a high percentage of programmers, even people with impressive resumes, “just can’t code.” Asked to do the simplest things—problems a good coders could solve as fast they could write—some spend ten or twenty minutes before they get an answer, or fail entirely. (See discussion by Jeff Attwood and Joel Spolsky.) I don’t go as far as others here. I think a lot of “slow coders” are probably excellent employees, making up for it in other areas. Some projects don’t need speed. Some people just need to spend more time programming; everyone was a slow programmer some time. But I know from experience that slow coders don’t work at LibraryThing. They don’t fit the LibraryThing development culture. EOT; $pattern = '[\w\d]+'; $words = array(); preg_match_all('/'.$pattern.'/', $p, $words); $words = $words[0]; $result = array(); foreach ($words as $word) { $len = mb_strlen($word); $result[$len]++; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key 4 in /in/KSVWo on line 13 Warning: Undefined array key 10 in /in/KSVWo on line 13 Warning: Undefined array key 6 in /in/KSVWo on line 13 Warning: Undefined array key 7 in /in/KSVWo on line 13 Warning: Undefined array key 2 in /in/KSVWo on line 13 Warning: Undefined array key 3 in /in/KSVWo on line 13 Warning: Undefined array key 11 in /in/KSVWo on line 13 Warning: Undefined array key 5 in /in/KSVWo on line 13 Warning: Undefined array key 1 in /in/KSVWo on line 13 Warning: Undefined array key 8 in /in/KSVWo on line 13 Warning: Undefined array key 9 in /in/KSVWo on line 13 Warning: Undefined array key 12 in /in/KSVWo on line 13

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