3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = file_get_contents('http://techgroove.net/'); $dom = new DOMDocument(); $dom->loadHTML($string); $dom->preserveWhiteSpace = false; //get all meta tags $el = $dom->getElementsByTagName('meta'); echo'<pre>'; print_r($el); echo'</pre>'; foreach($el as $val){ //get value of each content echo $val -> getAttribute('content').'<br>'; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for techgroove.net failed: System error in /in/Qrg1e on line 3 Warning: file_get_contents(http://techgroove.net/): Failed to open stream: php_network_getaddresses: getaddrinfo for techgroove.net failed: System error in /in/Qrg1e on line 3 Fatal error: Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /in/Qrg1e:5 Stack trace: #0 /in/Qrg1e(5): DOMDocument->loadHTML('') #1 {main} thrown in /in/Qrg1e on line 5
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:
36.23 ms | 402 KiB | 8 Q