3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Gironde numérique sdsds"; $string = strtolower($string); $string = strtr(utf8_decode($string), utf8_decode('àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ'), 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY'); $string = preg_replace('/\s+/', '_', $string); $string = preg_replace("/[^A-Za-z0-9]_/", '', $string); echo "gn_" . $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1JNSS
function name:  (null)
number of ops:  32
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Gironde+num%C3%A9rique+sdsds'
    3     1        INIT_FCALL                                               'strtolower'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'strtr'
          6        INIT_FCALL                                               'utf8_decode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        INIT_FCALL                                               'utf8_decode'
         11        SEND_VAL                                                 '%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A7%C3%A8%C3%A9%C3%AA%C3%AB%C3%AC%C3%AD%C3%AE%C3%AF%C3%B1%C3%B2%C3%B3%C3%B4%C3%B5%C3%B6%C3%B9%C3%BA%C3%BB%C3%BC%C3%BD%C3%BF%C3%80%C3%81%C3%82%C3%83%C3%84%C3%87%C3%88%C3%89%C3%8A%C3%8B%C3%8C%C3%8D%C3%8E%C3%8F%C3%91%C3%92%C3%93%C3%94%C3%95%C3%96%C3%99%C3%9A%C3%9B%C3%9C%C3%9D'
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        SEND_VAL                                                 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY'
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !0, $6
    5    17        INIT_FCALL                                               'preg_replace'
         18        SEND_VAL                                                 '%2F%5Cs%2B%2F'
         19        SEND_VAL                                                 '_'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $8      
         22        ASSIGN                                                   !0, $8
    6    23        INIT_FCALL                                               'preg_replace'
         24        SEND_VAL                                                 '%2F%5B%5EA-Za-z0-9%5D_%2F'
         25        SEND_VAL                                                 ''
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $10     
         28        ASSIGN                                                   !0, $10
    7    29        CONCAT                                           ~12     'gn_', !0
         30        ECHO                                                     ~12
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.54 ms | 1396 KiB | 21 Q