3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php global$b;$He=array_search("SQL",$b->operators);if($He!==false)unset($b->operators[$He]);
Output for 7.2.0
Notice: Trying to get property 'operators' of non-object in /in/hYChT on line 2 Warning: array_search() expects parameter 2 to be array, null given in /in/hYChT on line 2 Warning: Attempt to modify property 'operators' of non-object in /in/hYChT on line 2
Output for 5.3.0 - 5.6.30, 7.0.0 - 7.1.7
Notice: Trying to get property of non-object in /in/hYChT on line 2 Warning: array_search() expects parameter 2 to be array, null given in /in/hYChT on line 2 Warning: Attempt to modify property of non-object in /in/hYChT on line 2
Output for hhvm-3.10.1 - 3.17.3
Notice: Cannot access property on non-object in /in/hYChT on line 2 Warning: array_search() expects parameter 2 to be an array or collection in /in/hYChT on line 2
Output for 5.0.0 - 5.2.17
Notice: Trying to get property of non-object in /in/hYChT on line 2 Warning: array_search(): Wrong datatype for second argument in /in/hYChT on line 2
Output for 4.3.2 - 4.4.9
Warning: array_search(): Wrong datatype for second argument in /in/hYChT on line 2
Output for 4.3.0 - 4.3.1
Warning: array_search() [http://www.php.net/function.array-search]: Wrong datatype for second argument in /in/hYChT on line 2