3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $site = file_get_contents("https://btc-e.com/exchange/ltc_btc"); preg_match("'Last Price: <strong>(.*?)</strong></div> <div class=/'orderStats/'>Low:'si", $site, $matches); echo $matches[1]; // 1234 ?>
Output for 5.4.15 - 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/0NJgD on line 2 Warning: file_get_contents(https://btc-e.com/exchange/ltc_btc): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/0NJgD on line 2 Warning: preg_match(): Unknown modifier 'o' in /in/0NJgD on line 5
Output for 5.3.0 - 5.4.14
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/0NJgD on line 2 Warning: file_get_contents(https://btc-e.com/exchange/ltc_btc): failed to open stream: No such file or directory in /in/0NJgD on line 2 Warning: preg_match(): Unknown modifier 'o' in /in/0NJgD on line 5
Output for 5.2.0 - 5.2.17
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/0NJgD on line 2 Warning: file_get_contents(https://btc-e.com/exchange/ltc_btc): failed to open stream: No such file or directory in /in/0NJgD on line 2 Warning: preg_match(): Unknown modifier 'o' in /in/0NJgD on line 5
Output for 4.3.11 - 5.1.6
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/0NJgD on line 2 Warning: file_get_contents(https://btc-e.com/exchange/ltc_btc): failed to open stream: No such file or directory in /in/0NJgD on line 2 Warning: preg_match(): Unknown modifier 'o' in /in/0NJgD on line 5 Notice: Undefined offset: 1 in /in/0NJgD on line 6
Output for 4.3.2 - 4.3.10
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/0NJgD on line 2 Warning: file_get_contents(https://btc-e.com/exchange/ltc_btc): failed to open stream: No such file or directory in /in/0NJgD on line 2 Warning: Unknown modifier 'o' in /in/0NJgD on line 5 Notice: Undefined offset: 1 in /in/0NJgD on line 6
Output for 4.3.0 - 4.3.1
Notice: file_get_contents() [http://www.php.net/function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/0NJgD on line 2 Warning: file_get_contents(https://btc-e.com/exchange/ltc_btc) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/0NJgD on line 2 Warning: Unknown modifier 'o' in /in/0NJgD on line 5 Notice: Undefined offset: 1 in /in/0NJgD on line 6