3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Henrik Ibsen, Henrik Ibsen \u02c8h\u025bn\u027eik \u02c8ips\u0259n (Skien, 20 marzo 1828 - Oslo, 23 maggio 1906) รจ stato uno scrittore, drammaturgo, poeta e regista teatrale norvegese."; $utf8html = preg_replace('@\\\U([0-9A-F]{4})@i', "&#x\\1", $str); echo $utf8html;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VjLv3
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str, !1 = $utf8html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Henrik+Ibsen%2C+Henrik+Ibsen+%5Cu02c8h%5Cu025bn%5Cu027eik+%5Cu02c8ips%5Cu0259n+%28Skien%2C+20+marzo+1828+-+Oslo%2C+23+maggio+1906%29+%C3%A8+stato+uno+scrittore%2C+drammaturgo%2C+poeta+e+regista+teatrale+norvegese.'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%40%5C%5CU%28%5B0-9A-F%5D%7B4%7D%29%40i'
          3        SEND_VAL                                                 '%26%23x%5C1'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    4     7        ECHO                                                     !1
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.4 ms | 1394 KiB | 15 Q