3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array( "name" => "Delta", "other1" => "other data...", "other2" => "other data...", ), array( "name" => "Beta", "other1" => "other data...", "other2" => "other data...", ), array( "name" => "Alpha", "other1" => "other data...", "other2" => "other data...", ), ); usort($array, function($a, $b) { return strcmp($a['name'], $b['name']); }); print_r($array);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
173.17 ms | 3517 KiB | 13 Q