3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $rawSvg = file_get_contents("http://aquapaper.wp.soledis.net/wp-content/uploads/2015/08/large27.svg"); // Commentaires $resultSvg = preg_replace('@\<\!\-(.*?)\-\-\>@i', '', $rawSvg); // Doctype $resultSvg = preg_replace('@(\<\!(.*?)\]\>|\<\!(.*?)\>)@is', '', $resultSvg); var_dump($resultSvg);
based on q9dvj
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/GDkkV on line 3 Warning: file_get_contents(http://aquapaper.wp.soledis.net/wp-content/uploads/2015/08/large27.svg): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/GDkkV on line 3 string(0) ""
Output for 5.4.0 - 7.0.12, 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/GDkkV on line 3 Warning: file_get_contents(http://aquapaper.wp.soledis.net/wp-content/uploads/2015/08/large27.svg): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/GDkkV on line 3 string(0) ""