3v4l.org

run code in 500+ PHP versions simultaneously
<?php $patterns = array('å', "a\u{030A}", 'æ', 'ø'); $replacements = array('/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/A994q
function name:  (null)
number of ops:  6
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        FRAMELESS_ICALL_3                str_replace         ~4      !0, !1
          3        OP_DATA                                                      '1554896020A2a%CC%8A.pdf'
          4        ECHO                                                         ~4
          5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.73 ms | 2017 KiB | 13 Q