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);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
#EXTM3U #EXTINF:0,TANITIM http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$TANITIM/1.m3u8/Level(2621440)?start=LIVE&end=END #EXTINF:0,SPOR MOZAİK http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$SPOR_MOZAİK/1.m3u8/Level(2621440)?start=LIVE&end=END Fatal error: Uncaught TypeError: mb_strtolower(): Argument #1 ($string) must be of type string, array given in /in/tv1gJ:16 Stack trace: #0 /in/tv1gJ(16): mb_strtolower(Array) #1 {main} thrown in /in/tv1gJ on line 16
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 #EXTM3U #EXTINF:0,TANITIM http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$TANITIM/1.m3u8/Level(2621440)?start=LIVE&end=END #EXTINF:0,SPOR MOZAİK http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$SPOR_MOZAİK/1.m3u8/Level(2621440)?start=LIVE&end=END Fatal error: Uncaught TypeError: mb_strtolower(): Argument #1 ($string) must be of type string, array given in /in/tv1gJ:16 Stack trace: #0 /in/tv1gJ(16): mb_strtolower(Array) #1 {main} thrown in /in/tv1gJ on line 16
Process exited with code 255.
Output for 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
#EXTM3U #EXTINF:0,TANITIM http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$TANITIM/1.m3u8/Level(2621440)?start=LIVE&end=END #EXTINF:0,SPOR MOZAİK http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$SPOR_MOZAİK/1.m3u8/Level(2621440)?start=LIVE&end=END Warning: mb_strtolower() expects parameter 1 to be string, array given in /in/tv1gJ on line 16 Notice: Array to string conversion in /in/tv1gJ on line 20 #EXTINF:0,Array http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$/1.m3u8/Level(2621440)?start=LIVE&end=END
Output for 7.3.32 - 7.3.33
#EXTM3U #EXTINF:0,TANITIM http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$TANITIM/1.m3u8/Level(2621440)?start=LIVE&end=END #EXTINF:0,SPOR MOZAİK http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$SPOR_MOZAİK/1.m3u8/Level(2621440)?start=LIVE&end=END Warning: mb_strtolower() expects parameter 1 to be string, array given in /in/tv1gJ on line 16 #EXTINF:0,Array http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$/1.m3u8/Level(2621440)?start=LIVE&end=END
Output for 5.6.38, 7.0.33, 7.1.25 - 7.1.33, 7.2.0 - 7.2.33
#EXTM3U #EXTINF:0,TANITIM http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$TANITIM/1.m3u8/Level(2621440)?start=LIVE&end=END #EXTINF:0,SPOR MOZAİK http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$SPOR_MOZAIK/1.m3u8/Level(2621440)?start=LIVE&end=END Warning: mb_strtolower() expects parameter 1 to be string, array given in /in/tv1gJ on line 16 Notice: Array to string conversion in /in/tv1gJ on line 20 #EXTINF:0,Array http://195.175.223.2:8080/MVP/TTG/live-shls/shls/LIVE$/1.m3u8/Level(2621440)?start=LIVE&end=END

preferences:
181.39 ms | 403 KiB | 185 Q