3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $id = $_GET["u"]; function curl($url) { $user_agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com'); $icerik = curl_exec($ch); curl_close($ch); return $icerik; } $cek = json_decode(curl('http://ok.ru/dk?cmd=videoPlayerMetadata&mid='.$id.''), TRUE); echo '<script src="jwplayer.js" ></script> <script>jwplayer.key="oPV8Jbpvmqf40g/DmByqKIhJrLQpdWwffvN3+w==";</script> <div id="myElement">Loading the player...</div> <script> jwplayer("myElement").setup({ width: "100%", height: "100%", sources: [{'; foreach($cek['videos'] as $veriler){ @$kaliteler .= ' file : "'.$veriler["url"].'", type: "mp4", label: "'.$veriler["name"].'"}, {'; } echo substr($kaliteler, 0, -4); echo '], tracks: [ { file: "1.srt" }] }); </script>'; ?>
based on EpZvd
Output for 7.0.0 - 7.2.0
Notice: Undefined index: u in /in/ituX8 on line 3 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/ituX8:8 Stack trace: #0 /in/ituX8(21): curl('http://ok.ru/dk...') #1 {main} thrown in /in/ituX8 on line 8
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Notice: Undefined index: u in /in/ituX8 on line 3 Fatal error: Call to undefined function curl_init() in /in/ituX8 on line 8
Process exited with code 255.