3v4l.org

run code in 500+ PHP versions simultaneously
<?php $strings = [ '(STR,0:30) + |"Outdoor"| + |"Chair Mat","Commercial Floor Mat","Door Mat"| + [Post Type] + (STR,0:30)', '(STR,0:30) + |"Outdoor"| + |"Red, Yellow, and Green Jamaican Mat"| + [Post Type] + (STR,0:30)', '(STR,0:30) + |"Outdoor"| + |"USA \"MAGA\" Mat"| + [Post Type] + (STR,0:30)', ]; print_r( preg_replace('~\|("[^"\\\\]*(?:\\\\"[^"\\\\]*)*")\|~', '\1', $strings) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1I5eV
function name:  (null)
number of ops:  7
compiled vars:  !0 = $strings
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    9     1        INIT_FCALL                                                   'print_r'
   10     2        FRAMELESS_ICALL_3                preg_replace        ~2      '%7E%5C%7C%28%22%5B%5E%22%5C%5C%5D%2A%28%3F%3A%5C%5C%22%5B%5E%22%5C%5C%5D%2A%29%2A%22%29%5C%7C%7E', '%5C1'
          3        OP_DATA                                                      !0
          4        SEND_VAL                                                     ~2
    9     5        DO_ICALL                                                     
   11     6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
228.52 ms | 2208 KiB | 14 Q