3v4l.org

run code in 300+ PHP versions simultaneously
<?php $patterns = array('å', "a\xCC\x8A", "A\xCC\x8A", 'æ', 'ø'); $replacements = array('/x7D', '/x7D', '/x7D', 'X', '/x7C'); echo str_replace($patterns, $replacements, '1554896020A2å.pdf');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HRdfl
function name:  (null)
number of ops:  9
compiled vars:  !0 = $patterns, !1 = $replacements
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 '1554896020A2a%CC%8A.pdf'
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.52 ms | 1008 KiB | 14 Q