3v4l.org

run code in 500+ PHP versions simultaneously
<?php $var = "MOZAİK"; function TurkishFix($inputText) { $search = array('ç', 'Ç', 'ğ', 'Ğ', 'ı', 'İ', 'ö', 'Ö', 'ş', 'Ş', 'ü', 'Ü'); $replace = array('c', 'C', 'g', 'G', 'i', 'I', 'o', 'O', 's', 'S', 'u', 'U'); $outputText=str_replace($search, $replace, $inputText); return $outputText; } $string = TurkishFix($var); echo mb_strtolower($string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sYr8m
function name:  (null)
number of ops:  10
compiled vars:  !0 = $var, !1 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'MOZA%C4%B0K'
    9     1        INIT_FCALL                                                   'turkishfix'
          2        SEND_VAR                                                     !0
          3        DO_FCALL                                          0  $3      
          4        ASSIGN                                                       !1, $3
   10     5        INIT_FCALL                                                   'mb_strtolower'
          6        SEND_VAR                                                     !1
          7        DO_ICALL                                             $5      
          8        ECHO                                                         $5
          9      > RETURN                                                       1

Function turkishfix:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sYr8m
function name:  TurkishFix
number of ops:  8
compiled vars:  !0 = $inputText, !1 = $search, !2 = $replace, !3 = $outputText
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        ASSIGN                                                       !1, <array>
    5     2        ASSIGN                                                       !2, <array>
    6     3        FRAMELESS_ICALL_3                str_replace         ~6      !1, !2
          4        OP_DATA                                                      !0
          5        ASSIGN                                                       !3, ~6
    7     6      > RETURN                                                       !3
    8     7*     > RETURN                                                       null

End of function turkishfix

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.3 ms | 2320 KiB | 15 Q