3v4l.org

run code in 500+ PHP versions simultaneously
<?php $myChar = "\u{1F606}"; echo $myChar; $code = "1F606"; $myChar = html_entity_decode('&#x'.$code.";", ENT_QUOTES, 'UTF-8'); echo $myChar;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/312KC
function name:  (null)
number of ops:  13
compiled vars:  !0 = $myChar, !1 = $code
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%F0%9F%98%86'
    4     1        ECHO                                                         !0
    6     2        ASSIGN                                                       !1, '1F606'
    8     3        INIT_FCALL                                                   'html_entity_decode'
          4        CONCAT                                               ~4      '%26%23x', !1
          5        CONCAT                                               ~5      ~4, '%3B'
          6        SEND_VAL                                                     ~5
          7        SEND_VAL                                                     3
          8        SEND_VAL                                                     'UTF-8'
          9        DO_ICALL                                             $6      
         10        ASSIGN                                                       !0, $6
    9    11        ECHO                                                         !0
   10    12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.82 ms | 1852 KiB | 14 Q