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_jsonnnn() { $json = array(); foreach (get_class_vars(__CLASS__) as $field => $value) { $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
Fatal error: Class ror_service_recommend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (solr_json_build::to_json) in /in/3DAsR on line 8
Process exited with code 255.

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