3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = '"Naam" "Artikelnummer" "EAN Nummer" "Gewicht" "Omschrijving" "Specificatie" "Categorie ID" "Prijs" "Inkoopprijs" "BTW percentage" "Verkocht Per" "Voorraad" "Merk" "Hoofdcategorie" "Subcategorie" "Trefwoorden" "Verpakking" "TradeTrackerId" "HoofdImage" "Aantal Verkocht" "Korting" "Locatie" "Leverancier" "Vaste Staffels" "Staffel aantal 1" "Staffel prijs 1" "Staffel korting 1" "Staffel aantal 2" "Staffel prijs 2" "Staffel korting 2" "Staffel aantal 3" "Staffel prijs 3" "Staffel korting 3" "Staffel aantal 4" "Staffel prijs 4" "Staffel korting 4" "Staffel aantal 5" "Staffel prijs 5" "Staffel korting 5" "Pagina titel" "Meta sleutelwoorden" "Meta beschrijving" "SEO Alias"' $lineArray = preg_split('/\t[ \r\n]*(?=([^"]*"[^"]*")*[^"]*$)/', $line); print_r($lineArray);
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected '$lineArray' (T_VARIABLE) in /in/8a2S9 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VARIABLE in /in/8a2S9 on line 3
Process exited with code 255.

preferences:
177.05 ms | 1399 KiB | 55 Q