@ 2013-10-11T14:28:56Z <?php
/*
* This should produce failures when using a version of libpcre older than 8.32
*/
error_reporting(E_ALL);
ob_start();
phpinfo();
$phpinfo = ob_get_clean();
print preg_replace('/.*PCRE Library Version => (.*?$).*/sm', '$1', $phpinfo) . "\n";
$tests = array();
$test_string = mb_convert_encoding('가각ந', 'UTF-8', 'HTML-ENTITIES');
print "$test_string\n";
$tests['string_length'] = (mb_strlen($test_string, 'UTF-8') === 3);
$tests['string_match'] = (preg_match('/^\X\X\X$/u', $test_string) === 1);
$fails = array();
foreach ($tests as $key => $value) {
if ($value === false) {
$fails[$key] = $value;
}
}
if (count($fails) > 0) {
echo "Failed: " . join(', ', array_keys($fails)) . "\n";
exit(1);
}
exit(0);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.12 , 8.0.14 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught Error: Call to undefined function phpinfo() in /in/pEihc:8
Stack trace:
#0 {main}
thrown in /in/pEihc on line 8
Process exited with code 255 . Output for 8.0.13 10.35 2020-05-09
가각ந
Output for 5.3.1 - 5.3.29 , 5.4.0 - 5.4.45 , 5.5.0 - 5.5.38 , 5.6.0 - 5.6.28 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.20 , 7.2.0 - 7.2.33 , 7.3.12 - 7.3.31 , 7.4.0 - 7.4.33 Warning: phpinfo() has been disabled for security reasons in /in/pEihc on line 8
가각ந
Output for 7.3.32 - 7.3.33 10.32 2018-09-10
가각ந
Output for 5.3.0 Warning: phpinfo() has been disabled for security reasons in /in/pEihc on line 8
preferences:dark mode live preview
170.83 ms | 401 KiB | 303 Q