3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?<![^,])(?:rss-latest|listing-latest-no-category|category-128|page-9000)(?![^,])/m'; $str = 'page-9000,page-template,page-type,page-category-128,image-195,listing-latest,rss-latest,even-more-info,even-more-tags'; if (preg_match_all($re, $str, $matches)) { print_r($matches[0]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/UR02S
function name:  (null)
number of ops:  13
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%28%3F%3C%21%5B%5E%2C%5D%29%28%3F%3Arss-latest%7Clisting-latest-no-category%7Ccategory-128%7Cpage-9000%29%28%3F%21%5B%5E%2C%5D%29%2Fm'
    4     1        ASSIGN                                                   !1, 'page-9000%2Cpage-template%2Cpage-type%2Cpage-category-128%2Cimage-195%2Clisting-latest%2Crss-latest%2Ceven-more-info%2Ceven-more-tags'
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                         $5      
          7      > JMPZ                                                     $5, ->12
    7     8    >   INIT_FCALL                                               'print_r'
          9        FETCH_DIM_R                                      ~6      !2, 0
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
    8    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.46 ms | 1002 KiB | 15 Q