3v4l.org

run code in 300+ PHP versions simultaneously
<?php $companyCad = array("52.10", "62", "64.15.44.25", "65.10", "65.14", "65.21", "70", "71", "71.15.12", "93.55"); $programCad = array("92.55", "92.74", "93", "94.10", "98.12", "98.66"); $match = array(); foreach($companyCad as $comp) { foreach($programCad as $prog) { if(strpos($comp, $prog) !== false) { $match[$comp] = $prog; break; } } } var_dump($match);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["93.55"]=> string(2) "93" }

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