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' => array( 'lat' => '', 'lng' => '', ), 'openHours' => '', 'fuelOrder' => array(1,2,3,4), 'fuelTypes' => array( array( 'id' => 1, 'name' => '', ), array( 'id' => 2, 'name' => '', ) ), ); var_dump($station);
Output for 5.0.0 - 7.1.0
object(stdClass)#1 (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"]=> array(2) { ["lat"]=> string(0) "" ["lng"]=> string(0) "" } ["openHours"]=> string(0) "" ["fuelOrder"]=> array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) } ["fuelTypes"]=> array(2) { [0]=> array(2) { ["id"]=> int(1) ["name"]=> string(0) "" } [1]=> array(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"]=> array(2) { ["lat"]=> string(0) "" ["lng"]=> string(0) "" } ["openHours"]=> string(0) "" ["fuelOrder"]=> array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) } ["fuelTypes"]=> array(2) { [0]=> array(2) { ["id"]=> int(1) ["name"]=> string(0) "" } [1]=> array(2) { ["id"]=> int(2) ["name"]=> string(0) "" } } }