3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
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) "" } } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.93 ms | 403 KiB | 8 Q