3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = str_get_html("<img src='http://www.example.com/Imagename.jpg' height='400px' width='600px'>"); $image = $html->find("img"); print_r($link->src);

preferences:
37.42 ms | 402 KiB | 5 Q