3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '1 TANITIM 2 SPOR MOZAİK '; $list=array_map("trim",explode("\n", $data)); $jsn=[]; echo '#EXTM3U'."\n"; foreach($list as $item){ $t = preg_match("/[0-9]+\s+(.*)/",$item,$matches)?$matches[1]:[]; $n = $t; $t = mb_strtolower($t); $t = str_replace(' ','_',$t); $t = str_replace(['ü','ç','ş','ğ','ı'],['u','c','s','g','i'],$t); $t = strtoupper($t); echo '#EXTINF:0,' . $n."\n"; $t = 'http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$'.$t.'/1.m3u8/Level(2621440)?start=LIVE&end=END'; echo $t."\n"; } //print_r($jsn);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 55
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 55
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 55
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
filename:       /in/tv1gJ
function name:  (null)
number of ops:  57
compiled vars:  !0 = $data, !1 = $list, !2 = $jsn, !3 = $item, !4 = $t, !5 = $matches, !6 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1+TANITIM%0A++++2+SPOR+MOZA%C4%B0K%0A'
    7     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'trim'
          3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%0A'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $8      
          7        SEND_VAR                                                 $8
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !1, $9
    9    10        ASSIGN                                                   !2, <array>
   11    11        ECHO                                                     '%23EXTM3U%0A'
   13    12      > FE_RESET_R                                       $12     !1, ->55
         13    > > FE_FETCH_R                                               $12, !3, ->55
   14    14    >   INIT_FCALL                                               'preg_match'
         15        SEND_VAL                                                 '%2F%5B0-9%5D%2B%5Cs%2B%28.%2A%29%2F'
         16        SEND_VAR                                                 !3
         17        SEND_REF                                                 !5
         18        DO_ICALL                                         $13     
         19      > JMPZ                                                     $13, ->23
         20    >   FETCH_DIM_R                                      ~14     !5, 1
         21        QM_ASSIGN                                        ~15     ~14
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~15     <array>
         24    >   ASSIGN                                                   !4, ~15
   15    25        ASSIGN                                                   !6, !4
   16    26        INIT_FCALL                                               'mb_strtolower'
         27        SEND_VAR                                                 !4
         28        DO_ICALL                                         $18     
         29        ASSIGN                                                   !4, $18
   17    30        INIT_FCALL                                               'str_replace'
         31        SEND_VAL                                                 '+'
         32        SEND_VAL                                                 '_'
         33        SEND_VAR                                                 !4
         34        DO_ICALL                                         $20     
         35        ASSIGN                                                   !4, $20
   18    36        INIT_FCALL                                               'str_replace'
         37        SEND_VAL                                                 <array>
         38        SEND_VAL                                                 <array>
         39        SEND_VAR                                                 !4
         40        DO_ICALL                                         $22     
         41        ASSIGN                                                   !4, $22
   19    42        INIT_FCALL                                               'strtoupper'
         43        SEND_VAR                                                 !4
         44        DO_ICALL                                         $24     
         45        ASSIGN                                                   !4, $24
   20    46        CONCAT                                           ~26     '%23EXTINF%3A0%2C', !6
         47        CONCAT                                           ~27     ~26, '%0A'
         48        ECHO                                                     ~27
   21    49        CONCAT                                           ~28     'http%3A%2F%2F195.175.223.2%3A8080%2FMVP%2FTTG%2Flive-shls%2Fshls%2FLIVE%24', !4
         50        CONCAT                                           ~29     ~28, '%2F1.m3u8%2FLevel%282621440%29%3Fstart%3DLIVE%26end%3DEND'
         51        ASSIGN                                                   !4, ~29
   22    52        CONCAT                                           ~31     !4, '%0A'
         53        ECHO                                                     ~31
   13    54      > JMP                                                      ->13
         55    >   FE_FREE                                                  $12
   25    56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.71 ms | 1400 KiB | 25 Q