3v4l.org

run code in 300+ PHP versions simultaneously
<?php $acceptSpaces = true; $acceptUppercase = true; $text = 'El méu tëst'; $text = preg_replace('~[^ \\pL\d]+~u', '-', $text); var_dump($text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6TlPl
function name:  (null)
number of ops:  13
compiled vars:  !0 = $acceptSpaces, !1 = $acceptUppercase, !2 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, <true>
    6     2        ASSIGN                                                   !2, 'El+m%C3%A9u+t%C3%ABst'
    8     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAL                                                 '%7E%5B%5E+%5CpL%5Cd%5D%2B%7Eu'
          5        SEND_VAL                                                 '-'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.34 ms | 1394 KiB | 17 Q