3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = array('Ā', 'ā', 'Š', 'š', 'Ž', 'ž'); $replace = array('A', 'a', 'S', 's', 'Ž', ž); foreach($data as $key => $value){ $value = str_replace($search, $replace, $value); } print_r($data);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/t2ggc
function name:  (null)
number of ops:  24
compiled vars:  !0 = $search, !1 = $replace, !2 = $data, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_ARRAY                                       ~6      'A'
          2        ADD_ARRAY_ELEMENT                                ~6      'a'
          3        ADD_ARRAY_ELEMENT                                ~6      'S'
          4        ADD_ARRAY_ELEMENT                                ~6      's'
          5        ADD_ARRAY_ELEMENT                                ~6      '%C5%BD'
          6        FETCH_CONSTANT                                   ~7      '%C5%BE'
          7        ADD_ARRAY_ELEMENT                                ~6      ~7
          8        ASSIGN                                                   !1, ~6
    5     9      > FE_RESET_R                                       $9      !2, ->19
         10    > > FE_FETCH_R                                       ~10     $9, !3, ->19
         11    >   ASSIGN                                                   !4, ~10
    6    12        INIT_FCALL                                               'str_replace'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $12     
         17        ASSIGN                                                   !3, $12
    5    18      > JMP                                                      ->10
         19    >   FE_FREE                                                  $9
    9    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.34 ms | 1400 KiB | 17 Q