3v4l.org

run code in 500+ 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]); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 34
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 14
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 28
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 14
Branch analysis from position: 34
Branch analysis from position: 14
Branch analysis from position: 28
Branch analysis from position: 34
filename:       /in/MGhuO
function name:  (null)
number of ops:  35
compiled vars:  !0 = $csv, !1 = $url, !2 = $handle, !3 = $data, !4 = $m
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%22ASTA%22%2C%22Aerospace+Technologies+of+Australia+Pty+Ltd+%28Australia%29%22%0A%22ATAC%22%2C%22+American+Tactical+Aircraft+Consultants+%28United+States%29%22%0A%22ATEC%22%2C%22+ATEC+vos+%28Czech+Republic%29%22%0A%22ATG%22%2C%22Aviation+Technology+Group+Inc+%28United+States%29%22%0A%22ATLAS%22%2C%22Atlas+Aircraft+Corporation+of+South+Africa+%28Pty%29+Ltd+%28South+Africa%29%22%0A%22ATR%22%2C%22GIE+Avions+de+Transport+R%C3%A9gional+%28France%2FItaly%29%22%0A%22AUSTER%22%2C%22Auster+Aircraft+Ltd+%28United+Kingdom%29%22%0A%22AUSTFLIGHT%22%2C%22Austflight+ULA+Pty+Ltd+%28Australia%29%22%0A%22AUSTRALIAN+AEROSPACE%22%2C%22Australian+Aerospace+Pty+Ltd+%28Australia%29%22%0A%22AUSTRALITE%22%2C%22Australite+Inc+%28United+States%29%22%0A%22AUTOGYRO%22%2C%22AutoGyro+Europe+GmbH+%28Germany%29%22%0A%22AVANTAGE%22%2C%22OOO+Samoletstroitelynyi+Kompaniya+Avantazh+%28Russia%29%22%0A%22AVCRAFT%22%2C%22AvCraft+Aviation+LLC+%28United+States%29%22%0A%22AVEKO%22%2C%22Aveko+sro+%28Czech+Republic%29%22%0A%22AVIA+%281%29%22%2C%22Azionari+Vercellese+Industrie+Aeronautiche+%28Italy%29%22%0A%22AVIA+%282%29%22%2C%22Avia-Zavody+Jir%C3%ADho+Dimitrova+%28Czech+Republic%29%22%0A%22AERFER-AERMACCHI%22%2C%22see+AERFER+and+AERMACCHI%22'
   23     1        INIT_FCALL                                                   'urlencode'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $6      
          4        CONCAT                                               ~7      'data%3Atext%2Fplain%2C', $6
          5        ASSIGN                                                       !1, ~7
   25     6        INIT_FCALL                                                   'fopen'
          7        SEND_VAR                                                     !1
          8        SEND_VAL                                                     'r'
          9        DO_ICALL                                             $9      
         10        ASSIGN                                               ~10     !2, $9
         11        TYPE_CHECK                                      1018          ~10
         12      > JMPZ                                                         ~11, ->34
   26    13    > > JMP                                                          ->28
   27    14    >   INIT_FCALL                                                   'preg_match'
         15        SEND_VAL                                                     '%7E%28%5CS.%2A%3F%29%28%3F%7C%5Ch%2A%5C%28%28%5B%5E%29%5D%2A%29%5C%29%7C%28%29%29%5Ch%2A%24%7E'
         16        FETCH_DIM_R                                          ~12     !3, 1
         17        SEND_VAL                                                     ~12
         18        SEND_REF                                                     !4
         19        DO_ICALL                                             $13     
         20      > JMPZ                                                         $13, ->28
   28    21    >   INIT_FCALL                                                   'printf'
         22        SEND_VAL                                                     '%25-70s%09%25s%0A'
         23        FETCH_DIM_R                                          ~14     !4, 1
         24        SEND_VAL                                                     ~14
         25        FETCH_DIM_R                                          ~15     !4, 2
         26        SEND_VAL                                                     ~15
         27        DO_ICALL                                                     
   26    28    >   INIT_FCALL                                                   'fgetcsv'
         29        SEND_VAR                                                     !2
         30        DO_ICALL                                             $17     
         31        ASSIGN                                               ~18     !3, $17
         32        TYPE_CHECK                                      1018          ~18
         33      > JMPNZ                                                        ~19, ->14
   31    34    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.24 ms | 2685 KiB | 18 Q