3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Process{ protected $valuationEstimatesArray; function __construct(){ $this->setValuationEstiamtesArray(); } function setValuationEstiamtesArray(){ $this->valuationEstimatesArray[1]['minPropertyValue'] = 100; $this->valuationEstimatesArray[1]['maxPropertyValue'] = 200; $this->valuationEstimatesArray[1]['valuationEstimate'] = 50; $this->valuationEstimatesArray[2]['minPropertyValue'] = 200; $this->valuationEstimatesArray[2]['maxPropertyValue'] = 300; $this->valuationEstimatesArray[2]['valuationEstimate'] = 100; $this->valuationEstimatesArray[3]['minPropertyValue'] = 300; $this->valuationEstimatesArray[3]['maxPropertyValue'] = 400; $this->valuationEstimatesArray[3]['valuationEstimate'] = 200; } function outputValues($search){ foreach($this->valuationEstimatesArray as $id=>$array){ if((($array['minPropertyValue'] - $search)< 0) AND (($array['maxPropertyValue'] - $search) > 0)){ echo $array['valuationEstimate']; } } } } $proc = new Process; $proc->outputValues(150);

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.0060.01216.88
8.3.50.0120.00322.09
8.3.40.0110.00418.97
8.3.30.0110.00319.08
8.3.20.0080.00020.29
8.3.10.0030.00623.65
8.3.00.0060.00319.18
8.2.180.0070.01016.75
8.2.170.0070.00722.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.26
8.2.110.0070.00322.18
8.2.100.0050.00520.48
8.2.90.0000.00819.11
8.2.80.0040.00417.97
8.2.70.0070.00317.63
8.2.60.0050.00518.03
8.2.50.0030.00618.07
8.2.40.0030.00620.01
8.2.30.0040.00418.30
8.2.20.0000.00717.85
8.2.10.0040.00418.19
8.2.00.0000.00919.52
8.1.280.0110.00425.92
8.1.270.0120.00322.14
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00023.85
8.1.230.0090.00319.23
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0040.00417.36
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0030.00618.57
8.1.160.0000.00722.01
8.1.150.0040.00418.54
8.1.140.0000.00717.54
8.1.130.0030.00317.77
8.1.120.0030.00317.55
8.1.110.0040.00417.45
8.1.100.0000.00717.48
8.1.90.0030.00317.48
8.1.80.0000.00717.43
8.1.70.0030.00317.34
8.1.60.0030.00617.59
8.1.50.0050.00317.54
8.1.40.0000.00917.63
8.1.30.0080.00017.58
8.1.20.0000.00917.52
8.1.10.0000.00717.59
8.1.00.0000.00817.54
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.40
8.0.270.0080.00017.36
8.0.260.0040.00417.29
8.0.250.0030.00316.90
8.0.240.0000.00717.00
8.0.230.0020.00516.89
8.0.220.0030.00316.94
8.0.210.0000.00716.86
8.0.200.0030.00316.88
8.0.190.0000.00716.95
8.0.180.0040.00416.82
8.0.170.0040.00416.93
8.0.160.0000.00716.81
8.0.150.0000.00716.97
8.0.140.0060.00516.94
8.0.130.0030.00313.34
8.0.120.0040.00416.80
8.0.110.0070.00016.89
8.0.100.0000.00716.95
8.0.90.0000.00716.78
8.0.80.0100.01016.89
8.0.70.0040.00416.93
8.0.60.0070.00016.89
8.0.50.0070.00016.73
8.0.30.0050.01517.06
8.0.20.0130.00717.40
8.0.10.0040.00417.08
8.0.00.0110.01116.88
7.4.330.0000.00515.03
7.4.320.0050.00316.46
7.4.300.0000.00716.53
7.4.290.0070.00016.63
7.4.280.0050.00316.64
7.4.270.0070.00016.56
7.4.260.0000.00716.63
7.4.250.0000.00716.48
7.4.240.0010.00616.50
7.4.230.0000.00716.48
7.4.220.0060.01316.66
7.4.210.0140.00016.68
7.4.200.0030.00316.42
7.4.160.0110.00416.63
7.4.150.0100.00717.40
7.4.140.0070.01217.86
7.4.130.0120.00616.62
7.4.120.0050.01516.44
7.4.110.0060.01216.50
7.4.100.0090.00916.41
7.4.90.0120.00516.56
7.4.80.0110.00619.39
7.4.70.0100.00616.77
7.4.60.0100.01316.54
7.4.50.0000.00416.52
7.4.40.0100.00516.59
7.4.30.0180.00616.54
7.4.00.0030.01014.76
7.3.330.0050.00013.43
7.3.320.0020.00213.22
7.3.310.0030.00616.43
7.3.300.0000.00716.29
7.3.290.0060.00716.39
7.3.280.0070.01216.40
7.3.270.0030.01417.40
7.3.260.0310.01916.45
7.3.250.0120.00716.40
7.3.240.0130.00716.71
7.3.230.0030.01316.46
7.3.210.0080.00816.67
7.3.200.0030.01719.39
7.3.190.0130.00416.55
7.3.180.0120.00316.37
7.3.170.0170.00416.50
7.3.160.0120.00416.43
7.3.120.0070.00414.73
7.3.10.0030.00916.74
7.3.00.0030.01316.45
7.2.330.0180.00016.53
7.2.320.0100.01416.57
7.2.310.0090.00916.59
7.2.300.0070.01016.82
7.2.290.0060.01316.82
7.2.130.0070.00716.94
7.2.120.0100.00317.07
7.2.110.0030.01016.87
7.2.100.0060.00617.09
7.2.90.0060.00617.00
7.2.80.0030.00617.09
7.2.70.0030.00717.05
7.2.60.0040.00817.02
7.2.50.0000.01216.94
7.2.40.0040.01117.02
7.2.30.0030.00716.80
7.2.20.0040.00816.99
7.2.10.0060.00616.74
7.2.00.0030.00918.29
7.1.250.0110.00415.70
7.1.100.0140.00018.09
7.1.70.0000.00817.23
7.1.60.0070.01719.70
7.1.50.0070.01417.09
7.1.00.0070.07322.37
7.0.200.0020.00516.82
7.0.140.0070.07021.92
7.0.60.0100.04719.88
7.0.50.0030.04017.79
7.0.40.0070.06319.96
7.0.30.0230.04020.08
7.0.20.0270.04720.15
7.0.10.0030.05320.14
7.0.00.0070.04720.22
5.6.280.0070.06721.08
5.6.210.0070.07320.51
5.6.200.0070.07318.29
5.6.190.0130.06020.57
5.6.180.0170.03720.47
5.6.170.0200.06320.71
5.6.160.0070.06020.70
5.6.150.0030.04318.19
5.6.140.0170.07718.21
5.6.130.0070.03718.21
5.6.120.0130.04321.14
5.6.110.0030.08321.11
5.6.100.0100.07021.00
5.6.90.0100.07320.97
5.6.80.0100.03720.35
5.5.350.4030.04020.29
5.5.340.0130.06318.07
5.5.330.0070.04720.19
5.5.320.0030.05320.30
5.5.310.0300.08020.34
5.5.300.0070.04717.97
5.5.290.0030.07017.95
5.5.280.0030.05320.95
5.5.270.0030.08320.80
5.5.260.0030.04320.77
5.5.250.0100.08320.76
5.5.240.0230.07320.13
5.4.450.0070.04719.53
5.4.440.0070.04019.55
5.4.430.0070.07719.52
5.4.420.0030.04719.19
5.4.410.0100.07719.52
5.4.400.0030.04319.25
5.4.390.0100.06718.84
5.4.380.0100.06319.16
5.4.370.0030.05019.24
5.4.360.0100.03718.95
5.4.350.0100.03019.06
5.4.340.0030.04019.00
5.4.320.0070.03719.00
5.4.310.0070.07319.09
5.4.300.0100.06719.23
5.4.290.0070.05318.95
5.4.280.0000.07319.09
5.4.270.0070.07719.23
5.4.260.0100.03718.98
5.4.250.0000.06718.98
5.4.240.0070.05319.11
5.4.230.0070.03719.05
5.4.220.0000.04319.23
5.4.210.0030.03719.21
5.4.200.0100.03319.21
5.4.190.0030.07019.23
5.4.180.0000.06019.21
5.4.170.0030.05019.22
5.4.160.0170.02318.97
5.4.150.0070.03319.20
5.4.140.0070.07716.47
5.4.130.0030.04316.34
5.4.120.0070.04316.35
5.4.110.0000.04016.40
5.4.100.0030.06016.58
5.4.90.0000.05716.53
5.4.80.0000.06716.32
5.4.70.0030.07016.55
5.4.60.0030.05716.53
5.4.50.0070.03716.51
5.4.40.0000.07316.55
5.4.30.0100.06316.55
5.4.20.0070.07316.42
5.4.10.0030.04016.33
5.4.00.0030.07015.74
5.3.290.0070.06014.90
5.3.280.0070.07314.62
5.3.270.0030.08014.62
5.3.260.0030.05014.52
5.3.250.0000.07714.60
5.3.240.0000.06714.66
5.3.230.0170.05314.52
5.3.220.0030.05014.48
5.3.210.0000.08014.58
5.3.200.0030.06314.55
5.3.190.0100.06714.59
5.3.180.0030.04314.58
5.3.170.0100.07014.55
5.3.160.0070.07014.65
5.3.150.0070.06314.50
5.3.140.0070.03314.57
5.3.130.0000.04714.63
5.3.120.0100.03714.61
5.3.110.0000.04314.45
5.3.100.0070.05314.12
5.3.90.0100.04014.04
5.3.80.0070.06314.14
5.3.70.0000.05013.95
5.3.60.0030.04314.16
5.3.50.0030.03313.86
5.3.40.0000.03714.01
5.3.30.0000.03713.94
5.3.20.0000.06013.86
5.3.10.0100.06713.86
5.3.00.0070.03313.86
5.2.170.0030.05313.86
5.2.160.0100.04013.86
5.2.150.0030.05313.86
5.2.140.0030.06313.86
5.2.130.0100.03713.86
5.2.120.0000.06013.86
5.2.110.0070.02713.86
5.2.100.0030.02713.86
5.2.90.0000.06313.86
5.2.80.0030.03013.86
5.2.70.0070.03313.86
5.2.60.0070.03713.86
5.2.50.0030.04313.86
5.2.40.0000.03713.86
5.2.30.0030.03313.86
5.2.20.0030.03313.86
5.2.10.0030.05713.86
5.2.00.0030.03013.86
5.1.60.0000.05713.86
5.1.50.0000.03013.86
5.1.40.0000.03313.86
5.1.30.0030.02713.86
5.1.20.0030.02713.86
5.1.10.0000.03013.86
5.1.00.0070.02713.86
5.0.50.0030.02313.86
5.0.40.0070.04013.86
5.0.30.0030.03313.86
5.0.20.0070.02013.86
5.0.10.0000.03713.86
5.0.00.0000.03313.86
4.4.90.0000.01713.86
4.4.80.0000.01713.86
4.4.70.0000.01713.86
4.4.60.0000.03013.86
4.4.50.0030.01713.86
4.4.40.0000.05713.86
4.4.30.0000.02713.86
4.4.20.0000.02713.86
4.4.10.0000.03313.86
4.4.00.0000.04013.86
4.3.110.0000.02013.86
4.3.100.0000.01713.86
4.3.90.0000.01713.86
4.3.80.0000.05313.86
4.3.70.0030.01713.86
4.3.60.0000.03013.86
4.3.50.0030.03013.86
4.3.40.0000.04713.86
4.3.30.0000.02013.86
4.3.20.0000.02313.86
4.3.10.0000.02713.86
4.3.00.0030.03013.86

preferences:
42.05 ms | 400 KiB | 5 Q