3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( preg_match( '(([\\r\\n]{1,1000})|([^\\S\\r\\n]{1,1000})|(\\\\)|(\')|(")|(\\#)|(\\$)|(([^(\\s\\\\\'"\\#\\$)]|\\(|\\)){1,1000}))A', 'Laravel', $matches ) ); var_dump(PCRE_VERSION);
Output for 8.4.1 - 8.4.14
int(1) string(16) "10.44 2024-06-07"
Output for 8.3.0 - 8.3.4, 8.3.6 - 8.3.27
int(1) string(16) "10.42 2022-12-12"
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 int(1) string(16) "10.42 2022-12-12"
Output for 8.2.0 - 8.2.29
int(1) string(16) "10.40 2022-04-14"
Output for 8.1.1 - 8.1.33
int(1) string(16) "10.39 2021-10-29"
Output for 8.1.0
int(1) string(16) "10.37 2021-05-26"
Output for 7.4.12 - 7.4.33, 8.0.0 - 8.0.30
int(1) string(16) "10.35 2020-05-09"
Output for 7.4.6 - 7.4.11
int(1) string(16) "10.34 2019-11-21"
Output for 7.4.0 - 7.4.5
int(1) string(16) "10.33 2019-04-16"
Output for 7.3.0 - 7.3.33
int(1) string(16) "10.32 2018-09-10"

preferences:
191.03 ms | 418 KiB | 5 Q