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); var_dump($words);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> array(140) { [0]=> string(4) "That" [1]=> string(10) "interviews" [2]=> string(6) "should" [3]=> string(7) "involve" [4]=> string(6) "simple" [5]=> string(4) "code" [6]=> string(2) "is" [7]=> string(3) "now" [8]=> string(6) "common" [9]=> string(6) "wisdom" [10]=> string(2) "in" [11]=> string(11) "programming" [12]=> string(7) "circles" [13]=> string(3) "The" [14]=> string(5) "story" [15]=> string(2) "is" [16]=> string(4) "that" [17]=> string(1) "a" [18]=> string(4) "high" [19]=> string(10) "percentage" [20]=> string(2) "of" [21]=> string(11) "programmers" [22]=> string(4) "even" [23]=> string(6) "people" [24]=> string(4) "with" [25]=> string(10) "impressive" [26]=> string(7) "resumes" [27]=> string(4) "just" [28]=> string(3) "can" [29]=> string(1) "t" [30]=> string(4) "code" [31]=> string(5) "Asked" [32]=> string(2) "to" [33]=> string(2) "do" [34]=> string(3) "the" [35]=> string(8) "simplest" [36]=> string(6) "things" [37]=> string(8) "problems" [38]=> string(1) "a" [39]=> string(4) "good" [40]=> string(6) "coders" [41]=> string(5) "could" [42]=> string(5) "solve" [43]=> string(2) "as" [44]=> string(4) "fast" [45]=> string(4) "they" [46]=> string(5) "could" [47]=> string(5) "write" [48]=> string(4) "some" [49]=> string(5) "spend" [50]=> string(3) "ten" [51]=> string(2) "or" [52]=> string(6) "twenty" [53]=> string(7) "minutes" [54]=> string(6) "before" [55]=> string(4) "they" [56]=> string(3) "get" [57]=> string(2) "an" [58]=> string(6) "answer" [59]=> string(2) "or" [60]=> string(4) "fail" [61]=> string(8) "entirely" [62]=> string(3) "See" [63]=> string(10) "discussion" [64]=> string(2) "by" [65]=> string(4) "Jeff" [66]=> string(7) "Attwood" [67]=> string(3) "and" [68]=> string(4) "Joel" [69]=> string(7) "Spolsky" [70]=> string(1) "I" [71]=> string(3) "don" [72]=> string(1) "t" [73]=> string(2) "go" [74]=> string(2) "as" [75]=> string(3) "far" [76]=> string(2) "as" [77]=> string(6) "others" [78]=> string(4) "here" [79]=> string(1) "I" [80]=> string(5) "think" [81]=> string(1) "a" [82]=> string(3) "lot" [83]=> string(2) "of" [84]=> string(4) "slow" [85]=> string(6) "coders" [86]=> string(3) "are" [87]=> string(8) "probably" [88]=> string(9) "excellent" [89]=> string(9) "employees" [90]=> string(6) "making" [91]=> string(2) "up" [92]=> string(3) "for" [93]=> string(2) "it" [94]=> string(2) "in" [95]=> string(5) "other" [96]=> string(5) "areas" [97]=> string(4) "Some" [98]=> string(8) "projects" [99]=> string(3) "don" [100]=> string(1) "t" [101]=> string(4) "need" [102]=> string(5) "speed" [103]=> string(4) "Some" [104]=> string(6) "people" [105]=> string(4) "just" [106]=> string(4) "need" [107]=> string(2) "to" [108]=> string(5) "spend" [109]=> string(4) "more" [110]=> string(4) "time" [111]=> string(11) "programming" [112]=> string(8) "everyone" [113]=> string(3) "was" [114]=> string(1) "a" [115]=> string(4) "slow" [116]=> string(10) "programmer" [117]=> string(4) "some" [118]=> string(4) "time" [119]=> string(3) "But" [120]=> string(1) "I" [121]=> string(4) "know" [122]=> string(4) "from" [123]=> string(10) "experience" [124]=> string(4) "that" [125]=> string(4) "slow" [126]=> string(6) "coders" [127]=> string(3) "don" [128]=> string(1) "t" [129]=> string(4) "work" [130]=> string(2) "at" [131]=> string(12) "LibraryThing" [132]=> string(4) "They" [133]=> string(3) "don" [134]=> string(1) "t" [135]=> string(3) "fit" [136]=> string(3) "the" [137]=> string(12) "LibraryThing" [138]=> string(11) "development" [139]=> string(7) "culture" } }

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:
29.39 ms | 413 KiB | 8 Q