3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text= <<<TEXT [Wed Feb 06 08:57:54 2019] [error] [client 123.123.123.123] ModSecurity: Access denied with code 403 (phase 2). Operator EQ matched 0 at REQUEST_HEADERS. [file "/etc/httpd/modsecurity.d/activated_rules/modsecurity_crs_21_protocol_anomalies.conf"] [line "47"] [id "960015"] [rev "1"] [msg "Request Missing an Accept Header"] [severity "NOTICE"] [ver "OWASP_CRS/2.2.6"] [maturity "9"] [accuracy "9"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/MISSING_HEADER_ACCEPT"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "something.net"] [uri "/index.php/admin/"] [unique_id "XFsEAsDzZbMAAGY5i5oAAAAA"] TEXT; preg_match_all('/\[(msg|uri) +("?)(.*?)\2]/', $text, $m, PREG_SET_ORDER); var_export( array_column($m, 3, 1) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AKJ3i
function name:  (null)
number of ops:  16
compiled vars:  !0 = $text, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5BWed+Feb+06+08%3A57%3A54+2019%5D+%5Berror%5D+%5Bclient+123.123.123.123%5D+ModSecurity%3A+Access+denied+with+code+403+%28phase+2%29.+Operator+EQ+matched+0+at+REQUEST_HEADERS.+%5Bfile+%22%2Fetc%2Fhttpd%2Fmodsecurity.d%2Factivated_rules%2Fmodsecurity_crs_21_protocol_anomalies.conf%22%5D+%5Bline+%2247%22%5D+%5Bid+%22960015%22%5D+%5Brev+%221%22%5D+%5Bmsg+%22Request+Missing+an+Accept+Header%22%5D+%5Bseverity+%22NOTICE%22%5D+%5Bver+%22OWASP_CRS%2F2.2.6%22%5D+%5Bmaturity+%229%22%5D+%5Baccuracy+%229%22%5D+%5Btag+%22OWASP_CRS%2FPROTOCOL_VIOLATION%2FMISSING_HEADER_ACCEPT%22%5D+%5Btag+%22WASCTC%2FWASC-21%22%5D+%5Btag+%22OWASP_TOP_10%2FA7%22%5D+%5Btag+%22PCI%2F6.5.10%22%5D+%5Bhostname+%22something.net%22%5D+%5Buri+%22%2Findex.php%2Fadmin%2F%22%5D+%5Bunique_id+%22XFsEAsDzZbMAAGY5i5oAAAAA%22%5D'
    7     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5C%5B%28msg%7Curi%29+%2B%28%22%3F%29%28.%2A%3F%29%5C2%5D%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'var_export'
    9     8        INIT_FCALL                                               'array_column'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 3
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
    8    14        DO_ICALL                                                 
   10    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.67 ms | 1001 KiB | 16 Q