3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $people = array("DHL Guest PayPal", "DHL Guest BT", "DHL Guest Bank", "DHL Ret PayPal"); /*if (in_array("DHL Guest PayPal", $people)) { $count++; echo "Match found"; } else { echo "Match not found"; } echo $count; echo $people[0]; foreach ($people as $array){ } */ for ($i=0; $i<sizeof($people); $i++) { $var = $people[$i]; echo "Ektipono to : " .$var; if (strpos($var, "DHL")){ echo "vrika dhl"; } echo "\n"; } ?>
based on UnKP0
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
Ektipono to : DHL Guest PayPal Ektipono to : DHL Guest BT Ektipono to : DHL Guest Bank Ektipono to : DHL Ret PayPal