3v4l.org

run code in 300+ PHP versions simultaneously
<?php $width = 1; $length = 1; do{ $width++; $length++; $area = $width * $length; echo "the area of the rectangle is $area"; }while($area < 1000); echo "You can't have a rectangle whose area is greater than a square meter";
Output for git.master, git.master_jit, rfc.property-hooks
the area of the rectangle is 4the area of the rectangle is 9the area of the rectangle is 16the area of the rectangle is 25the area of the rectangle is 36the area of the rectangle is 49the area of the rectangle is 64the area of the rectangle is 81the area of the rectangle is 100the area of the rectangle is 121the area of the rectangle is 144the area of the rectangle is 169the area of the rectangle is 196the area of the rectangle is 225the area of the rectangle is 256the area of the rectangle is 289the area of the rectangle is 324the area of the rectangle is 361the area of the rectangle is 400the area of the rectangle is 441the area of the rectangle is 484the area of the rectangle is 529the area of the rectangle is 576the area of the rectangle is 625the area of the rectangle is 676the area of the rectangle is 729the area of the rectangle is 784the area of the rectangle is 841the area of the rectangle is 900the area of the rectangle is 961the area of the rectangle is 1024You can't have a rectangle whose area is greater than a square meter

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:
57.86 ms | 403 KiB | 8 Q