3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'Year,Make,Model,Description,Price 1997,Ford,E350,"ac, abs, moon",3000.00 1999,Chevy,"Venture ""Extended Edition""","",4900.00 1999,Chevy,"Venture ""Extended Edition, Very Large""","",5000.00 1996,Jeep,Grand Cherokee,"MUST SELL! air, moon roof, loaded",4799.00'; $handle = fopen("data://text/plain,$data", 'r'); while (($row = fgetcsv($handle, )) !== FALSE) { // do something with row values print_r($row); } fclose($handle);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
Branch analysis from position: 9
filename:       /in/qJsHd
function name:  (null)
number of ops:  22
compiled vars:  !0 = $data, !1 = $handle, !2 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Year%2CMake%2CModel%2CDescription%2CPrice%0A1997%2CFord%2CE350%2C%22ac%2C+abs%2C+moon%22%2C3000.00%0A1999%2CChevy%2C%22Venture+%22%22Extended+Edition%22%22%22%2C%22%22%2C4900.00%0A1999%2CChevy%2C%22Venture+%22%22Extended+Edition%2C+Very+Large%22%22%22%2C%22%22%2C5000.00%0A1996%2CJeep%2CGrand+Cherokee%2C%22MUST+SELL%21%0Aair%2C+moon+roof%2C+loaded%22%2C4799.00'
    9     1        INIT_FCALL                                               'fopen'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~4      'data%3A%2F%2Ftext%2Fplain%2C', !0
          4        SEND_VAL                                                 ~4
          5        SEND_VAL                                                 'r'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
   10     8      > JMP                                                      ->12
   12     9    >   INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   10    12    >   INIT_FCALL                                               'fgetcsv'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $8      
         15        ASSIGN                                           ~9      !2, $8
         16        TYPE_CHECK                                  1018          ~9
         17      > JMPNZ                                                    ~10, ->9
   14    18    >   INIT_FCALL                                               'fclose'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.81 ms | 1001 KiB | 17 Q