3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<< STR sbmt_btn.hide(); $(this).load(urlStr, data, function (response, innerstatus, xhr) { status = innerstatus; pb.hide(); sbmt_btn.show(); if (status == "error") { var msg = "Sorry but there was an error: "; $(this).html(msg + xhr.status + " " + xhr.statusText); } if ($('#NoMoreSearchForYou').get(0)) { $('.ui-dialog-buttonset').hide(); } else if ($('#MoreSearchForYou').length > 0) { $('.ui-dialog-buttonset').show(); } else { $('.ui-dialog-buttonset').hide(); } }); }, STR; preg_match('~\$\(this.+[\s\S]*hide\(\);[\s\S]{49};~', $str, $matches); var_dump($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fKIqa
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A++++++++++++++++++++sbmt_btn.hide%28%29%3B%0A++++++++++++++++++++%24%28this%29.load%28urlStr%2C+data%2C+function+%28response%2C+innerstatus%2C+xhr%29+%7B%0A++++++++++++++++++++++++status+%3D+innerstatus%3B%0A++++++++++++++++++++++++pb.hide%28%29%3B%0A++++++++++++++++++++++++sbmt_btn.show%28%29%3B%0A++++++++++++++++++++++++if+%28status+%3D%3D+%22error%22%29+%7B%0A++++++++++++++++++++++++++++var+msg+%3D+%22Sorry+but+there+was+an+error%3A+%22%3B%0A++++++++++++++++++++++++++++%24%28this%29.html%28msg+%2B+xhr.status+%2B+%22+%22+%2B+xhr.statusText%29%3B%0A++++++++++++++++++++++++%7D%0A++++++++++++++++++++++++if+%28%24%28%27%23NoMoreSearchForYou%27%29.get%280%29%29+%7B%0A++++++++++++++++++++++++++++%24%28%27.ui-dialog-buttonset%27%29.hide%28%29%3B%0A++++++++++++++++++++++++%7D%0A++++++++++++++++++++++++else+if+%28%24%28%27%23MoreSearchForYou%27%29.length+%3E+0%29+%7B%0A++++++++++++++++++++++++++++%24%28%27.ui-dialog-buttonset%27%29.show%28%29%3B%0A++++++++++++++++++++++++%7D%0A++++++++++++++++++++++++else+%7B%0A++++++++++++++++++++++++++++%24%28%27.ui-dialog-buttonset%27%29.hide%28%29%3B%0A++++++++++++++++++++++++%7D%0A++++++++++++++++++++%7D%29%3B%0A++++++++++++++++%7D%2C'
   27     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%5C%24%5C%28this.%2B%5B%5Cs%5CS%5D%2Ahide%5C%28%5C%29%3B%5B%5Cs%5CS%5D%7B49%7D%3B%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   28     6        INIT_FCALL                                               'var_dump'
          7        FETCH_DIM_R                                      ~4      !1, 0
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.5 ms | 1001 KiB | 15 Q