3v4l.org

run code in 300+ PHP versions simultaneously
<?php function jsonRemoveUnicodeSequences($struct) { return preg_replace("/\\\\u([a-f0-9]{4})/e", "iconv('UCS-4LE','UTF-8',pack('V', hexdec('U$1')))", $struct); } echo jsonRemoveUnicodeSequences(" ОРД 02: Украине пригодится опыт хорватов для борьбы с \u00ab мирными сепаратистами \u00bb ");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VHHMI
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'jsonremoveunicodesequences'
          1        SEND_VAL                                                 '+%D0%9E%D0%A0%D0%94+02%3A++%D0%A3%D0%BA%D1%80%D0%B0%D0%B8%D0%BD%D0%B5+%D0%BF%D1%80%D0%B8%D0%B3%D0%BE%D0%B4%D0%B8%D1%82%D1%81%D1%8F+%D0%BE%D0%BF%D1%8B%D1%82+%D1%85%D0%BE%D1%80%D0%B2%D0%B0%D1%82%D0%BE%D0%B2+%D0%B4%D0%BB%D1%8F+%D0%B1%D0%BE%D1%80%D1%8C%D0%B1%D1%8B+%D1%81+%5Cu00ab+%D0%BC%D0%B8%D1%80%D0%BD%D1%8B%D0%BC%D0%B8+%D1%81%D0%B5%D0%BF%D0%B0%D1%80%D0%B0%D1%82%D0%B8%D1%81%D1%82%D0%B0%D0%BC%D0%B8+%5Cu00bb+'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function jsonremoveunicodesequences:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VHHMI
function name:  jsonRemoveUnicodeSequences
number of ops:  8
compiled vars:  !0 = $struct
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%5Cu%28%5Ba-f0-9%5D%7B4%7D%29%2Fe'
          3        SEND_VAL                                                 'iconv%28%27UCS-4LE%27%2C%27UTF-8%27%2Cpack%28%27V%27%2C+hexdec%28%27U%241%27%29%29%29'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
    5     7*     > RETURN                                                   null

End of function jsonremoveunicodesequences

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.91 ms | 1389 KiB | 16 Q