3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php global$b;$He=array_search("SQL",$b->operators);if($He!==false)unset($b->operators[$He]);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
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.0 - 3.12.0
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