3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo preg_match( 'https://www.baidu.com' ,'/^http[s]:\/\/.+/'); echo "\n"; if (preg_match( 'https://www.baidu.com' ,'/^http[s]:\/\/\.+/') != 1) { echo "1111111111111111"; }
based on QYvYd
Output for 4.3.11 - 7.2.0
Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/DsU9Y on line 2 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/DsU9Y on line 4 1111111111111111
Output for 4.3.0 - 4.3.10
Warning: Delimiter must not be alphanumeric or backslash in /in/DsU9Y on line 2 Warning: Delimiter must not be alphanumeric or backslash in /in/DsU9Y on line 4 1111111111111111