3v4l.org

run code in 300+ 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:  10
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        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%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'
          4        SEND_VAL                                                 '%5C1'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
   11     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.98 ms | 1394 KiB | 17 Q