3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pastry = ['shortcrust' => 8, 'choux' => 4, 'filo' => 5]; $fillings = ['beef' => 3, 'cream' => 8, 'green onions' => 5]; array_multisort($fillings, $pastry); var_dump($pastry); var_dump($fillings);

preferences:
69.8 ms | 405 KiB | 5 Q