3v4l.org

run code in 300+ PHP versions simultaneously
<?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>'; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "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.

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:
51.86 ms | 401 KiB | 8 Q