3v4l.org

run code in 300+ 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:  11
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        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !3, $6
    7     9      > RETURN                                                   !3
    8    10*     > RETURN                                                   null

End of function turkishfix

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
207.61 ms | 1398 KiB | 18 Q