3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Gironde numérique"; $string = strtoupper($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/MWm3t
function name:  (null)
number of ops:  20
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                                               'strtoupper'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%2F%5B%5EA-Za-z0-9+%5D%2F'
          7        SEND_VAL                                                 ''
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    5    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%2F%5Cs%2B%2F'
         13        SEND_VAL                                                 '_'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !0, $6
    6    17        CONCAT                                           ~8      'gn_', !0
         18        ECHO                                                     ~8
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.1 ms | 1395 KiB | 17 Q