3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface solr_json_build { function to_json(); } class ror_service_recommend implements solr_json_build { //推荐页按产品分类和预订城市进行搜索 public $ids; public $bookCityCode; public $terminalType; public $queryFields; // 过滤价格为0线路 public $priceLimit = true; public function __construct(){} public function to_json() { $json = array(); foreach (get_class_vars(__CLASS__) as $field => $value) { var_dump($this->{$field}); $this->{$field} && $json[$field] = $this->{$field}; } return json_encode($json); } } $o = new ror_service_recommend(); print_r($o);
Output for git.master, git.master_jit, rfc.property-hooks
ror_service_recommend Object ( [ids] => [bookCityCode] => [terminalType] => [queryFields] => [priceLimit] => 1 )

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:
33.45 ms | 401 KiB | 8 Q