3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Image { public $height; public $width; public $htmlAttribute; } $filename = "http://img.wikinut.com/img/gycf69_-6rv_5fol/jpeg/0/Best-Friends-Img-Src%3AImage%3A-FreeDigitalPhotos.net.jpeg"; $imgSize = getimagesize($filename) or die('Sorry, File Not Found'); if ($imgSize != "") { $img = new Image(); $img->height = $imgSize[0]; $img->width = $imgSize[1]; $img->htmlAttribute = $imgSize[3]; $counter = 0; foreach ($imgSize as $imgProp) { echo $counter.":".PHP_EOL.$imgProp .PHP_EOL; $counter += 1; } echo '<img src="'.$filename.'" />'; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: getimagesize(): php_network_getaddresses: getaddrinfo for img.wikinut.com failed: System error in /in/Y0KWe on line 13 Warning: getimagesize(http://img.wikinut.com/img/gycf69_-6rv_5fol/jpeg/0/Best-Friends-Img-Src%3AImage%3A-FreeDigitalPhotos.net.jpeg): Failed to open stream: php_network_getaddresses: getaddrinfo for img.wikinut.com failed: System error in /in/Y0KWe on line 13 Sorry, File Not Found

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
46.36 ms | 402 KiB | 8 Q