3v4l.org

run code in 300+ PHP versions simultaneously
<?php function v1($data) { $fp = fopen("php://temp", "r+"); fwrite($fp, $data); unset($data); rewind($fp); while (($line = stream_get_line($fp, 1000, "\n")) !== false) { $line = rtrim($line, "\r"); if (isset($line[0]) && $line[0] === '.') { $line = '.' . $line; } //send } } $data = str_repeat("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\r\n", 10000); v1($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/65vGZ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa%0D%0A'
          2        SEND_VAL                                                 10000
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
   19     5        INIT_FCALL                                               'v1'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function v1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 15
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 46) Position 1 = 22, Position 2 = 25
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 15
Branch analysis from position: 36
Branch analysis from position: 15
Branch analysis from position: 28
Branch analysis from position: 25
filename:       /in/65vGZ
function name:  v1
number of ops:  37
compiled vars:  !0 = $data, !1 = $fp, !2 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'fopen'
          2        SEND_VAL                                                 'php%3A%2F%2Ftemp'
          3        SEND_VAL                                                 'r%2B'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        INIT_FCALL                                               'fwrite'
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    6    10        UNSET_CV                                                 !0
    7    11        INIT_FCALL                                               'rewind'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    8    14      > JMP                                                      ->28
    9    15    >   INIT_FCALL                                               'rtrim'
         16        SEND_VAR                                                 !2
         17        SEND_VAL                                                 '%0D'
         18        DO_ICALL                                         $7      
         19        ASSIGN                                                   !2, $7
   10    20        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !2, 0
         21      > JMPZ_EX                                          ~9      ~9, ->25
         22    >   FETCH_DIM_R                                      ~10     !2, 0
         23        IS_IDENTICAL                                     ~11     ~10, '.'
         24        BOOL                                             ~9      ~11
         25    > > JMPZ                                                     ~9, ->28
   11    26    >   CONCAT                                           ~12     '.', !2
         27        ASSIGN                                                   !2, ~12
    8    28    >   INIT_FCALL                                               'stream_get_line'
         29        SEND_VAR                                                 !1
         30        SEND_VAL                                                 1000
         31        SEND_VAL                                                 '%0A'
         32        DO_ICALL                                         $14     
         33        ASSIGN                                           ~15     !2, $14
         34        TYPE_CHECK                                  1018          ~15
         35      > JMPNZ                                                    ~16, ->15
   15    36    > > RETURN                                                   null

End of function v1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.03 ms | 1403 KiB | 26 Q