3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "\u263a\ufe0f"; var_dump(preg_replace('/\\\\u([0-9A-Za-z]{4})\\\\u([0-9A-Za-z]{4})/', ' $1$2', $string));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mWnfg
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Cu263a%5Cufe0f'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5C%5Cu%28%5B0-9A-Za-z%5D%7B4%7D%29%5C%5Cu%28%5B0-9A-Za-z%5D%7B4%7D%29%2F'
          4        SEND_VAL                                                 '+%241%242'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.95 ms | 1394 KiB | 17 Q