3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = "\xC2°Freen\x18 ew°\x90ɮ\x7F"; //$result="a\xC2"; //$result = preg_replace('~[\x{0000}-\x{000F}\x{007F}-\x{00a0}]~S', '', $result); $result = preg_replace('~[\x{0000}-\x{000F}\x{007F}-\x{00a0}]~u', '?', $result); $string = "°Freen\x18 ew°\x90ɮ\x7F\xc2"; $string = preg_replace("#[\x09\x0A\x0D\x20-\x7E]#" ,"",$string); // ASCII $string = preg_replace("#[\xC2-\xDF][\x80-\xBF]#" ,"",$string); // non-overlong 2-byte $string = preg_replace("#\xE0[\xA0-\xBF][\x80-\xBF]#" ,"",$string); // excluding overlongs $string = preg_replace("#[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}#","",$string); // straight 3-byte $string = preg_replace("#\xED[\x80-\x9F][\x80-\xBF]#" ,"",$string); // excluding surrogates $string = preg_replace("#\xF0[\x90-\xBF][\x80-\xBF]{2}#","",$string); // planes 1-3 $string = preg_replace("#[\xF1-\xF3][\x80-\xBF]{3}#" ,"",$string); // planes 4-15 $string = preg_replace("#\xF4[\x80-\x8F][\x80-\xBF]{2}#","",$string); // plane 16 /* //reject overly long 2 byte sequences, as well as characters above U+10000 and replace with ? $result= preg_replace( '/[\xC2-\xDF]((?![\x80-\xBF])|[\x80-\xBF]{2,})/S', '', $result ); */ if($result == "\xC2") echo 'fuck'; echo $result;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 58, Position 2 = 59
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 59
filename:       /in/tgsNB
function name:  (null)
number of ops:  61
compiled vars:  !0 = $result, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%C2%C2%B0Freen%18+ew%C2%B0%90%C9%AE%7F'
    8     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E%5B%5Cx%7B0000%7D-%5Cx%7B000F%7D%5Cx%7B007F%7D-%5Cx%7B00a0%7D%5D%7Eu'
          3        SEND_VAL                                                 '%3F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
   12     7        ASSIGN                                                   !1, '%C2%B0Freen%18+ew%C2%B0%90%C9%AE%7F%C2'
   13     8        INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%23%5B%09%0A%0D+-%7E%5D%23'
         10        SEND_VAL                                                 ''
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !1, $6
   14    14        INIT_FCALL                                               'preg_replace'
         15        SEND_VAL                                                 '%23%5B%C2-%DF%5D%5B%80-%BF%5D%23'
         16        SEND_VAL                                                 ''
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $8      
         19        ASSIGN                                                   !1, $8
   15    20        INIT_FCALL                                               'preg_replace'
         21        SEND_VAL                                                 '%23%E0%5B%A0-%BF%5D%5B%80-%BF%5D%23'
         22        SEND_VAL                                                 ''
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                         $10     
         25        ASSIGN                                                   !1, $10
   16    26        INIT_FCALL                                               'preg_replace'
         27        SEND_VAL                                                 '%23%5B%E1-%EC%EE%EF%5D%5B%80-%BF%5D%7B2%7D%23'
         28        SEND_VAL                                                 ''
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                         $12     
         31        ASSIGN                                                   !1, $12
   17    32        INIT_FCALL                                               'preg_replace'
         33        SEND_VAL                                                 '%23%ED%5B%80-%9F%5D%5B%80-%BF%5D%23'
         34        SEND_VAL                                                 ''
         35        SEND_VAR                                                 !1
         36        DO_ICALL                                         $14     
         37        ASSIGN                                                   !1, $14
   18    38        INIT_FCALL                                               'preg_replace'
         39        SEND_VAL                                                 '%23%F0%5B%90-%BF%5D%5B%80-%BF%5D%7B2%7D%23'
         40        SEND_VAL                                                 ''
         41        SEND_VAR                                                 !1
         42        DO_ICALL                                         $16     
         43        ASSIGN                                                   !1, $16
   19    44        INIT_FCALL                                               'preg_replace'
         45        SEND_VAL                                                 '%23%5B%F1-%F3%5D%5B%80-%BF%5D%7B3%7D%23'
         46        SEND_VAL                                                 ''
         47        SEND_VAR                                                 !1
         48        DO_ICALL                                         $18     
         49        ASSIGN                                                   !1, $18
   20    50        INIT_FCALL                                               'preg_replace'
         51        SEND_VAL                                                 '%23%F4%5B%80-%8F%5D%5B%80-%BF%5D%7B2%7D%23'
         52        SEND_VAL                                                 ''
         53        SEND_VAR                                                 !1
         54        DO_ICALL                                         $20     
         55        ASSIGN                                                   !1, $20
   28    56        IS_EQUAL                                                 !0, '%C2'
         57      > JMPZ                                                     ~22, ->59
   29    58    >   ECHO                                                     'fuck'
   31    59    >   ECHO                                                     !0
         60      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.96 ms | 1400 KiB | 15 Q