3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pinned = 1; $fullTextEnabled = null; $updateMode = 0; $attributes = [ 'pinned' => $pinned, 'fullTextEnabled' => $fullTextEnabled, 'updateMode' => $updateMode ]; $diff = array_filter($attributes, is_null); var_dump($diff);
based on ErGIh
Output for 7.2.0
Warning: Use of undefined constant is_null - assumed 'is_null' (this will throw an Error in a future version of PHP) in /in/k2M0h on line 11 array(1) { ["fullTextEnabled"]=> NULL }
Output for 5.4.0 - 7.1.10
Notice: Use of undefined constant is_null - assumed 'is_null' in /in/k2M0h on line 11 array(1) { ["fullTextEnabled"]=> NULL }
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/k2M0h on line 5
Process exited with code 255.