3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Regex for single and paired point unicode characters ranges: https://stackoverflow.com/q/51947319/6225838 $str = '☀,⛿,#⃣,😀 ,🙏,⏳'; echo preg_replace( // single point unicode list "/[\x{2600}-\x{26FF}". // http://www.fileformat.info/info/unicode/block/miscellaneous_symbols/list.htm // concatenates with paired surrogates preg_quote("\u{1F600}", '/')."-".preg_quote("\u{1F64F}", '/'). // https://www.fileformat.info/info/unicode/block/emoticons/list.htm "]/u", 'YOINK', $str );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J76IH
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%E2%98%80%2C%E2%9B%BF%2C%23%E2%83%A3%2C%F0%9F%98%80+%2C%F0%9F%99%8F%2C%E2%8F%B3'
    9     1        INIT_FCALL                                                   'preg_quote'
          2        SEND_VAL                                                     '%F0%9F%98%80'
          3        SEND_VAL                                                     '%2F'
          4        DO_ICALL                                             $2      
          5        CONCAT                                               ~3      '%2F%5B%5Cx%7B2600%7D-%5Cx%7B26FF%7D', $2
          6        CONCAT                                               ~4      ~3, '-'
          7        INIT_FCALL                                                   'preg_quote'
          8        SEND_VAL                                                     '%F0%9F%99%8F'
          9        SEND_VAL                                                     '%2F'
         10        DO_ICALL                                             $5      
         11        CONCAT                                               ~6      ~4, $5
   11    12        CONCAT                                               ~7      ~6, '%5D%2Fu'
    4    13        FRAMELESS_ICALL_3                preg_replace        ~8      ~7, 'YOINK'
   13    14        OP_DATA                                                      !0
         15        ECHO                                                         ~8
   14    16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
224.22 ms | 3314 KiB | 14 Q