3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i <= 10; $i++) { $result = $i * $i; echo "($i)x($i)=($result)\n"; }
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.21, 7.4.0 - 7.4.9, 8.0.0alpha1 - beta1
(1)x(1)=(1) (2)x(2)=(4) (3)x(3)=(9) (4)x(4)=(16) (5)x(5)=(25) (6)x(6)=(36) (7)x(7)=(49) (8)x(8)=(64) (9)x(9)=(81) (10)x(10)=(100)