3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = [11 => 'Test1', 22 => 'testq23']; $t1 = array_map('strtoupper', $t); var_dump($t1);
based on nK2YO
Output for 5.4.12 - 7.3.0rc4
array(2) { [11]=> string(5) "TEST1" [22]=> string(7) "TESTQ23" }
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/No8OK on line 3
Process exited with code 255.