3v4l.org

run code in 300+ PHP versions simultaneously
<?php function unicode_escape_sequences($str){ $working = json_encode($str); $working = preg_replace('/\\\u([0-9a-z]{4})/', '&#x$1;', $working); return json_decode($working); } echo unicode_escape_sequences("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/QQJfn
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'unicode_escape_sequences'
          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 unicode_escape_sequences:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QQJfn
function name:  unicode_escape_sequences
number of ops:  16
compiled vars:  !0 = $str, !1 = $working
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !1, $2
          5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%2F%5C%5Cu%28%5B0-9a-z%5D%7B4%7D%29%2F'
          7        SEND_VAL                                                 '%26%23x%241%3B'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
         11        INIT_FCALL                                               'json_decode'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $6      
         14      > RETURN                                                   $6
         15*     > RETURN                                                   null

End of function unicode_escape_sequences

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.14 ms | 1398 KiB | 20 Q