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 git.master, git.master_jit, rfc.property-hooks
#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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
60.33 ms | 401 KiB | 8 Q