3v4l.org

run code in 300+ PHP versions simultaneously
<?php function jsonRemoveUnicodeSequences($struct) { return htmlentities(preg_replace("/\\\\u([a-f0-9]{4})/e", "iconv('UCS-4LE','UTF-8',pack('V', hexdec('U$1')))", json_encode($struct))); } echo jsonRemoveUnicodeSequences("http\u00253A\u00252F\u00252Fwww.splicecommunity.com\u00252Fmedia\u00252F5735709\u00252Fadbne_hero-1.jpg");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DEpVc
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                                                 'http%5Cu00253A%5Cu00252F%5Cu00252Fwww.splicecommunity.com%5Cu00252Fmedia%5Cu00252F5735709%5Cu00252Fadbne_hero-1.jpg'
          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/DEpVc
function name:  jsonRemoveUnicodeSequences
number of ops:  14
compiled vars:  !0 = $struct
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'htmlentities'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5C%5Cu%28%5Ba-f0-9%5D%7B4%7D%29%2Fe'
          4        SEND_VAL                                                 'iconv%28%27UCS-4LE%27%2C%27UTF-8%27%2Cpack%28%27V%27%2C+hexdec%28%27U%241%27%29%29%29'
          5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12      > RETURN                                                   $3
    5    13*     > RETURN                                                   null

End of function jsonremoveunicodesequences

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.89 ms | 1398 KiB | 20 Q