3v4l.org

run code in 300+ 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/UQgbW
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                                                 '%D8%AF'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%23%28%3F%3A%5E%5B%5E%5CpL%5D%2A%29%7C%28%3F%3A%5B%5E%5CpL%5D%2A%24%29%23u'
          6        SEND_VAL                                                 ''
          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:
155 ms | 1394 KiB | 17 Q