3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http\u00253A\u00252F\u00252Fwww.splicecommunity.com\u00252Fmedia\u00252F5735709\u00252Fadbne_hero-1.jpg"; function replace_unicode_escape_sequence($match) { return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE'); } $url = preg_replace_callback('/(?:\\\\u[0-9a-fA-Z]{4})+/', function ($v) { $v = strtr($v[0], array('\\u' => '')); return mb_convert_encoding(pack('H*', $v), 'UTF-8', 'UTF-16BE'); }, $url); echo $url;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J1kA0
function name:  (null)
number of ops:  10
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%5Cu00253A%5Cu00252F%5Cu00252Fwww.splicecommunity.com%5Cu00252Fmedia%5Cu00252F5735709%5Cu00252Fadbne_hero-1.jpg'
    7     1        INIT_FCALL                                               'preg_replace_callback'
          2        SEND_VAL                                                 '%2F%28%3F%3A%5C%5Cu%5B0-9a-fA-Z%5D%7B4%7D%29%2B%2F'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FJ1kA0%3A7%240'
   10     4        SEND_VAL                                                 ~2
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
    7     7        ASSIGN                                                   !0, $3
   11     8        ECHO                                                     !0
          9      > RETURN                                                   1

Function replace_unicode_escape_sequence:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J1kA0
function name:  replace_unicode_escape_sequence
number of ops:  13
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'mb_convert_encoding'
          2        INIT_FCALL                                               'pack'
          3        SEND_VAL                                                 'H%2A'
          4        FETCH_DIM_R                                      ~1      !0, 1
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        SEND_VAL                                                 'UTF-8'
          9        SEND_VAL                                                 'UCS-2BE'
         10        DO_ICALL                                         $3      
         11      > RETURN                                                   $3
    6    12*     > RETURN                                                   null

End of function replace_unicode_escape_sequence

Function %00%7Bclosure%7D%2Fin%2FJ1kA0%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J1kA0
function name:  {closure}
number of ops:  18
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'strtr'
          2        FETCH_DIM_R                                      ~1      !0, 0
          3        SEND_VAL                                                 ~1
          4        SEND_VAL                                                 <array>
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    9     7        INIT_FCALL                                               'mb_convert_encoding'
          8        INIT_FCALL                                               'pack'
          9        SEND_VAL                                                 'H%2A'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        SEND_VAL                                                 'UTF-8'
         14        SEND_VAL                                                 'UTF-16BE'
         15        DO_ICALL                                         $5      
         16      > RETURN                                                   $5
   10    17*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FJ1kA0%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.21 ms | 1400 KiB | 21 Q