3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aServiceIds = array("test's"); $aServiceIds = array_map(function($argument) { return $argument[0]; }, $aServiceIds); echo '<pre>'; print_r($aServiceIds); echo '</pre'>;
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.20
Parse error: syntax error, unexpected ';' in /in/5IZ45 on line 11
Process exited with code 255.

preferences:
177.53 ms | 1395 KiB | 56 Q