3v4l.org

run code in 300+ PHP versions simultaneously
$furni = imagecreatefrompng("http://www.bubblews.com/assets/images/news/234286842_1369263526.jpg"); $furnix = imagesx($furni); $furniy = imagesy($furni); if($furnix < 180){ if($furniy < 180){ $img = imagecreatetruecolor(200, 200); }else{ $img = imagecreatetruecolor(200, ($furniy + 20)); } }else{ if($furniy < 180){ $img = imagecreatetruecolor(($furnix + 20), 200); }else{ $img = imagecreatetruecolor(($furnix + 20), $furniy + 20); } } imagefill($img, 0, 0, imagecolorallocate($img, 0, 0, 0)); //header('Content-type: image/png'); imagepng($img); imagedestroy($img);<?php
Output for git.master, git.master_jit, rfc.property-hooks
$furni = imagecreatefrompng("http://www.bubblews.com/assets/images/news/234286842_1369263526.jpg"); $furnix = imagesx($furni); $furniy = imagesy($furni); if($furnix < 180){ if($furniy < 180){ $img = imagecreatetruecolor(200, 200); }else{ $img = imagecreatetruecolor(200, ($furniy + 20)); } }else{ if($furniy < 180){ $img = imagecreatetruecolor(($furnix + 20), 200); }else{ $img = imagecreatetruecolor(($furnix + 20), $furniy + 20); } } imagefill($img, 0, 0, imagecolorallocate($img, 0, 0, 0)); //header('Content-type: image/png'); imagepng($img); imagedestroy($img);

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:
47.61 ms | 402 KiB | 8 Q