3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrTags = [ 'mango' => 2, 'orange' => 4, 'apple' => 2, 'banana' => 3, 'peach' => 3, 'strawberry' => 3, 'blueberry' => 3, 'raspberry' => 3, 'lychee' => 2, 'fig' => 1, 'guava' => 1, 'grape' => 3, 'watermelon' => 2, 'kiwi' => 5, 'pear' => 3 ]; ksort($arrTags); arsort($arrTags); var_export($arrTags);

preferences:
24.31 ms | 406 KiB | 5 Q