3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrayth = array("yolo", "y olo", "f_uck", "fyck", "f-uck", "cock", "123141", "cock3", "c-cock1", "c1-ock", "fuck", "รจ", "+", "cock+"); foreach ($arrayth as $value) { if (preg_match_all("([a-zA-Z0-9-_]+)", $value)) { echo $value . " => matches the regex\n"; } else { echo $value . " => doesn't match the regex\n"; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/vFpKX
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arrayth, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $3      !0, ->14
          2    > > FE_FETCH_R                                               $3, !1, ->14
    4     3    >   INIT_FCALL                                               'preg_match_all'
          4        SEND_VAL                                                 '%28%5Ba-zA-Z0-9-_%5D%2B%29'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7      > JMPZ                                                     $4, ->11
    5     8    >   CONCAT                                           ~5      !1, '+%3D%3E+matches+the+regex%0A'
          9        ECHO                                                     ~5
         10      > JMP                                                      ->13
    8    11    >   CONCAT                                           ~6      !1, '+%3D%3E+doesn%27t+match+the+regex%0A'
         12        ECHO                                                     ~6
    3    13    > > JMP                                                      ->2
         14    >   FE_FREE                                                  $3
   11    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.99 ms | 1386 KiB | 15 Q