3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array("76","Casio AW-S90-7AV 6 LAT GWARANCJI - WYSYŁKA 24H - infolinia: 500 303 509","147,96748","10"); $filtr1 = "Casio"; $limit = "5"; //czyścimy zbedne znaki z csvki $cena = str_replace(",", ".", $data[2]); // jeśli w cenie jest "," $cena = str_replace(" ", "", $cena); // jeśli w cenie jest " " $ilosc = str_replace(">", "", $data[3]); // jeśli w ilości jest ">" if (((Strpos($data[1],$filtr1,0) !== false) && ($cena != "0.00") && ($ilosc >= $limit)) OR (($filtr1 =="") && ($cena != "0.00") && ($ilosc >= $limit))) { echo 'Niewpisany produkt: indeks - <b>'. $data[0] . '</b> nazwa - <b>'.$data[1] . '</b> cena - <b>'.$cena . '</b> ilość - <b>'.$ilosc . '</b><br />'; fwrite($writeFd, 'Indeks - '. $data[0] . ' nazwa - '.$data[1] . ' cena - '.$cena . ' ilość - '.$ilosc); fwrite($writeFd, "\n\r"); $dopliku++; @ob_flush(); @flush(); }
Output for git.master, git.master_jit, rfc.property-hooks
Niewpisany produkt: indeks - <b>76</b> nazwa - <b>Casio AW-S90-7AV 6 LAT GWARANCJI - WYSYŁKA 24H - infolinia: 500 303 509</b> cena - <b>147.96748</b> ilość - <b>10</b><br /> Warning: Undefined variable $writeFd in /in/CXrdm on line 16 Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, null given in /in/CXrdm:16 Stack trace: #0 /in/CXrdm(16): fwrite(NULL, 'Indeks - 76 na...') #1 {main} thrown in /in/CXrdm on line 16
Process exited with code 255.

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:
44.82 ms | 402 KiB | 8 Q