3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php <?php $db = new PDO("mysql:"); $s = $db->prepare('SELECT 3'); $s->execute(); $s->bindColumn(1, $test); $s->fetch(PDO::FETCH_BOUND); var_dump($test); # returns NULL instead of 3
Output for 5.3.0 - 5.4.31
Parse error: syntax error, unexpected '<' in /in/qlB9n on line 2
Process exited with code 255.