3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html> <body> <?php $t= "How are you doing"; $y= "I am doing very well today"; $greetings=array("bad", "good" ,"great"); echo $t; echo "<br>"; echo "Study PHP today and, $y"; echo "<br>"; echo "Very nice {$greetings[2]}"; echo "Very nice. $t {$greetings[3]}"; ?> </body> </html>
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
<!DOCTYPE html> <html> <body> How are you doing<br>Study PHP today and, I am doing very well today<br>Very nice great Notice: Undefined offset: 3 in /in/MUpvC on line 14 Very nice. How are you doing </body> </html>
Output for hhvm-3.12.0
<!DOCTYPE html> <html> <body> How are you doing<br>Study PHP today and, I am doing very well today<br>Very nice great Notice: Undefined index: 3 in /in/MUpvC on line 14 Very nice. How are you doing </body> </html>
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.2.17
<!DOCTYPE html> <html> <body> How are you doing<br>Study PHP today and, I am doing very well today<br>Very nice great Notice: Undefined offset: 3 in /in/MUpvC on line 14 Very nice. How are you doing </body> </html>