3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = array('BAR', 'BAT'); var_dump(array_map('strtolower', $foo)); var_dump(array_map(strtolower, $foo));
Output for 7.2.0
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.3.22 - 7.1.10
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" }