3v4l.org

run code in 300+ PHP versions simultaneously
<?php $post = 'Registrazioni uguale informazioni, che passano anche dai server cloud di Amazon che elaborano le richieste dei singoli utilizzatori, “imparando” anche a venirgli incontro. <img class="aligncenter imgBig100 model" src="http://startupitalia.eu/wp-content/uploads/2017/02/fanceat1.jpeg" alt="" /> 1 Il problema è che, come ogni tecnologia, non è perfetta e spesso vengono registrate e inviate ai server di Amazon parole e informazioni all’insaputa dell’utente. <img class="aligncenter2 size-full wp-image-69194" src="http://startupitalia.eu/wp-content/uploads/2017/02/fanceat2.jpeg" alt="" /> 2 Il problema è che, come ogni tecnologia, non è perfetta e spesso vengono registrate e inviate ai server di Amazon parole e informazioni all’insaputa dell’utente. <img class="aligncenter size-full wp-image-69194" src="http://startupitalia.eu/wp-content/uploads/2017/02/fanceat3.jpeg" alt="" /> 3 Il problema è che, come ogni tecnologia, non è perfetta e spesso vengono registrate e inviate ai server di Amazon parole e informazioni all’insaputa dell’utente. <img class="aligncenter imgBig100 model" src="http://startupitalia.eu/wp-content/uploads/2017/02/img2.jpeg" alt="" />'; preg_match_all('/(<img\b[^>]+\bclass="?[^>"]*\bimgBig100\b.*?>)/', $post, $img_tag); // print_r($img_tag[1]); // echo "\n\n\n"; $contentReplaced = $post; foreach($img_tag[1] as $imgToChange) { /* preg_match_all('/(<img\b[^>]+\bsrc="?[^>"].*?>)/', $imgToChange, $img_src); */ $xpath = new DOMXPath(@DOMDocument::loadHTML($imgToChange)); $src = $xpath->evaluate("string(//img/@src)"); print_r($src); echo "\n --- \n"; $newelement = '<figure class="full-widthCont"><div style="background:url('.$src.')"></div></figure>'; echo "\n $newelement \n"; $contentReplaced = str_replace($imgToChange, $newelement, $contentReplaced); echo "$contentReplaced \n"; };
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Non-static method DOMDocument::loadHTML() cannot be called statically in /in/XDdIU:11 Stack trace: #0 {main} thrown in /in/XDdIU on line 11
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:
56.92 ms | 401 KiB | 8 Q