Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #81424 (PCRE2 10.35 JIT performance regression) --DESCRIPTION-- We're testing..

Decoded Output download

--TEST--
Bug #81424 (PCRE2 10.35 JIT performance regression)
--DESCRIPTION--
We're testing against the functional regression which has been introduced by
fixing the performance regression.
--FILE--
<?php
var_dump(
    preg_match('/(?P<size>\d+)m|M/', "4M", $m),
    $m
);
?>
--EXPECT--
int(1)
array(1) {
  [0]=>
  string(1) "M"
}

Did this file decode correctly?

Original Code

--TEST--
Bug #81424 (PCRE2 10.35 JIT performance regression)
--DESCRIPTION--
We're testing against the functional regression which has been introduced by
fixing the performance regression.
--FILE--
<?php
var_dump(
    preg_match('/(?P<size>\d+)m|M/', "4M", $m),
    $m
);
?>
--EXPECT--
int(1)
array(1) {
  [0]=>
  string(1) "M"
}

Function Calls

var_dump 1
preg_match 1

Variables

None

Stats

MD5 d8ad6ca73a7ccc5810cffcdf414ca2af
Eval Count 0
Decode Time 92 ms