3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fruits = array("d" =>"lemon", "a" =>"orange", "b" =>"banana", "c" =>"apple"); // $fruitArrayObject = new ArrayObject($fruits); // $fruitArrayObject->asort(); // foreach ($fruitArrayObject as $key => $val) { // echo "$key = $val\n"; // } print_r(asort($fruits));
based on f5ccS
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0alpha1
1