3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $donut = array("Adı" => false, "açıklama" => false, "kurulum" => false, "kaldırma" => false, "onayDurumu" => 2); $degiskenler = array("adı" => "Modül Adı:"); $line = "// Modül Adı: Denek kod"; foreach ($donut as $varAd => $var){ if (strpos($line, $varAd) == 0 or strpos($line,$varAd)){ $donut[$varAd] = substr($line, strpos($line, $varAd) + strlen($varAd)) + 1; echo $donut[$varAd]; } } ?>
Output for 7.1.0
Warning: A non-numeric value encountered in /in/36tqG on line 7 1 Warning: A non-numeric value encountered in /in/36tqG on line 7 1 Warning: A non-numeric value encountered in /in/36tqG on line 7 1 Warning: A non-numeric value encountered in /in/36tqG on line 7 1 Warning: A non-numeric value encountered in /in/36tqG on line 7 1
Output for 4.3.0 - 7.0.14
11111