3v4l.org

run code in 300+ PHP versions simultaneously
<?php $articles = "Maybe it’s less true than it used to be that people are made of place--that the same elements that form coal and clay and bogs and ice form faces, voices and characters. I wrote my first collection of short stories, The Bostons, in homage to this book, hoping, as did Joyce’s young Stephen Dedalus, to encounter for the millionth time the reality of experience and to forge in the smithy of my soul the uncreated conscience of some island-dwellers I knew."; $keywords = "less true than, people are made, smithy of my soul, uncreated conscience, this is a test string"; $keywordsArray = explode(', ',$keywords); $pattern = '/'.implode('|',$keywordsArray).'/'; preg_match_all($pattern,$articles,$matches); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> array(4) { [0]=> string(14) "less true than" [1]=> string(15) "people are made" [2]=> string(17) "smithy of my soul" [3]=> string(20) "uncreated conscience" } }

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