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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
<!DOCTYPE html> <html> <body> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> </body> </html
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.0.3
<!DOCTYPE html> <html> <body> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> Notice: Undefined variable: x in /in/Mp8vf on line 9 The number is: <br> </body> </html