3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.1.30 - 8.1.32, 8.2.22 - 8.2.28, 8.3.5 - 8.3.19, 8.4.1 - 8.4.5
Method: built-in Array ( [John] => User Object ( [transactions:User:private] => Array ( [0] => Transaction Object ( [amount] => 100 [type] => credit ) [1] => Transaction Object ( [amount] => 500 [type] => credit ) [2] => Transaction Object ( [amount] => 250 [type] => credit ) ) [name] => John ) ) Method: op-overload Array ( [John] => User Object ( [transactions:User:private] => Array ( ) [name] => John ) )

preferences:
74.45 ms | 414 KiB | 5 Q