3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Use simple html dom include('simple_html_dom.php'); $temp = 'https://hockey.fantasysports.yahoo.com/hockey/63480/players?status=ALL&pos=C&cut_type=33&stat1=S_S_2014&myteam=0&sort=OR&sdir=1&count=0'; $context = stream_context_create(array('http' => array('header' => 'User-Agent: Mozilla compatible'))); $response = file_get_contents($temp, false, $context); $html = str_get_html($response); echo $html;
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: include(): open_basedir restriction in effect. File(simple_html_dom.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/SKdoh on line 3 Warning: include(simple_html_dom.php): Failed to open stream: Operation not permitted in /in/SKdoh on line 3 Warning: include(): Failed opening 'simple_html_dom.php' for inclusion (include_path='.:') in /in/SKdoh on line 3 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/SKdoh on line 7 Warning: file_get_contents(): open_basedir restriction in effect. File(https://hockey.fantasysports.yahoo.com/hockey/63480/players?status=ALL&pos=C&cut_type=33&stat1=S_S_2014&myteam=0&sort=OR&sdir=1&count=0) is not within the allowed path(s): (/tmp:/in:/etc) in /in/SKdoh on line 7 Warning: file_get_contents(https://hockey.fantasysports.yahoo.com/hockey/63480/players?status=ALL&pos=C&cut_type=33&stat1=S_S_2014&myteam=0&sort=OR&sdir=1&count=0): Failed to open stream: Operation not permitted in /in/SKdoh on line 7 Fatal error: Uncaught Error: Call to undefined function str_get_html() in /in/SKdoh:8 Stack trace: #0 {main} thrown in /in/SKdoh on line 8
Process exited with code 255.
Output for 8.0.13
Warning: include(simple_html_dom.php): Failed to open stream: No such file or directory in /in/SKdoh on line 3 Warning: include(): Failed opening 'simple_html_dom.php' for inclusion (include_path='.:') in /in/SKdoh on line 3 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/SKdoh on line 7 Warning: file_get_contents(https://hockey.fantasysports.yahoo.com/hockey/63480/players?status=ALL&pos=C&cut_type=33&stat1=S_S_2014&myteam=0&sort=OR&sdir=1&count=0): Failed to open stream: No such file or directory in /in/SKdoh on line 7 Fatal error: Uncaught Error: Call to undefined function str_get_html() in /in/SKdoh:8 Stack trace: #0 {main} thrown in /in/SKdoh on line 8
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.33
Warning: include(simple_html_dom.php): failed to open stream: No such file or directory in /in/SKdoh on line 3 Warning: include(): Failed opening 'simple_html_dom.php' for inclusion (include_path='.:') in /in/SKdoh on line 3 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/SKdoh on line 7 Warning: file_get_contents(https://hockey.fantasysports.yahoo.com/hockey/63480/players?status=ALL&pos=C&cut_type=33&stat1=S_S_2014&myteam=0&sort=OR&sdir=1&count=0): failed to open stream: No such file or directory in /in/SKdoh on line 7 Fatal error: Uncaught Error: Call to undefined function str_get_html() in /in/SKdoh:8 Stack trace: #0 {main} thrown in /in/SKdoh on line 8
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Warning: include(): open_basedir restriction in effect. File(simple_html_dom.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/SKdoh on line 3 Warning: include(simple_html_dom.php): failed to open stream: Operation not permitted in /in/SKdoh on line 3 Warning: include(): Failed opening 'simple_html_dom.php' for inclusion (include_path='.:') in /in/SKdoh on line 3 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/SKdoh on line 7 Warning: file_get_contents(): open_basedir restriction in effect. File(https://hockey.fantasysports.yahoo.com/hockey/63480/players?status=ALL&pos=C&cut_type=33&stat1=S_S_2014&myteam=0&sort=OR&sdir=1&count=0) is not within the allowed path(s): (/tmp:/in:/etc) in /in/SKdoh on line 7 Warning: file_get_contents(https://hockey.fantasysports.yahoo.com/hockey/63480/players?status=ALL&pos=C&cut_type=33&stat1=S_S_2014&myteam=0&sort=OR&sdir=1&count=0): failed to open stream: Operation not permitted in /in/SKdoh on line 7 Fatal error: Uncaught Error: Call to undefined function str_get_html() in /in/SKdoh:8 Stack trace: #0 {main} thrown in /in/SKdoh on line 8
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Warning: include(): open_basedir restriction in effect. File(simple_html_dom.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/SKdoh on line 3 Warning: include(simple_html_dom.php): failed to open stream: Operation not permitted in /in/SKdoh on line 3 Warning: include(): Failed opening 'simple_html_dom.php' for inclusion (include_path='.:') in /in/SKdoh on line 3 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/SKdoh on line 7 Warning: file_get_contents(): open_basedir restriction in effect. File(https://hockey.fantasysports.yahoo.com/hockey/63480/players?status=ALL&pos=C&cut_type=33&stat1=S_S_2014&myteam=0&sort=OR&sdir=1&count=0) is not within the allowed path(s): (/tmp:/in:/etc) in /in/SKdoh on line 7 Warning: file_get_contents(https://hockey.fantasysports.yahoo.com/hockey/63480/players?status=ALL&pos=C&cut_type=33&stat1=S_S_2014&myteam=0&sort=OR&sdir=1&count=0): failed to open stream: Operation not permitted in /in/SKdoh on line 7 Fatal error: Call to undefined function str_get_html() in /in/SKdoh on line 8
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Warning: include(simple_html_dom.php): failed to open stream: No such file or directory in /in/SKdoh on line 3 Warning: include(): Failed opening 'simple_html_dom.php' for inclusion (include_path='.:') in /in/SKdoh on line 3 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/SKdoh on line 7 Warning: file_get_contents(https://hockey.fantasysports.yahoo.com/hockey/63480/players?status=ALL&pos=C&cut_type=33&stat1=S_S_2014&myteam=0&sort=OR&sdir=1&count=0): failed to open stream: No such file or directory in /in/SKdoh on line 7 Fatal error: Call to undefined function str_get_html() in /in/SKdoh on line 8
Process exited with code 255.

preferences:
302.69 ms | 402 KiB | 376 Q