3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$data = file("тут ссыль до txt файла", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); $data = [ '18/Feb/2022:20:51:13 +0500|/dfm96|0|Hurts - Redemption (Kolya Funk Remix)', '18/Feb/2022:20:52:18 +0500|/dfm96|1|NRD1 - All Good Things (Come To An End)', ]; $data = array_reverse($data); $track_count = 0; foreach ($data as $line) { $mass = explode('|', $line); if ($mass[1] === '/dfm96') { $track_count++; if ($track_count > 0) { echo "тра ля ля\n"; } if ($track_count === 20) { break; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 24
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 24
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 20
Branch analysis from position: 23
Branch analysis from position: 24
Branch analysis from position: 24
filename:       /in/a8kUU
function name:  (null)
number of ops:  26
compiled vars:  !0 = $data, !1 = $track_count, !2 = $line, !3 = $mass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_reverse'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
   10     5        ASSIGN                                                   !1, 0
   12     6      > FE_RESET_R                                       $8      !0, ->24
          7    > > FE_FETCH_R                                               $8, !2, ->24
   13     8    >   INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%7C'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !3, $9
   15    13        FETCH_DIM_R                                      ~11     !3, 1
         14        IS_IDENTICAL                                             ~11, '%2Fdfm96'
         15      > JMPZ                                                     ~12, ->23
   16    16    >   PRE_INC                                                  !1
   18    17        IS_SMALLER                                               0, !1
         18      > JMPZ                                                     ~14, ->20
   19    19    >   ECHO                                                     '%D1%82%D1%80%D0%B0+%D0%BB%D1%8F+%D0%BB%D1%8F%0A'
   22    20    >   IS_IDENTICAL                                             !1, 20
         21      > JMPZ                                                     ~15, ->23
   23    22    > > JMP                                                      ->24
   12    23    > > JMP                                                      ->7
         24    >   FE_FREE                                                  $8
   26    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.79 ms | 1396 KiB | 17 Q