PHP canonical results are inconsistent under windows and linux?

$text = "ComposerComposer  PHP (dependency)Composer:phpercomposercomposer:http://www.phpcomposer.com composer:https://getcomposer.org/download :composer:composer config -g repo.packagist composer https://packagist.phpcomposer.com:https://packagist.org  :Google... passss:gregwar/captchacomposer require gregwar/captchacmdcd C:\www\test\democomposer:composer require gregwar/captcha:index.php:https://packagist.org/packages/gregwar/captcha:composerlaravel:composerlaravel";

preg_match_all( "/.{1}/u", $text, $words_array );

var_dump($words_array);

the running result of the above code under windows, php7.0 and php7.2:

linuxPHP7.0:

LinuxPHP:


/.{1}/u/.{1}/u

Could

be the reason?


my linux can run, but php7 doesn't know what's going on with you

Menu