3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = preg_quote("\u00a0"); echo preg_replace('#(?:^[^\p]*)#u','--+--',$string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JlYHJ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_quote'
          1        SEND_VAL                                                 '%5Cu00a0'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%23%28%3F%3A%5E%5B%5E%5Cp%5D%2A%29%23u'
          6        SEND_VAL                                                 '--%2B--'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.48 ms | 1385 KiB | 17 Q