3v4l.org

run code in 300+ PHP versions simultaneously
<?php $words = array("3d", "4"); $sentences = array("x-3d-abstract--part--282345", "3d-speed--boat-430419", "beautiful-flower-462451", "3d-d--384967"); foreach ($words as $word) { $sentences_found = array_values(array_filter($sentences, function($find_words) use ($word) {return strpos($find_words, $word);})); } print_r($sentences_found);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => x-3d-abstract--part--282345 [1] => 3d-speed--boat-430419 [2] => beautiful-flower-462451 [3] => 3d-d--384967 )

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