3v4l.org

run code in 300+ PHP versions simultaneously
<?php $csv = <<<'EOD' "ASTA","Aerospace Technologies of Australia Pty Ltd (Australia)" "ATAC"," American Tactical Aircraft Consultants (United States)" "ATEC"," ATEC vos (Czech Republic)" "ATG","Aviation Technology Group Inc (United States)" "ATLAS","Atlas Aircraft Corporation of South Africa (Pty) Ltd (South Africa)" "ATR","GIE Avions de Transport Régional (France/Italy)" "AUSTER","Auster Aircraft Ltd (United Kingdom)" "AUSTFLIGHT","Austflight ULA Pty Ltd (Australia)" "AUSTRALIAN AEROSPACE","Australian Aerospace Pty Ltd (Australia)" "AUSTRALITE","Australite Inc (United States)" "AUTOGYRO","AutoGyro Europe GmbH (Germany)" "AVANTAGE","OOO Samoletstroitelynyi Kompaniya Avantazh (Russia)" "AVCRAFT","AvCraft Aviation LLC (United States)" "AVEKO","Aveko sro (Czech Republic)" "AVIA (1)","Azionari Vercellese Industrie Aeronautiche (Italy)" "AVIA (2)","Avia-Zavody Jirího Dimitrova (Czech Republic)" "AERFER-AERMACCHI","see AERFER and AERMACCHI" EOD; $url = 'data:text/plain,' . urlencode($csv); if ( false !== $handle = fopen($url, "r") ) { while ( false !== $data = fgetcsv($handle) ) { if ( preg_match('~(\S.*?)(?|\h*\(([^)]*)\)|())\h*$~', $data[1], $m) ) printf("%-70s\t%s\n", $m[1], $m[2]); } }
Output for 8.4.1 - 8.4.14
Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 Aerospace Technologies of Australia Pty Ltd Australia Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 American Tactical Aircraft Consultants United States Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 ATEC vos Czech Republic Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 Aviation Technology Group Inc United States Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 Atlas Aircraft Corporation of South Africa (Pty) Ltd South Africa Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 GIE Avions de Transport Régional France/Italy Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 Auster Aircraft Ltd United Kingdom Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 Austflight ULA Pty Ltd Australia Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 Australian Aerospace Pty Ltd Australia Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 Australite Inc United States Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 AutoGyro Europe GmbH Germany Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 OOO Samoletstroitelynyi Kompaniya Avantazh Russia Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 AvCraft Aviation LLC United States Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 Aveko sro Czech Republic Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 Azionari Vercellese Industrie Aeronautiche Italy Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 Avia-Zavody Jirího Dimitrova Czech Republic Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26 see AERFER and AERMACCHI Deprecated: fgetcsv(): the $escape parameter must be provided as its default value will change in /in/MGhuO on line 26
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.27
Aerospace Technologies of Australia Pty Ltd Australia American Tactical Aircraft Consultants United States ATEC vos Czech Republic Aviation Technology Group Inc United States Atlas Aircraft Corporation of South Africa (Pty) Ltd South Africa GIE Avions de Transport Régional France/Italy Auster Aircraft Ltd United Kingdom Austflight ULA Pty Ltd Australia Australian Aerospace Pty Ltd Australia Australite Inc United States AutoGyro Europe GmbH Germany OOO Samoletstroitelynyi Kompaniya Avantazh Russia AvCraft Aviation LLC United States Aveko sro Czech Republic Azionari Vercellese Industrie Aeronautiche Italy Avia-Zavody Jirího Dimitrova Czech Republic see AERFER and AERMACCHI

preferences:
152.82 ms | 417 KiB | 5 Q