3v4l.org

run code in 300+ PHP versions simultaneously
<?php function unichr($u) { return mb_convert_encoding('&#' . intval($u) . ';', 'UTF-8', 'HTML-ENTITIES'); } echo unichr(769); echo mb_convert_encoding('13-78995-UPR8521_PELLEGRINI_IDENTITE_carte_d_identite&769;_Pellegrini_Ch.pdf', 'UTF-8', 'HTML-ENTITIES');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/arJSU
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'unichr'
          1        SEND_VAL                                                 769
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
    8     4        INIT_FCALL                                               'mb_convert_encoding'
          5        SEND_VAL                                                 '13-78995-UPR8521_PELLEGRINI_IDENTITE_carte_d_identite%26769%3B_Pellegrini_Ch.pdf'
          6        SEND_VAL                                                 'UTF-8'
          7        SEND_VAL                                                 'HTML-ENTITIES'
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
         10      > RETURN                                                   1

Function unichr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/arJSU
function name:  unichr
number of ops:  11
compiled vars:  !0 = $u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'mb_convert_encoding'
          2        CAST                                          4  ~1      !0
          3        CONCAT                                           ~2      '%26%23', ~1
          4        CONCAT                                           ~3      ~2, '%3B'
          5        SEND_VAL                                                 ~3
          6        SEND_VAL                                                 'UTF-8'
          7        SEND_VAL                                                 'HTML-ENTITIES'
          8        DO_ICALL                                         $4      
          9      > RETURN                                                   $4
    5    10*     > RETURN                                                   null

End of function unichr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.58 ms | 1428 KiB | 15 Q