3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = <<<EOL A B C D One Two Three Four 100 2000 30000 400000 EOL; $handle = tmpfile(); fwrite($handle, $input); rewind($handle); echo '<table width="400" border="1">'; while (($transArry = fgetcsv($handle, 1000, ' ', escape: ' ')) !== false) { vprintf( "\n\t<tr><td>%s %s</td><td>%s</td><td>%s</td></tr>", $transArry ); } fclose($handle); echo "\n</table>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 13
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 13
Branch analysis from position: 27
Branch analysis from position: 13
filename:       /in/H5JOI
function name:  (null)
number of ops:  32
compiled vars:  !0 = $input, !1 = $handle, !2 = $transArry
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'A+B+C+D%0AOne+Two+Three+Four%0A100+2000+30000+400000'
    9     1        INIT_FCALL                                               'tmpfile'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !1, $4
   10     4        INIT_FCALL                                               'fwrite'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   11     8        INIT_FCALL                                               'rewind'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
   12    11        ECHO                                                     '%3Ctable+width%3D%22400%22+border%3D%221%22%3E'
   13    12      > JMP                                                      ->17
   14    13    >   INIT_FCALL                                               'vprintf'
   15    14        SEND_VAL                                                 '%0A%09%3Ctr%3E%3Ctd%3E%25s+%25s%3C%2Ftd%3E%3Ctd%3E%25s%3C%2Ftd%3E%3Ctd%3E%25s%3C%2Ftd%3E%3C%2Ftr%3E'
   16    15        SEND_VAR                                                 !2
   14    16        DO_ICALL                                                 
   13    17    >   INIT_FCALL                                               'fgetcsv'
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 1000
         20        SEND_VAL                                                 '+'
         21        SEND_VAL                                                 '+'
         22        CHECK_UNDEF_ARGS                                         
         23        DO_ICALL                                         $9      
         24        ASSIGN                                           ~10     !2, $9
         25        TYPE_CHECK                                  1018          ~10
         26      > JMPNZ                                                    ~11, ->13
   19    27    >   INIT_FCALL                                               'fclose'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                                 
   20    30        ECHO                                                     '%0A%3C%2Ftable%3E'
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.23 ms | 1017 KiB | 19 Q