3v4l.org

run code in 300+ PHP versions simultaneously
<?php function v1($data) { $data = str_replace("\r", '', $data); $data = explode("\n", $data); foreach ($data as $line) { if (isset($line[0]) && $line[0] === '.') { $line = '.' . $line; } //send } } $data = str_repeat("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\r\n", 100000); v1($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vfrZj
function name:  (null)
number of ops:  9
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa%0D%0A'
          2        SEND_VAL                                                 100000
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
   16     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
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 23
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 23
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 22
Branch analysis from position: 19
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/vfrZj
function name:  v1
number of ops:  25
compiled vars:  !0 = $data, !1 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%0D'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    5     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%0A'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    6    12      > FE_RESET_R                                       $6      !0, ->23
         13    > > FE_FETCH_R                                               $6, !1, ->23
    7    14    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~7      !1, 0
         15      > JMPZ_EX                                          ~7      ~7, ->19
         16    >   FETCH_DIM_R                                      ~8      !1, 0
         17        IS_IDENTICAL                                     ~9      ~8, '.'
         18        BOOL                                             ~7      ~9
         19    > > JMPZ                                                     ~7, ->22
    8    20    >   CONCAT                                           ~10     '.', !1
         21        ASSIGN                                                   !1, ~10
    6    22    > > JMP                                                      ->13
         23    >   FE_FREE                                                  $6
   12    24      > RETURN                                                   null

End of function v1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.68 ms | 1403 KiB | 20 Q