3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'word one of each one fish two fish red fish blue fish car : carpet as java : javascript!!&@$%^& testing, 1, 2 testing go Go GO Stop stop hello\nworld hello\tworld hello world \t\tIntroductory Course '; preg_match_all("/\w+/", $str, $matches); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> array(35) { [0]=> string(4) "word" [1]=> string(3) "one" [2]=> string(2) "of" [3]=> string(4) "each" [4]=> string(3) "one" [5]=> string(4) "fish" [6]=> string(3) "two" [7]=> string(4) "fish" [8]=> string(3) "red" [9]=> string(4) "fish" [10]=> string(4) "blue" [11]=> string(4) "fish" [12]=> string(3) "car" [13]=> string(6) "carpet" [14]=> string(2) "as" [15]=> string(4) "java" [16]=> string(10) "javascript" [17]=> string(7) "testing" [18]=> string(1) "1" [19]=> string(1) "2" [20]=> string(7) "testing" [21]=> string(2) "go" [22]=> string(2) "Go" [23]=> string(2) "GO" [24]=> string(4) "Stop" [25]=> string(4) "stop" [26]=> string(5) "hello" [27]=> string(6) "nworld" [28]=> string(5) "hello" [29]=> string(6) "tworld" [30]=> string(5) "hello" [31]=> string(5) "world" [32]=> string(1) "t" [33]=> string(13) "tIntroductory" [34]=> string(6) "Course" } }

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.14 ms | 403 KiB | 8 Q