3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.1.30 - 8.1.32, 8.2.5 - 8.2.28, 8.3.5 - 8.3.19, 8.4.1 - 8.4.5
array(3) { ["Jane"]=> array(2) { [0]=> object(MyObject)#1 (2) { ["id"]=> int(1) ["name"]=> string(4) "Jane" } [1]=> object(MyObject)#4 (2) { ["id"]=> int(4) ["name"]=> string(4) "Jane" } } ["John"]=> array(1) { [0]=> object(MyObject)#2 (2) { ["id"]=> int(2) ["name"]=> string(4) "John" } } ["Jake"]=> array(1) { [0]=> object(MyObject)#3 (2) { ["id"]=> int(3) ["name"]=> string(4) "Jake" } } }

preferences:
55.47 ms | 412 KiB | 5 Q