3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['name' => 'Sony TV', 'price' => '600.00'], ['name' => 'LG TV', 'price' => '350.00'], ['name' => 'Samsung TV', 'price' => '425.00'], ]; $column = 'price'; usort($array, fn($a, $b) => $a[$column] <=> $b[$column]); var_export($array);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
157.27 ms | 2187 KiB | 12 Q