3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = false; $b = FALSE; var_dump($a, $b); constant('FALSE', true); var_dump($a, $b);
Output for 5.6.30, hhvm-3.15.4 - 3.21.3, 7.0.0 - 7.2.11
bool(false) bool(false) Warning: constant() expects exactly 1 parameter, 2 given in /in/PXa5a on line 8 bool(false) bool(false)
Output for hhvm-3.22.0
bool(false) bool(false) Warning: constant() expects exactly 1 parameter, 2 given in /in/PXa5a on line -1 bool(false) bool(false)