3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '<div class="filetitle"> <h1> Feralna noc 2014Lektor Pl avi480p.avi</h1> </div> <div class="description"> video/avi</div> </div> <div class="fileinfo"> <a href="javascript:void0" onclick="comments.getCommentsfile 512505"><div class="rate" rate="0" maxrate="5" ratesnumber="0" commentsnumber="0"></div></a> Dodano: <span>20140603 10:06</span><br /> Wielko: <span>1.4 GB</span><br /> Ilo pobra: <span>238</span><br />'; $regexp = '/filetitle\"\>[\s]*\<h1\>[\s]*([^<]+)\<\/h1\>[^@]+\: \<span\>([0-9\,]{1,8}) GB\<\/span\>/'; if (preg_match($regexp, $test, $result2)) { print "Working\n"; } else { print "Not working\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MgsPO
function name:  (null)
number of ops:  12
compiled vars:  !0 = $test, !1 = $regexp, !2 = $result2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cdiv+class%3D%22filetitle%22%3E%0A+++++++++++++%3Ch1%3E%0A+++++++++++++++++Feralna+noc+2014Lektor+Pl+avi480p.avi%3C%2Fh1%3E%0A+++++++++++++%3C%2Fdiv%3E%0A+++++++++++++%3Cdiv+class%3D%22description%22%3E%0A+++++++++++++++++video%2Favi%3C%2Fdiv%3E%0A+++++++++++++%3C%2Fdiv%3E%0A+++++++++++++%3Cdiv+class%3D%22fileinfo%22%3E%0A+++++++++++++++++%3Ca+href%3D%22javascript%3Avoid0%22%0A%09%09+++++++++onclick%3D%22comments.getCommentsfile+512505%22%3E%3Cdiv%0A%09%09%09%09+class%3D%22rate%22+rate%3D%220%22%0A+++++++++++++++++maxrate%3D%225%22%0A+++++++++++++++++ratesnumber%3D%220%22%0A+++++++++++++++++commentsnumber%3D%220%22%3E%3C%2Fdiv%3E%3C%2Fa%3E%0A++++++++++++Dodano%3A+%3Cspan%3E20140603+10%3A06%3C%2Fspan%3E%3Cbr+%2F%3E%0A++++++++++++Wielko%3A+%3Cspan%3E1.4+GB%3C%2Fspan%3E%3Cbr+%2F%3E+Ilo+pobra%3A+%3Cspan%3E238%3C%2Fspan%3E%3Cbr+%2F%3E'
   20     1        ASSIGN                                                   !1, '%2Ffiletitle%5C%22%5C%3E%5B%5Cs%5D%2A%5C%3Ch1%5C%3E%5B%5Cs%5D%2A%28%5B%5E%3C%5D%2B%29%5C%3C%5C%2Fh1%5C%3E%5B%5E%40%5D%2B%5C%3A+%5C%3Cspan%5C%3E%28%5B0-9%5C%2C%5D%7B1%2C8%7D%29+GB%5C%3C%5C%2Fspan%5C%3E%2F'
   22     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                         $5      
          7      > JMPZ                                                     $5, ->10
   23     8    >   ECHO                                                     'Working%0A'
          9      > JMP                                                      ->11
   25    10    >   ECHO                                                     'Not+working%0A'
   28    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.03 ms | 1395 KiB | 15 Q