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"; };
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 44
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 44
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
filename:       /in/XDdIU
function name:  (null)
number of ops:  46
compiled vars:  !0 = $post, !1 = $img_tag, !2 = $contentReplaced, !3 = $imgToChange, !4 = $xpath, !5 = $src, !6 = $newelement
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Registrazioni+uguale+informazioni%2C+che+passano+anche+dai+server+cloud+di+Amazon+che+elaborano+le+richieste+dei+singoli+utilizzatori%2C+%E2%80%9Cimparando%E2%80%9D+anche+a+venirgli+incontro.+%3Cimg+class%3D%22aligncenter+imgBig100+model%22+src%3D%22http%3A%2F%2Fstartupitalia.eu%2Fwp-content%2Fuploads%2F2017%2F02%2Ffanceat1.jpeg%22+alt%3D%22%22+%2F%3E+1+Il+problema+%C3%A8+che%2C+come+ogni+tecnologia%2C+non+%C3%A8+perfetta+e+spesso+vengono+registrate+e+inviate+ai+server+di+Amazon+parole+e+informazioni+all%E2%80%99insaputa+dell%E2%80%99utente.+%3Cimg+class%3D%22aligncenter2+size-full+wp-image-69194%22+src%3D%22http%3A%2F%2Fstartupitalia.eu%2Fwp-content%2Fuploads%2F2017%2F02%2Ffanceat2.jpeg%22+alt%3D%22%22+%2F%3E+2+Il+problema+%C3%A8+che%2C+come+ogni+tecnologia%2C+non+%C3%A8+perfetta+e+spesso+vengono+registrate+e+inviate+ai+server+di+Amazon+parole+e+informazioni+all%E2%80%99insaputa+dell%E2%80%99utente.+%3Cimg+class%3D%22aligncenter+size-full+wp-image-69194%22+src%3D%22http%3A%2F%2Fstartupitalia.eu%2Fwp-content%2Fuploads%2F2017%2F02%2Ffanceat3.jpeg%22+alt%3D%22%22+%2F%3E+3+Il+problema+%C3%A8+che%2C+come+ogni+tecnologia%2C+non+%C3%A8+perfetta+e+spesso+vengono+registrate+e+inviate+ai+server+di+Amazon+parole+e+informazioni+all%E2%80%99insaputa+dell%E2%80%99utente.+%3Cimg+class%3D%22aligncenter+imgBig100+model%22+src%3D%22http%3A%2F%2Fstartupitalia.eu%2Fwp-content%2Fuploads%2F2017%2F02%2Fimg2.jpeg%22+alt%3D%22%22+%2F%3E'
    5     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%3Cimg%5Cb%5B%5E%3E%5D%2B%5Cbclass%3D%22%3F%5B%5E%3E%22%5D%2A%5CbimgBig100%5Cb.%2A%3F%3E%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    8     6        ASSIGN                                                   !2, !0
    9     7        FETCH_DIM_R                                      ~10     !1, 1
          8      > FE_RESET_R                                       $11     ~10, ->44
          9    > > FE_FETCH_R                                               $11, !3, ->44
   11    10    >   NEW                                              $12     'DOMXPath'
         11        BEGIN_SILENCE                                    ~13     
         12        INIT_STATIC_METHOD_CALL                                  'DOMDocument', 'loadHTML'
         13        SEND_VAR                                                 !3
         14        DO_FCALL                                      0  $14     
         15        END_SILENCE                                              ~13
         16        SEND_VAR_NO_REF_EX                                       $14
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !4, $12
   12    19        INIT_METHOD_CALL                                         !4, 'evaluate'
         20        SEND_VAL_EX                                              'string%28%2F%2Fimg%2F%40src%29'
         21        DO_FCALL                                      0  $17     
         22        ASSIGN                                                   !5, $17
   13    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !5
         25        DO_ICALL                                                 
   14    26        ECHO                                                     '%0A+---+%0A'
   15    27        CONCAT                                           ~20     '%3Cfigure+class%3D%22full-widthCont%22%3E%3Cdiv+style%3D%22background%3Aurl%28', !5
         28        CONCAT                                           ~21     ~20, '%29%22%3E%3C%2Fdiv%3E%3C%2Ffigure%3E'
         29        ASSIGN                                                   !6, ~21
   16    30        ROPE_INIT                                     3  ~24     '%0A+'
         31        ROPE_ADD                                      1  ~24     ~24, !6
         32        ROPE_END                                      2  ~23     ~24, '+%0A'
         33        ECHO                                                     ~23
   17    34        INIT_FCALL                                               'str_replace'
         35        SEND_VAR                                                 !3
         36        SEND_VAR                                                 !6
         37        SEND_VAR                                                 !2
         38        DO_ICALL                                         $26     
         39        ASSIGN                                                   !2, $26
   18    40        NOP                                                      
         41        FAST_CONCAT                                      ~28     !2, '+%0A'
         42        ECHO                                                     ~28
    9    43      > JMP                                                      ->9
         44    >   FE_FREE                                                  $11
   19    45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.43 ms | 1405 KiB | 19 Q