3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $lines = file('https://de.scribd.com/doc/27228612/Art-Tatum-Jazz-Piano-Solos'); // Durchgehen des Arrays und Anzeigen des HTML-Quelltexts inkl. Zeilennummern foreach ($lines as $line_num => $line) { if (strstr($line, "pageParams.contentUrl")) { $explodedString = explode("\"", $line); $url = $explodedString[1]; $url = str_replace("pages", "images", $url); $url = str_replace("jsonp", "jpg", $url); echo $url . "<br>"; // echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br>\n"; } }
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28, 7.0.0 - 7.0.3, 7.0.5 - 7.1.0
Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/E4frB on line 3 Warning: file(https://de.scribd.com/doc/27228612/Art-Tatum-Jazz-Piano-Solos): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/E4frB on line 3 Warning: Invalid argument supplied for foreach() in /in/E4frB on line 6
Output for 5.4.35 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4
Warning: file(): php_network_getaddresses: getaddrinfo failed: System error in /in/E4frB on line 3 Warning: file(https://de.scribd.com/doc/27228612/Art-Tatum-Jazz-Piano-Solos): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/E4frB on line 3 Warning: Invalid argument supplied for foreach() in /in/E4frB on line 6
Output for hhvm-3.12.0
Warning: Failed to open https://de.scribd.com/doc/27228612/Art-Tatum-Jazz-Piano-Solos (Could not resolve host: de.scribd.com) in /in/E4frB on line 3 Warning: Invalid argument supplied for foreach() in /in/E4frB on line 20
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.34
Warning: file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/E4frB on line 3 Warning: file(https://de.scribd.com/doc/27228612/Art-Tatum-Jazz-Piano-Solos): failed to open stream: No such file or directory in /in/E4frB on line 3 Warning: Invalid argument supplied for foreach() in /in/E4frB on line 6
Output for 4.3.2 - 4.3.10, 4.4.0 - 5.2.17
Notice: file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/E4frB on line 3 Warning: file(https://de.scribd.com/doc/27228612/Art-Tatum-Jazz-Piano-Solos): failed to open stream: No such file or directory in /in/E4frB on line 3 Warning: Invalid argument supplied for foreach() in /in/E4frB on line 6
Output for 4.3.11
Notice: file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/E4frB on line 3 Warning: file(https://de.scribd.com/doc/27228612/Art-Tatum-Jazz-Piano-Solos): failed to open stream: No such file or directory in /in/E4frB on line 3
Output for 4.3.0 - 4.3.1
Notice: file() [http://www.php.net/function.file]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/E4frB on line 3 Warning: file(https://de.scribd.com/doc/27228612/Art-Tatum-Jazz-Piano-Solos) [http://www.php.net/function.file]: failed to create stream: No such file or directory in /in/E4frB on line 3 Warning: Invalid argument supplied for foreach() in /in/E4frB on line 6