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]);
Output for 5.6.0 - 5.6.25, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
string(870) "$(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(); } });"

preferences:
137.64 ms | 411 KiB | 5 Q