3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $course_link="http://m.uploadedit.com/ba3s/1479459820969.txt";//input $data=file_get_contents($course_link); preg_match_all('@href="https://www.wikiart.org/en/salvador-dal[[:print:]]+?"@', $data, $video_links); $file = 'links.txt'; $current = file_get_contents($file); foreach ($video_links[0] as $key=>$link){ $videopage_link=substr($link,6,-1); if ((strlen($videopage_link) <= 41)||($key <4)||($videopage_link==$redun)) { // skip even members continue; } $redun=$videopage_link; // echo "\n".$key.$videopage_link."\t\t\t\t"; $data=file_get_contents($videopage_link); preg_match_all('@<img itemprop="image" src="[[:print:]]+?"@', $data, $tmp); $current .= "John Smith\n"; file_put_contents($file, $current); echo "\n".substr($tmp[0][0],27,-1); }
Output for 7.0.20, 7.1.5 - 7.1.10, 7.2.0, 7.3.0alpha1 - 7.3.0beta1
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/EmMQ0 on line 3 Warning: file_get_contents(http://m.uploadedit.com/ba3s/1479459820969.txt): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/EmMQ0 on line 3 Warning: file_get_contents(links.txt): failed to open stream: No such file or directory in /in/EmMQ0 on line 7
Output for 7.1.20, 7.2.6
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/EmMQ0 on line 3 Warning: file_get_contents(http://m.uploadedit.com/ba3s/1479459820969.txt): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/EmMQ0 on line 3 Warning: file_get_contents(): open_basedir restriction in effect. File(links.txt) is not within the allowed path(s): (/tmp:/in) in /in/EmMQ0 on line 7 Warning: file_get_contents(links.txt): failed to open stream: Operation not permitted in /in/EmMQ0 on line 7
Output for 5.6.0 - 7.0.13, 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EmMQ0 on line 3 Warning: file_get_contents(http://m.uploadedit.com/ba3s/1479459820969.txt): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EmMQ0 on line 3 Warning: file_get_contents(links.txt): failed to open stream: No such file or directory in /in/EmMQ0 on line 7