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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
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 7.3.32 - 7.3.33
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.5.0 - 5.5.38, 5.6.0 - 5.6.40
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.

preferences:
278.34 ms | 402 KiB | 330 Q