3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = file_get_contents('www.msn.com'); $regex = '/Page 1 of (.+?) results/'; preg_match($regex,$data,$match); var_dump($match); echo $match[1]; ?>
Output for 5.3.0 - 7.2.0
Warning: file_get_contents(www.msn.com): failed to open stream: No such file or directory in /in/7WZde on line 2 array(0) { } Notice: Undefined offset: 1 in /in/7WZde on line 6
Output for 4.3.2 - 5.2.17
Warning: file_get_contents(www.msn.com): failed to open stream: No such file or directory in /in/7WZde on line 2 array(0) { } Notice: Undefined offset: 1 in /in/7WZde on line 6
Output for 4.3.0 - 4.3.1
Warning: file_get_contents(www.msn.com) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/7WZde on line 2 array(0) { } Notice: Undefined offset: 1 in /in/7WZde on line 6