3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aServiceIds = array("test's"); $aServiceIds = array_map(function($argument) { return str_replace($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/SMXRM on line 11
Process exited with code 255.

preferences:
178.19 ms | 1387 KiB | 56 Q