3v4l.org

run code in 300+ PHP versions simultaneously
<?php function transliterate($textcyr) { $textcyr = preg_replace('/[^A-Za-z0-9\s \-]/', '', $textcyr); if($textcyr) return $textcyr; else return null; } echo transliterate("Restart Cool");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KAjLO
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'transliterate'
          1        SEND_VAL                                                 'Restart+Cool'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function transliterate:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KAjLO
function name:  transliterate
number of ops:  12
compiled vars:  !0 = $textcyr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5EA-Za-z0-9%5Cs+%5C-%5D%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        ASSIGN                                                   !0, $1
    5     7      > JMPZ                                                     !0, ->10
          8    > > RETURN                                                   !0
          9*       JMP                                                      ->11
    6    10    > > RETURN                                                   null
    7    11*     > RETURN                                                   null

End of function transliterate

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.8 ms | 1397 KiB | 16 Q