3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('sws', 'dsds', 'dsdfs', 'fdfdf'); $b = array_values(ksort($a)); var_dump($b);
Output for 5.3.0 - 7.1.0
Warning: array_values() expects parameter 1 to be array, boolean given in /in/WEDBD on line 4 NULL
Output for 5.2.3 - 5.2.17
Warning: array_values(): The argument should be an array in /in/WEDBD on line 4 NULL
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: array_values() [<a href='function.array-values'>function.array-values</a>]: The argument should be an array in <b>/in/WEDBD</b> on line <b>4</b><br /> NULL
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: array_values(): The argument should be an array in <b>/in/WEDBD</b> on line <b>4</b><br /> NULL
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: array_values() [<a href='http://www.php.net/function.array-values'>function.array-values</a>]: The argument should be an array in <b>/in/WEDBD</b> on line <b>4</b><br /> NULL