3v4l.org

run code in 300+ 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:  20
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'
    4     1        INIT_FCALL                                               'preg_replace'
    9     2        INIT_FCALL                                               'preg_quote'
          3        SEND_VAL                                                 '%F0%9F%98%80'
          4        SEND_VAL                                                 '%2F'
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      '%2F%5B%5Cx%7B2600%7D-%5Cx%7B26FF%7D', $2
          7        CONCAT                                           ~4      ~3, '-'
          8        INIT_FCALL                                               'preg_quote'
          9        SEND_VAL                                                 '%F0%9F%99%8F'
         10        SEND_VAL                                                 '%2F'
         11        DO_ICALL                                         $5      
         12        CONCAT                                           ~6      ~4, $5
   11    13        CONCAT                                           ~7      ~6, '%5D%2Fu'
         14        SEND_VAL                                                 ~7
   12    15        SEND_VAL                                                 'YOINK'
   13    16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $8      
         18        ECHO                                                     $8
   14    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.13 ms | 1399 KiB | 17 Q