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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0100.01016.50
8.3.50.0160.00322.05
8.3.40.0110.00418.68
8.3.30.0090.00618.59
8.3.20.0000.00720.20
8.3.10.0040.00423.56
8.3.00.0050.00319.66
8.2.180.0040.01216.50
8.2.170.0120.00322.96
8.2.160.0100.00320.29
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00919.24
8.2.120.0050.00326.35
8.2.110.0060.00322.25
8.2.100.0040.00718.04
8.2.90.0040.00419.05
8.2.80.0080.00018.04
8.2.70.0070.00317.38
8.2.60.0000.00917.80
8.2.50.0000.00818.07
8.2.40.0040.00422.12
8.2.30.0040.00420.70
8.2.20.0050.00217.63
8.2.10.0040.00418.14
8.2.00.0000.00718.04
8.1.280.0090.00625.92
8.1.270.0030.00620.31
8.1.260.0050.00328.09
8.1.250.0050.00328.09
8.1.240.0030.00622.53
8.1.230.0030.00919.14
8.1.220.0000.00817.77
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0000.00918.54
8.1.160.0000.00720.70
8.1.150.0000.00818.80
8.1.140.0000.00919.65
8.1.130.0000.00817.64
8.1.120.0000.00717.51
8.1.110.0040.00417.37
8.1.100.0040.00417.47
8.1.90.0000.00717.37
8.1.80.0040.00417.52
8.1.70.0030.00317.43
8.1.60.0000.00717.68
8.1.50.0040.00417.55
8.1.40.0050.00417.57
8.1.30.0050.00317.61
8.1.20.0040.00417.68
8.1.10.0040.00417.60
8.1.00.0030.00617.33
8.0.300.0000.00818.77
8.0.290.0090.00016.75
8.0.280.0030.00318.36
8.0.270.0040.00417.29
8.0.260.0090.00017.34
8.0.250.0030.00317.00
8.0.240.0070.00016.98
8.0.230.0000.00716.89
8.0.220.0040.00416.79
8.0.210.0050.00216.85
8.0.200.0000.00616.94
8.0.190.0000.00816.99
8.0.180.0070.00016.93
8.0.170.0000.00817.00
8.0.160.0040.00416.99
8.0.150.0000.00816.82
8.0.140.0070.00316.78
8.0.130.0050.00013.28
8.0.120.0000.00816.77
8.0.110.0040.00416.76
8.0.100.0070.00016.95
8.0.90.0060.00316.87
8.0.80.0040.01116.89
8.0.70.0040.00416.79
8.0.60.0050.00316.77
8.0.50.0000.00816.92
8.0.30.0150.00516.92
8.0.20.0110.00817.40
8.0.10.0050.00216.95
8.0.00.0120.00616.81
7.4.330.0000.00516.83
7.4.320.0040.00416.43
7.4.300.0000.00616.47
7.4.290.0000.00716.53
7.4.280.0040.00416.47
7.4.270.0030.00316.54
7.4.260.0040.00416.56
7.4.250.0060.00316.35
7.4.240.0030.00516.58
7.4.230.0030.00316.37
7.4.220.0120.00616.48
7.4.210.0090.00616.58
7.4.200.0000.00816.52
7.4.160.0090.00616.68
7.4.150.0070.01117.40
7.4.140.0130.01017.86
7.4.130.0060.01316.50
7.4.120.0100.00816.39
7.4.110.0140.00316.36
7.4.100.0030.01416.52
7.4.90.0070.01016.50
7.4.80.0130.00319.39
7.4.70.0140.00416.53
7.4.60.0120.00316.59
7.4.50.0060.00616.50
7.4.40.0070.01016.39
7.4.30.0070.01316.46
7.4.00.0090.00614.93
7.3.330.0000.00613.19
7.3.320.0060.00013.16
7.3.310.0000.00716.35
7.3.300.0070.00016.24
7.3.290.0070.00016.23
7.3.280.0080.00916.25
7.3.270.0100.00717.40
7.3.260.0090.00916.49
7.3.250.0130.00516.39
7.3.240.0090.01016.32
7.3.230.0050.01116.47
7.3.210.0160.00016.42
7.3.200.0130.00716.09
7.3.190.0160.00016.46
7.3.180.0000.01616.34
7.3.170.0150.00616.27
7.3.160.0100.00516.31
7.2.330.0070.01016.57
7.2.320.0080.00816.57
7.2.310.0110.00616.55
7.2.300.0070.01016.73
7.2.290.0140.00416.70
7.2.00.0040.00719.47
7.1.100.0060.00618.26
7.1.70.0000.00717.09
7.1.60.0100.01419.52
7.1.50.0070.01316.74
7.1.00.0030.07722.40
7.0.200.0030.00316.60
7.0.90.0070.05020.00
7.0.80.0200.07020.00
7.0.70.0570.07319.88
7.0.60.0100.08019.93
7.0.50.0530.05720.27
7.0.40.0070.04720.05
7.0.30.0130.07020.14
7.0.20.0130.08019.91
7.0.10.0100.04720.18
7.0.00.0070.07320.14
5.6.280.0000.07321.12
5.6.230.0130.08020.51
5.6.220.0000.08320.63
5.6.210.0070.08720.65
5.6.200.0070.07320.96
5.6.190.0130.06320.96
5.6.180.0070.04720.89
5.6.170.0070.04721.03
5.6.160.0070.07721.02
5.6.150.0070.07321.08
5.6.140.0030.06321.06
5.6.130.0100.04321.04
5.6.120.0070.08020.96
5.6.110.0030.04720.95
5.6.100.0100.03321.07
5.6.90.0070.04721.03
5.6.80.0170.07020.41
5.6.70.0070.08320.34
5.6.60.0070.05320.39
5.6.50.0130.06020.41
5.6.40.0100.07720.45
5.6.30.0030.08020.37
5.6.20.0100.05320.44
5.6.10.0100.07720.39
5.6.00.0070.05320.48
5.5.370.0170.06020.46
5.5.360.0170.06320.36
5.5.350.0030.05720.45
5.5.340.0170.04320.90
5.5.330.0030.04320.93
5.5.320.0100.05320.87
5.5.310.0100.04720.76
5.5.300.0070.05320.82
5.5.290.0070.06720.81
5.5.280.0000.05020.81
5.5.270.0170.07020.90
5.5.260.0070.07320.86
5.5.250.0030.08020.71
5.5.240.0100.07320.16
5.5.230.0070.04320.12
5.5.220.0100.07720.30
5.5.210.0030.07020.30
5.5.200.0200.06720.25
5.5.190.0070.08020.25
5.5.180.0030.07720.21
5.5.160.0200.06720.16
5.5.150.0030.07720.15
5.5.140.0030.04719.99
5.5.130.0100.04320.25
5.5.120.0100.08020.19
5.5.110.0130.05720.11
5.5.100.0100.08020.09
5.5.90.0070.08320.05
5.5.80.0130.05020.07
5.5.70.0100.05720.01
5.5.60.0070.06320.06
5.5.50.0070.04020.12
5.5.40.0000.08020.04
5.5.30.0030.04720.09
5.5.20.0070.04719.97
5.5.10.0030.04020.00
5.5.00.0030.04020.04

preferences:
70.13 ms | 401 KiB | 5 Q