3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php// Insert database data here.$dbh = new PDO('sqlite:/tmp/database.db');$number = 1;if ($number === 1) { echo "Bulbasaur's cry is correct.\n";}$sth = $dbh->prepare('SELECT :number + 3');$sth->bindParam(':number', $number);$sth->execute();echo "Abby's is number {$sth->fetchColumn()}.\n";if ($number === 1) { echo "Bulbasaur's cry is still correct.\n";}
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected end of file in /in/oC80G on line 1
Process exited with code 255.
Output for 5.3.0 - 5.3.29
<?php// Insert database data here.$dbh = new PDO('sqlite:/tmp/database.db');$number = 1;if ($number === 1) { echo "Bulbasaur's cry is correct.\n";}$sth = $dbh->prepare('SELECT :number + 3');$sth->bindParam(':number', $number);$sth->execute();echo "Abby's is number {$sth->fetchColumn()}.\n";if ($number === 1) { echo "Bulbasaur's cry is still correct.\n";}