3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $db = new PDO('sqlite::memory:'); $st = $db->query(" SELECT 'phpinfo()'"); $re = $st->fetchAll(PDO::FETCH_FUNC, 'assert'); var_dump($re);
based on keBfE
Output for 7.1.0 - 7.2.0
Warning: Cannot call assert() with string argument dynamically in /in/Nh1sn on line 5 array(1) { [0]=> bool(false) }
Output for 7.0.1 - 7.0.20
Warning: phpinfo() has been disabled for security reasons in /in/Nh1sn(5) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/Nh1sn on line 5 array(1) { [0]=> bool(false) }
Output for 5.4.0 - 7.0.0
Warning: phpinfo() has been disabled for security reasons in /in/Nh1sn(5) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/Nh1sn on line 5 array(1) { [0]=> NULL }