3v4l.org

run code in 500+ PHP versions simultaneously
<?php $regex = "/^[ a-z0-9,.+!:;()-]+$/i"; $string = "some user input in a form passed via POST to form processor"; if (preg_match($regex, $string)) { echo "Found a match!"; } else { echo "The regex pattern does not match. :("; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6NKaX
function name:  (null)
number of ops:  8
compiled vars:  !0 = $regex, !1 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%2F%5E%5B+a-z0-9%2C.%2B%21%3A%3B%28%29-%5D%2B%24%2Fi'
    4     1        ASSIGN                                                       !1, 'some+user+input+in+a+form+passed+via+POST+to+form+processor'
    5     2        FRAMELESS_ICALL_2                preg_match          ~4      !0, !1
          3      > JMPZ                                                         ~4, ->6
    6     4    >   ECHO                                                         'Found+a+match%21'
    5     5      > JMP                                                          ->7
    8     6    >   ECHO                                                         'The+regex+pattern+does+not+match.+%3A%28'
    9     7    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.43 ms | 2574 KiB | 13 Q