3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 0; $i < 10; $i++) { $exp = (end($t) < (5 - $i)); var_dump($exp); }
Output for 5.3.0 - 5.6.21, 7.0.0 - 7.1.0
Warning: end() expects parameter 1 to be array, null given in /in/9OiSa on line 4 bool(true) Warning: end() expects parameter 1 to be array, null given in /in/9OiSa on line 4 bool(true) Warning: end() expects parameter 1 to be array, null given in /in/9OiSa on line 4 bool(true) Warning: end() expects parameter 1 to be array, null given in /in/9OiSa on line 4 bool(true) Warning: end() expects parameter 1 to be array, null given in /in/9OiSa on line 4 bool(true) Warning: end() expects parameter 1 to be array, null given in /in/9OiSa on line 4 bool(false) Warning: end() expects parameter 1 to be array, null given in /in/9OiSa on line 4 bool(true) Warning: end() expects parameter 1 to be array, null given in /in/9OiSa on line 4 bool(true) Warning: end() expects parameter 1 to be array, null given in /in/9OiSa on line 4 bool(true) Warning: end() expects parameter 1 to be array, null given in /in/9OiSa on line 4 bool(true)
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: expecting an array in /in/9OiSa on line 4 bool(true) Warning: Invalid operand type was used: expecting an array in /in/9OiSa on line 4 bool(true) Warning: Invalid operand type was used: expecting an array in /in/9OiSa on line 4 bool(true) Warning: Invalid operand type was used: expecting an array in /in/9OiSa on line 4 bool(true) Warning: Invalid operand type was used: expecting an array in /in/9OiSa on line 4 bool(true) Warning: Invalid operand type was used: expecting an array in /in/9OiSa on line 4 bool(false) Warning: Invalid operand type was used: expecting an array in /in/9OiSa on line 4 bool(true) Warning: Invalid operand type was used: expecting an array in /in/9OiSa on line 4 bool(true) Warning: Invalid operand type was used: expecting an array in /in/9OiSa on line 4 bool(true) Warning: Invalid operand type was used: expecting an array in /in/9OiSa on line 4 bool(true)
Output for 4.3.2 - 5.2.17
Warning: end(): Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end(): Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end(): Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end(): Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end(): Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end(): Passed variable is not an array or object in /in/9OiSa on line 4 bool(false) Warning: end(): Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end(): Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end(): Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end(): Passed variable is not an array or object in /in/9OiSa on line 4 bool(true)
Output for 4.3.0 - 4.3.1
Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/9OiSa on line 4 bool(false) Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/9OiSa on line 4 bool(true) Warning: end() [http://www.php.net/function.end]: Passed variable is not an array or object in /in/9OiSa on line 4 bool(true)