3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<th class="title"> <div class="subject"> <a href="158391487256182472-1-1.html" title="Jomashop:Swarovski"></a> </div> </th> <td class="author"> <a href="profile-42357964-1.html" title="author"><span>cat</span></a> <span>2017-02-16</span> </td> <div class="link0 list-side-hd moderator-noborder obj2subject"><h3 class="fl"></h3></div><ul class="list-side-bd list-recommend list-recommend2 link1"><li><a target="_blank" href="//go.cqmmgo.com/forum-462505-thread-94061456905358538-1-1.html"><img width="120" height="160" title="#" alt="#" src="//att3.citysbs.com/120x120/chongqing/2016/03/09/09/160x120-092826_v2_11861457486906377_58b326482e2aa1f1da0f8455ac42187f.jpg"></a></li><li><a target="_blank" href="//go.cqmmgo.com/forum-462505-thread-179021457000027333-1-1.html"><img width="120" height="160" title="#" alt="#" src="//att3.citysbs.com/120x120/chongqing/2016/03/09/09/160x120-092826_v2_20771457486906773_31eb80d49e9ef06418003e577cc1453f.jpg"></a></li><li><a target="_blank" href="//go.cqmmgo.com/forum-462505-thread-93091456983256969-1-1.html"><img width="120" height="160" title="#" alt="#" src="//att3.citysbs.com/120x120/chongqing/2016/03/09/09/160x120-092827_v2_20231457486907098_05bc3d4608c961af0660722e03049e20.jpg"><span>abc</span></a></li><li><a target="_blank" href="//go.cqmmgo.com/forum-462505-thread-13801456844284137-1-1.html"><img width="120" height="160" title="#" alt="#" src="//att3.citysbs.com/120x120/chongqing/2016/03/09/09/160x120-092827_v2_14121457486907436_d49c002ba8675553c5436e80f305aca7.jpg"><span>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</span></a></li></ul></div>'; $ret = preg_match_all('/subject[\s\S]+?href="(.+?)"[\s\S]+?title="([\s\S]+?)"[\s\S]+?profile/', $content, $matches); var_dump($matches); // have array result var_dump($ret); // bug the return value is false
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ApKvQ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $content, !1 = $ret, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cth+class%3D%22title%22%3E%0A++++%3Cdiv+class%3D%22subject%22%3E%0A++++++++%3Ca+href%3D%22158391487256182472-1-1.html%22%0Atitle%3D%22Jomashop%EF%BC%9ASwarovski%22%3E%3C%2Fa%3E%0A++++%3C%2Fdiv%3E%0A%3C%2Fth%3E%0A%3Ctd+class%3D%22author%22%3E%0A++++%3Ca+href%3D%22profile-42357964-1.html%22%0Atitle%3D%22author%22%3E%3Cspan%3Ecat%3C%2Fspan%3E%3C%2Fa%3E%0A++++%3Cspan%3E2017-02-16%3C%2Fspan%3E%0A%3C%2Ftd%3E%0A%3Cdiv+class%3D%22link0+list-side-hd+moderator-noborder+obj2subject%22%3E%3Ch3%0Aclass%3D%22fl%22%3E%3C%2Fh3%3E%3C%2Fdiv%3E%3Cul+class%3D%22list-side-bd+list-recommend%0Alist-recommend2+link1%22%3E%3Cli%3E%3Ca+target%3D%22_blank%22%0Ahref%3D%22%2F%2Fgo.cqmmgo.com%2Fforum-462505-thread-94061456905358538-1-1.html%22%3E%3Cimg%0Awidth%3D%22120%22+height%3D%22160%22+title%3D%22%23%22+alt%3D%22%23%22%0Asrc%3D%22%2F%2Fatt3.citysbs.com%2F120x120%2Fchongqing%2F2016%2F03%2F09%2F09%2F160x120-092826_v2_11861457486906377_58b326482e2aa1f1da0f8455ac42187f.jpg%22%3E%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%0Atarget%3D%22_blank%22%0Ahref%3D%22%2F%2Fgo.cqmmgo.com%2Fforum-462505-thread-179021457000027333-1-1.html%22%3E%3Cimg%0Awidth%3D%22120%22+height%3D%22160%22+title%3D%22%23%22+alt%3D%22%23%22%0Asrc%3D%22%2F%2Fatt3.citysbs.com%2F120x120%2Fchongqing%2F2016%2F03%2F09%2F09%2F160x120-092826_v2_20771457486906773_31eb80d49e9ef06418003e577cc1453f.jpg%22%3E%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%0Atarget%3D%22_blank%22%0Ahref%3D%22%2F%2Fgo.cqmmgo.com%2Fforum-462505-thread-93091456983256969-1-1.html%22%3E%3Cimg%0Awidth%3D%22120%22+height%3D%22160%22+title%3D%22%23%22+alt%3D%22%23%22%0Asrc%3D%22%2F%2Fatt3.citysbs.com%2F120x120%2Fchongqing%2F2016%2F03%2F09%2F09%2F160x120-092827_v2_20231457486907098_05bc3d4608c961af0660722e03049e20.jpg%22%3E%3Cspan%3Eabc%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%0Atarget%3D%22_blank%22%0Ahref%3D%22%2F%2Fgo.cqmmgo.com%2Fforum-462505-thread-13801456844284137-1-1.html%22%3E%3Cimg%0Awidth%3D%22120%22+height%3D%22160%22+title%3D%22%23%22+alt%3D%22%23%22%0Asrc%3D%22%2F%2Fatt3.citysbs.com%2F120x120%2Fchongqing%2F2016%2F03%2F09%2F09%2F160x120-092827_v2_14121457486907436_d49c002ba8675553c5436e80f305aca7.jpg%22%3E%3Cspan%3Exxxxxxxxxxxxxxxxxxxxxxxxxxxxx%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fli%3E%3C%2Ful%3E%3C%2Fdiv%3E'
   32     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2Fsubject%5B%5Cs%5CS%5D%2B%3Fhref%3D%22%28.%2B%3F%29%22%5B%5Cs%5CS%5D%2B%3Ftitle%3D%22%28%5B%5Cs%5CS%5D%2B%3F%29%22%5B%5Cs%5CS%5D%2B%3Fprofile%2F'
   33     3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $4      
   31     6        ASSIGN                                                   !1, $4
   35     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
   36    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.19 ms | 1396 KiB | 17 Q