3v4l.org

run code in 300+ PHP versions simultaneously
<?php #$x = '/[^A-Za-z0-9 \r\n@£$¥èéùìòÇØøÅå\x\{0394\}\x\{03A6\}\x\{0393\}\x\{039B\}\x\{03A9\}\x\{03A0\}\x\{03A8\}\x\{03A3\}\x\{0398\}\x\{039E\}ÆæßÉ!"#$%&amp;\'()*+,\-.\/:;<>&lt;=&gt;?¡ÄÖÑܧ¿äöñüà^{}\\\[~\]|\x\{20AC\}]+/'; mb_internal_encoding('UTF-8'); mb_regex_encoding('UTF-8'); $x = '[^A-Za-z0-9 \r\n@£$¥èéùìòÇØøÅå\u0394_\u03A6\u0393\u039B\u03A9\u03A0\u03A8\u03A3\u0398\u039EÆæßÉ!"#$%&amp;\'()*+,\-./:;<>&lt;=&gt;?¡ÄÖÑܧ¿äöñüà^{}\\\[~\]|\u20AC]+'; $data = 'asdf‘‼asdf'; $tmp = []; $result = mb_ereg($x,$data,$tmp); var_dump($tmp); /* $result = preg_match_all($x,$data,$tmp); var_dump($tmp); $z = $tmp[0][1]; $y = strpos($data,$z); $q = substr($data,$y,3); var_dump($q); */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gd7uX
function name:  (null)
number of ops:  19
compiled vars:  !0 = $x, !1 = $data, !2 = $tmp, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_internal_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'mb_regex_encoding'
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                                 
    6     6        ASSIGN                                                   !0, '%5B%5EA-Za-z0-9+%5Cr%5Cn%40%C2%A3%24%C2%A5%C3%A8%C3%A9%C3%B9%C3%AC%C3%B2%C3%87%C3%98%C3%B8%C3%85%C3%A5%5Cu0394_%5Cu03A6%5Cu0393%5Cu039B%5Cu03A9%5Cu03A0%5Cu03A8%5Cu03A3%5Cu0398%5Cu039E%C3%86%C3%A6%C3%9F%C3%89%21%22%23%24%25%26amp%3B%27%28%29%2A%2B%2C%5C-.%2F%3A%3B%3C%3E%26lt%3B%3D%26gt%3B%3F%C2%A1%C3%84%C3%96%C3%91%C3%9C%C2%A7%C2%BF%C3%A4%C3%B6%C3%B1%C3%BC%C3%A0%5E%7B%7D%5C%5C%5B%7E%5C%5D%7C%5Cu20AC%5D%2B'
    7     7        ASSIGN                                                   !1, 'asdf%E2%80%98%E2%80%BCasdf'
    8     8        ASSIGN                                                   !2, <array>
   10     9        INIT_FCALL                                               'mb_ereg'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !1
         12        SEND_REF                                                 !2
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !3, $9
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
   19    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.6 ms | 1395 KiB | 21 Q