3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sites = array( array('name' => 'test'), array('name' => 'test2') ); usort($sites, function ($site1, $site2) { return strcasecmp($site1["name"], $site2["name"]); }); echo 'test'
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/AITAo on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/AITAo on line 11
Process exited with code 255.

preferences:
176.17 ms | 1399 KiB | 61 Q