3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1=['289','290','297']; $array2=['289','290','297']; $num=0; while ($num<count($array1)) { echo print_r($array1,true); echo '<br>'; echo print_r($array2,true); $t=$array1[$num]; echo '<br>'; echo $t; echo '<br>'; if (array_search($t,$array2,TRUE)) { echo 'Isto deu match: '.$array1[$num]; } echo '<br>'; $num++; }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 289 [1] => 290 [2] => 297 ) <br>Array ( [0] => 289 [1] => 290 [2] => 297 ) <br>289<br><br>Array ( [0] => 289 [1] => 290 [2] => 297 ) <br>Array ( [0] => 289 [1] => 290 [2] => 297 ) <br>290<br>Isto deu match: 290<br>Array ( [0] => 289 [1] => 290 [2] => 297 ) <br>Array ( [0] => 289 [1] => 290 [2] => 297 ) <br>297<br>Isto deu match: 297<br>

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:
53.53 ms | 406 KiB | 5 Q