3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = preg_quote("\دد"); echo preg_replace('#(?:^[^\pL]*)|(?:[^\pL]*$)#u','',$string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1QkaW
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'preg_quote'
          1        SEND_VAL                                                     '%5C%D8%AF%D8%AF'
          2        DO_ICALL                                             $1      
          3        ASSIGN                                                       !0, $1
    3     4        FRAMELESS_ICALL_3                preg_replace        ~3      '%23%28%3F%3A%5E%5B%5E%5CpL%5D%2A%29%7C%28%3F%3A%5B%5E%5CpL%5D%2A%24%29%23u', ''
          5        OP_DATA                                                      !0
          6        ECHO                                                         ~3
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
222.48 ms | 3020 KiB | 14 Q