3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Test éest"; $text = preg_replace('~[^\\pL\d]+~u', '-', $text); $text = trim($text, '-'); $text = iconv('UTF-8','ASCII//TRANSLIT', $text); $text = strtoupper($text); $text = preg_replace('~[^-\w]+~', '', $text); echo strtoupper($text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XKunI
function name:  (null)
number of ops:  33
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Test+%C3%A9est'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E%5B%5E%5CpL%5Cd%5D%2B%7Eu'
          3        SEND_VAL                                                 '-'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL                                               'trim'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '-'
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    5    12        INIT_FCALL_BY_NAME                                       'iconv'
         13        SEND_VAL_EX                                              'UTF-8'
         14        SEND_VAL_EX                                              'ASCII%2F%2FTRANSLIT'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0  $6      
         17        ASSIGN                                                   !0, $6
    6    18        INIT_FCALL                                               'strtoupper'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $8      
         21        ASSIGN                                                   !0, $8
    7    22        INIT_FCALL                                               'preg_replace'
         23        SEND_VAL                                                 '%7E%5B%5E-%5Cw%5D%2B%7E'
         24        SEND_VAL                                                 ''
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $10     
         27        ASSIGN                                                   !0, $10
    8    28        INIT_FCALL                                               'strtoupper'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                         $12     
         31        ECHO                                                     $12
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.63 ms | 1396 KiB | 22 Q