3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $content = file_get_contents("www.tadawul.com.sa"); print_r( $content) ; preg_match('#<b>USD</b>(.*)<em class="w_50">([0-9\.]*)</em><em class="w_50">([0-9\.]*)</em>#Uis', $content, $USDmatch); $usd = $USDmatch[3]; echo " USD: $usd ";
based on 7p3KN
Output for 5.3.0 - 7.2.0
Warning: file_get_contents(www.tadawul.com.sa): failed to open stream: No such file or directory in /in/qonCt on line 2 Notice: Undefined offset: 3 in /in/qonCt on line 6 USD:
Output for 4.3.2 - 5.2.17
Warning: file_get_contents(www.tadawul.com.sa): failed to open stream: No such file or directory in /in/qonCt on line 2 Notice: Undefined offset: 3 in /in/qonCt on line 6 USD:
Output for 4.3.0 - 4.3.1
Warning: file_get_contents(www.tadawul.com.sa) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/qonCt on line 2 Notice: Undefined offset: 3 in /in/qonCt on line 6 USD: