3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Gironde numérique"; $string = strtolower($string); $string = Normalizer::normalize($string, Normalizer::FORM_D); $string = preg_replace('~\p{Mn}~u', '', $string); $string = preg_replace("/[^A-Za-z0-9]/", '', $string); $string = preg_replace('/\s+/', '_', $string); echo "gn_" . $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T6ceu
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'
    3     1        INIT_FCALL                                               'strtolower'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_STATIC_METHOD_CALL                                  'Normalizer', 'normalize'
          6        SEND_VAR_EX                                              !0
          7        FETCH_CLASS_CONSTANT                             ~4      'Normalizer', 'FORM_D'
          8        SEND_VAL_EX                                              ~4
          9        DO_FCALL                                      0  $5      
         10        ASSIGN                                                   !0, $5
    5    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%7E%5Cp%7BMn%7D%7Eu'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $7      
         16        ASSIGN                                                   !0, $7
    6    17        INIT_FCALL                                               'preg_replace'
         18        SEND_VAL                                                 '%2F%5B%5EA-Za-z0-9%5D%2F'
         19        SEND_VAL                                                 ''
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $9      
         22        ASSIGN                                                   !0, $9
    7    23        INIT_FCALL                                               'preg_replace'
         24        SEND_VAL                                                 '%2F%5Cs%2B%2F'
         25        SEND_VAL                                                 '_'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $11     
         28        ASSIGN                                                   !0, $11
    8    29        CONCAT                                           ~13     'gn_', !0
         30        ECHO                                                     ~13
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.72 ms | 1396 KiB | 17 Q