3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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";
based on rOA2Z
Output for 4.3.0 - 7.2.6
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