3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), '片仮名');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KNSq6
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace_callback'
          1        SEND_VAL                                                 '%23%25u%28%5B0-9A-F%5D%7B1%2C4%7D%29%23i'
          2        INIT_FCALL_BY_NAME                                       'create_function'
          3        SEND_VAL_EX                                              '%24matches'
          4        SEND_VAL_EX                                              'return+%22%26%23%22.hexdec%28%24matches%5B1%5D%29.%22%3B%22%3B'
          5        DO_FCALL                                      0  $0      
          6        SEND_VAR                                                 $0
          7        SEND_VAL                                                 '%E7%89%87%E4%BB%AE%E5%90%8D'
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.66 ms | 1394 KiB | 15 Q