3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array ('1' => array( 'id' => 225, 'user_id' => 1, 'name' => 'Blue Quilted Leather Jacket by Minusey - $499' ), '2' => array( 'id' => 222, 'user_id' => 1, 'name' => 'Darling New Bathtub by Duravit - $6300' ), '3' => array( 'id' => 222, 'user_id' => 1, 'name' => 'Darling New Bathtub by Duravit - $6300' ) ); print_r((object)$array);
based on 7NBGh
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
stdClass Object ( [1] => Array ( [id] => 225 [user_id] => 1 [name] => Blue Quilted Leather Jacket by Minusey - $499 ) [2] => Array ( [id] => 222 [user_id] => 1 [name] => Darling New Bathtub by Duravit - $6300 ) [3] => Array ( [id] => 222 [user_id] => 1 [name] => Darling New Bathtub by Duravit - $6300 ) )
Output for hhvm-3.10.0

Process exited with code 153.