3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res=array(); $raw="aabbcdefghmnjaachto"; $res=array(); $word_array=array('cat','rat','goat','tozal','egg'); $raw_array= str_split($raw); foreach($word_array as $value) { $word_value= str_split($value); $res[$value]='yes'; foreach($word_value as $w_value) { if (!in_array($w_value,$raw_array)) $res[$value]='No'; } } print_r($res);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [cat] => yes [rat] => No [goat] => yes [tozal] => No [egg] => yes )

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:
161.89 ms | 405 KiB | 5 Q