3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $station = (object) array( 'id' => '', 'name' => '', 'brandId' => 0, 'selfReport' => 0, 'checked' => 0, 'mts' => 1, 'streetAddress' => '', 'zipCode' => 0, 'cityName' => '', 'countryCode' => 'DE', 'phone' => '', 'coordinates' => (object) array( 'lat' => '', 'lng' => '', ), 'openHours' => '', 'fuelOrder' => (object) array(1,2,3,4), 'fuelTypes' => (object) array( (object) array( 'id' => 1, 'name' => '', ), (object) array( 'id' => 2, 'name' => '', ) ), ); var_dump($station);
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
object(stdClass)#6 (15) { ["id"]=> string(0) "" ["name"]=> string(0) "" ["brandId"]=> int(0) ["selfReport"]=> int(0) ["checked"]=> int(0) ["mts"]=> int(1) ["streetAddress"]=> string(0) "" ["zipCode"]=> int(0) ["cityName"]=> string(0) "" ["countryCode"]=> string(2) "DE" ["phone"]=> string(0) "" ["coordinates"]=> object(stdClass)#1 (2) { ["lat"]=> string(0) "" ["lng"]=> string(0) "" } ["openHours"]=> string(0) "" ["fuelOrder"]=> object(stdClass)#2 (4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) } ["fuelTypes"]=> object(stdClass)#5 (2) { [0]=> object(stdClass)#3 (2) { ["id"]=> int(1) ["name"]=> string(0) "" } [1]=> object(stdClass)#4 (2) { ["id"]=> int(2) ["name"]=> string(0) "" } } }
Output for 4.3.0 - 4.4.9
object(stdClass)(15) { ["id"]=> string(0) "" ["name"]=> string(0) "" ["brandId"]=> int(0) ["selfReport"]=> int(0) ["checked"]=> int(0) ["mts"]=> int(1) ["streetAddress"]=> string(0) "" ["zipCode"]=> int(0) ["cityName"]=> string(0) "" ["countryCode"]=> string(2) "DE" ["phone"]=> string(0) "" ["coordinates"]=> object(stdClass)(2) { ["lat"]=> string(0) "" ["lng"]=> string(0) "" } ["openHours"]=> string(0) "" ["fuelOrder"]=> object(stdClass)(4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) } ["fuelTypes"]=> object(stdClass)(2) { [0]=> object(stdClass)(2) { ["id"]=> int(1) ["name"]=> string(0) "" } [1]=> object(stdClass)(2) { ["id"]=> int(2) ["name"]=> string(0) "" } } }