@ 2016-01-25T13:56:26Z <?php
$foo = array('BAR', 'BAT');
var_dump(array_map('strtolower', $foo));
var_dump(array_map(strtolower, $foo));
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 array(2) {
[0]=>
string(3) "bar"
[1]=>
string(3) "bat"
}
Fatal error: Uncaught Error: Undefined constant "strtolower" in /in/SIcmS:6
Stack trace:
#0 {main}
thrown in /in/SIcmS on line 6
Process exited with code 255 . Output for 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 array(2) {
[0]=>
string(3) "bar"
[1]=>
string(3) "bat"
}
Warning: Use of undefined constant strtolower - assumed 'strtolower' (this will throw an Error in a future version of PHP) in /in/SIcmS on line 6
array(2) {
[0]=>
string(3) "bar"
[1]=>
string(3) "bat"
}
Output for 5.5.0 - 5.5.38 , 5.6.0 - 5.6.40 , 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 array(2) {
[0]=>
string(3) "bar"
[1]=>
string(3) "bat"
}
Notice: Use of undefined constant strtolower - assumed 'strtolower' in /in/SIcmS on line 6
array(2) {
[0]=>
string(3) "bar"
[1]=>
string(3) "bat"
}
preferences:dark mode live preview
229.58 ms | 402 KiB | 330 Q