3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php array_walk(array_filter($checkboxes, function($checkbox) use ($shapeCheckboxIds) { /** @var NodeElement $checkbox */ return in_array($this->findClosestElement($checkbox, 'input')->getAttribute('id'), $shapeCheckboxIds); }), function($checkbox) { /** @var NodeElement $checkbox */ $checkbox->getParent()->click(); });
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: checkboxes in /in/kuCnD on line 3 Notice: Undefined variable: shapeCheckboxIds in /in/kuCnD on line 3 Warning: array_filter() expects parameter 1 to be array, null given in /in/kuCnD on line 6 Notice: Only variables should be passed by reference in /in/kuCnD on line 6 Warning: array_walk() expects parameter 1 to be array, null given in /in/kuCnD on line 9
Output for 5.3.0 - 5.6.28
Notice: Undefined variable: checkboxes in /in/kuCnD on line 3 Notice: Undefined variable: shapeCheckboxIds in /in/kuCnD on line 3 Warning: array_filter() expects parameter 1 to be array, null given in /in/kuCnD on line 6 Strict Standards: Only variables should be passed by reference in /in/kuCnD on line 6 Warning: array_walk() expects parameter 1 to be array, null given in /in/kuCnD on line 9
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/kuCnD on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/kuCnD on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/kuCnD on line 3
Process exited with code 255.