3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html> <body> <?php $t=5; do { echo "The number is: $x <br>"; $t++; } while ($t<=10); ?> </body> </html>
Output for 5.0.4 - 7.1.0
<!DOCTYPE html> <html> <body> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> </body> </html>
Output for 4.3.0 - 5.0.3
<!DOCTYPE html> <html> <body> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> Notice: Undefined variable: x in /in/SJ1Xm on line 9 The number is: <br> </body> </html>