3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url="https://www.nappsng.org/schools/search/"; $text=file_get_contents($url); $res = preg_match_all("/\b[0-9]{3}\s*-\s*[0-9]{4}\s*-\s*[0-9]{4}\b/",$text,$matches); if ($res) { foreach(array_unique($matches[0]) as $email) { echo $email . "<br />"; } } else { echo "No emails found."; }
Output for 7.3.0rc3
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/sur9G on line 4 Warning: file_get_contents(): open_basedir restriction in effect. File(https://www.nappsng.org/schools/search/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/sur9G on line 4 Warning: file_get_contents(https://www.nappsng.org/schools/search/): failed to open stream: Operation not permitted in /in/sur9G on line 4 No emails found.
Output for 7.3.0alpha1 - 7.3.0beta1
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/sur9G on line 4 Warning: file_get_contents(https://www.nappsng.org/schools/search/): failed to open stream: No such file or directory in /in/sur9G on line 4 No emails found.
Output for 7.1.20, 7.2.6
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/sur9G on line 4 Warning: file_get_contents(): open_basedir restriction in effect. File(https://www.nappsng.org/schools/search/) is not within the allowed path(s): (/tmp:/in) in /in/sur9G on line 4 Warning: file_get_contents(https://www.nappsng.org/schools/search/): failed to open stream: Operation not permitted in /in/sur9G on line 4 No emails found.
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.10, 7.2.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/sur9G on line 4 Warning: file_get_contents(https://www.nappsng.org/schools/search/): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/sur9G on line 4 No emails found.
Output for hhvm-3.15.4
Warning: Failed to open https://www.nappsng.org/schools/search/ (Could not resolve host: www.nappsng.org) in /in/sur9G on line 4 No emails found.