3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(is_null());var_dump(is_null(null));var_dump(is_null(null, null));var_dump(is_null(null, null, null));
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: is_null() expects exactly 1 parameter, 0 given in /in/PLn7o on line 2 bool(false) bool(true) Warning: is_null() expects exactly 1 parameter, 2 given in /in/PLn7o on line 2 bool(false) Warning: is_null() expects exactly 1 parameter, 3 given in /in/PLn7o on line 2 bool(false)
Output for 4.3.2 - 5.2.17
Warning: is_null(): Only one argument expected in /in/PLn7o on line 2 bool(false) bool(true) Warning: is_null(): Only one argument expected in /in/PLn7o on line 2 bool(false) Warning: is_null(): Only one argument expected in /in/PLn7o on line 2 bool(false)
Output for 4.3.0 - 4.3.1
Warning: is_null() [http://www.php.net/function.is-null]: Only one argument expected in /in/PLn7o on line 2 bool(false) bool(true) Warning: is_null() [http://www.php.net/function.is-null]: Only one argument expected in /in/PLn7o on line 2 bool(false) Warning: is_null() [http://www.php.net/function.is-null]: Only one argument expected in /in/PLn7o on line 2 bool(false)