3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php list($row1, $row2) = array_chunk($_productCollection, 4);
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: _productCollection in /in/uSfbp on line 2 Warning: array_chunk() expects parameter 1 to be array, null given in /in/uSfbp on line 2
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: _productCollection in /in/uSfbp on line 2 Warning: Invalid operand type was used: array_chunk expects an array or collection as argument 1 in /in/uSfbp on line 2
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: _productCollection in /in/uSfbp on line 2 Warning: array_chunk() expects parameter 1 to be array, null given in /in/uSfbp on line 2