3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array_filter(['one', 'two'], function($value) { return $value === 'two'; }); var_export($array[0]);
based on XquGc
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.8
Notice: Undefined offset: 0 in /in/1grhk on line 4 NULL
Output for hhvm-3.22.0
Notice: Undefined index: 0 in /in/1grhk on line -1 NULL
Output for hhvm-3.18.5 - 3.21.3
Notice: Undefined index: 0 in /in/1grhk on line 4 NULL