3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<EOL name.lastname name.lastname name.lastname myname.mylastname name.lastname EOL; $path = 'php://temp'; $handle = fopen($path, 'w+b'); fputs($handle, $data); rewind($handle); $username = 'myname.mylastname'; $liste = false; while (false !== ($line = fgets($handle))) { if (trim($line) === $username){ $liste = true; break; } } fclose($handle); var_dump($liste);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 17
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 24
filename:       /in/4VG4D
function name:  (null)
number of ops:  37
compiled vars:  !0 = $data, !1 = $path, !2 = $handle, !3 = $username, !4 = $liste, !5 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'name.lastname%0Aname.lastname%0Aname.lastname%0Amyname.mylastname%0Aname.lastname'
   11     1        ASSIGN                                                   !1, 'php%3A%2F%2Ftemp'
   12     2        INIT_FCALL                                               'fopen'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 'w%2Bb'
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !2, $8
   13     7        INIT_FCALL                                               'fputs'
          8        SEND_VAR                                                 !2
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   14    11        INIT_FCALL                                               'rewind'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
   16    14        ASSIGN                                                   !3, 'myname.mylastname'
   17    15        ASSIGN                                                   !4, <false>
   19    16      > JMP                                                      ->24
   20    17    >   INIT_FCALL                                               'trim'
         18        SEND_VAR                                                 !5
         19        DO_ICALL                                         $14     
         20        IS_IDENTICAL                                             !3, $14
         21      > JMPZ                                                     ~15, ->24
   21    22    >   ASSIGN                                                   !4, <true>
   22    23      > JMP                                                      ->30
   19    24    >   INIT_FCALL                                               'fgets'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                         $17     
         27        ASSIGN                                           ~18     !5, $17
         28        TYPE_CHECK                                  1018          ~18
         29      > JMPNZ                                                    ~19, ->17
   25    30    >   INIT_FCALL                                               'fclose'
         31        SEND_VAR                                                 !2
         32        DO_ICALL                                                 
   27    33        INIT_FCALL                                               'var_dump'
         34        SEND_VAR                                                 !4
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.33 ms | 1012 KiB | 20 Q