3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { $a = log(1, -1); } catch (Throwable $e) { echo "Error"; } var_dump($a);
based on Y8BaG
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Warning: log(): base must be greater than 0 in /in/r8h9g on line 4 bool(false)
Output for hhvm-3.18.4 - 3.21.0
float(0)