3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = strtr("This is á tèst!", "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ", "aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr"); $string = trim($string); $string = str_replace (" ", "-", $string); $string = preg_replace('/[^a-zA-Z0-9-]/', '', $string); $string = strtolower($string); echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TuILt
function name:  (null)
number of ops:  28
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtr'
          1        SEND_VAL                                                 'This+is+%C3%A1+t%C3%A8st%21'
    4     2        SEND_VAL                                                 '%C3%80%C3%81%C3%82%C3%83%C3%84%C3%85%C3%86%C3%87%C3%88%C3%89%C3%8A%C3%8B%C3%8C%C3%8D%C3%8E%C3%8F%C3%90%C3%91%C3%92%C3%93%C3%94%C3%95%C3%96%C3%98%C3%99%C3%9A%C3%9B%C3%9C%C3%9D%C3%9E%C3%9F%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%A8%C3%A9%C3%AA%C3%AB%C3%AC%C3%AD%C3%AE%C3%AF%C3%B0%C3%B1%C3%B2%C3%B3%C3%B4%C3%B5%C3%B6%C3%B8%C3%B9%C3%BA%C3%BB%C3%BD%C3%BD%C3%BE%C3%BF%C5%94%C5%95'
    5     3        SEND_VAL                                                 'aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr'
          4        DO_ICALL                                         $1      
    3     5        ASSIGN                                                   !0, $1
    7     6        INIT_FCALL                                               'trim'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
    9    10        INIT_FCALL                                               'str_replace'
         11        SEND_VAL                                                 '+'
         12        SEND_VAL                                                 '-'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        ASSIGN                                                   !0, $5
   11    16        INIT_FCALL                                               'preg_replace'
         17        SEND_VAL                                                 '%2F%5B%5Ea-zA-Z0-9-%5D%2F'
         18        SEND_VAL                                                 ''
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $7      
         21        ASSIGN                                                   !0, $7
   13    22        INIT_FCALL                                               'strtolower'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $9      
         25        ASSIGN                                                   !0, $9
   15    26        ECHO                                                     !0
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.32 ms | 1388 KiB | 23 Q