3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.31
Parse error: syntax error, unexpected '<' in /in/qlB9n on line 2
Process exited with code 255.

preferences:
180.16 ms | 1395 KiB | 68 Q