3v4l.org

run code in 300+ PHP versions simultaneously
<?php class appendiceHelper { public $document; public $documentDealer; public $documentDate; public $Luglio2015; public $Ottobre2015; public $special; public function __construct($dealer,$date) { $this->documentDealer = $dealer; $this->documentDate = new DateTime($date); $this->document = "pdf/appendice_EM.pdf"; $this->special = 0; $this->IsSpecial(); $this->Luglio2015 = new DateTime(); $this->Luglio2015->setDate(2015, 7, 1); $this->Luglio2015->setTime(00, 01); $this->Ottobre2015 = new DateTime(); $this->Ottobre2015->setDate(2015, 10, 1); $this->Ottobre2015->setTime(00, 01); } private function IsSpecial() { //Dealer Stracciari - Authos if ($this->documentDealer == 882) $this->special = 1; if ($this->documentDealer == 1821) $this->special = 1; if ($this->documentDealer == 2633) $this->special = 1; if ($this->documentDealer == 3194) $this->special = 1; if ($this->documentDealer == 3206) $this->special = 1; if ($this->documentDealer == 3210) $this->special = 1; if ($this->documentDealer == 3218) $this->special = 1; if ($this->documentDealer == 3223) $this->special = 1; } public function getDocument() { $this->document = "pdf/app_cert_4.pdf"; $intervalLuglio2015 = $this->Luglio2015->diff($this->documentDate)->invert; $intervalOttobre2015 = $this->Ottobre2015->diff($this->documentDate)->invert; if($intervalOttobre2015 == 1) $this->document = "pdf/app_cert_2.pdf"; if($intervalLuglio2015 == 1) $this->document = "pdf/app_cert_1.pdf"; if($this->special == 1) { $this->document = "pdf/app_cert_5_special.pdf"; if($intervalOttobre2015 == 1) $this->document = "pdf/app_cert_3_special.pdf"; if($intervalLuglio2015 == 1) $this->document = "pdf/app_cert_1.pdf"; } return $this->document; } } $date = new DateTime(); $test = new appendiceHelper(1, $date); ?>

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.0120.00317.00
8.3.50.0130.00316.64
8.3.40.0110.00419.04
8.3.30.0110.00419.09
8.3.20.0040.00420.22
8.3.10.0000.00821.78
8.3.00.0080.00023.68
8.2.180.0110.00417.13
8.2.170.0070.00719.09
8.2.160.0040.01122.96
8.2.150.0080.00025.66
8.2.140.0040.01124.66
8.2.130.0040.00426.16
8.2.120.0080.00021.18
8.2.110.0160.00622.11
8.2.100.0070.00417.78
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0030.00618.04
8.2.50.0040.00418.10
8.2.40.0030.00522.18
8.2.30.0090.00019.53
8.2.20.0000.00817.78
8.2.10.0040.00418.16
8.2.00.0050.00317.96
8.1.280.0040.01125.92
8.1.270.0070.01023.81
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00319.47
8.1.230.0080.00817.88
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.47
8.1.190.0050.00317.48
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0000.00720.82
8.1.150.0050.00318.84
8.1.140.0000.00819.61
8.1.130.0000.00817.85
8.1.120.0000.00817.69
8.1.110.0000.00717.62
8.1.100.0040.00417.62
8.1.90.0000.00717.64
8.1.80.0030.00317.51
8.1.70.0070.00017.66
8.1.60.0000.00817.70
8.1.50.0000.00917.69
8.1.40.0000.00917.71
8.1.30.0040.00417.84
8.1.20.0040.00417.77
8.1.10.0080.00017.71
8.1.00.0000.00817.79
8.0.300.0110.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.54
8.0.270.0040.00417.27
8.0.260.0030.00317.30
8.0.250.0030.00317.10
8.0.240.0030.00317.23
8.0.230.0040.00417.15
8.0.220.0000.00717.13
8.0.210.0000.00917.13
8.0.200.0030.00317.17
8.0.190.0030.00617.14
8.0.180.0040.00417.04
8.0.170.0030.00617.18
8.0.160.0000.00817.15
8.0.150.0000.00817.13
8.0.140.0000.00716.94
8.0.130.0000.00513.47
8.0.120.0080.00017.07
8.0.110.0030.00517.03
8.0.100.0040.00417.19
8.0.90.0070.00016.94
8.0.80.0070.01017.05
8.0.70.0050.00317.16
8.0.60.0020.00517.18
8.0.50.0050.00217.09
8.0.30.0090.00917.17
8.0.20.0130.00917.40
8.0.10.0030.00517.13
8.0.00.0120.00517.04
7.4.330.0050.00016.89
7.4.320.0000.00616.68
7.4.300.0060.00316.66
7.4.290.0030.00516.68
7.4.280.0050.00516.61
7.4.270.0070.00016.73
7.4.260.0030.00716.69
7.4.250.0050.00216.65
7.4.240.0040.00416.72
7.4.230.0040.00416.67
7.4.220.0060.01116.82
7.4.210.0090.00816.79
7.4.200.0000.00716.66
7.4.160.0060.00916.56
7.4.150.0150.00417.40
7.4.140.0130.00717.86
7.4.130.0090.00916.73
7.4.120.0120.00616.72
7.4.110.0120.00616.77
7.4.100.0110.00916.63
7.4.90.0070.01016.73
7.4.80.0050.01119.39
7.4.70.0090.01316.82
7.4.60.0060.00916.50
7.4.50.0070.00516.40
7.4.40.0090.00816.89
7.4.30.0070.01016.84
7.4.00.0060.00914.98
7.3.330.0030.00313.38
7.3.320.0000.00613.49
7.3.310.0050.00216.37
7.3.300.0030.00316.53
7.3.290.0000.00716.39
7.3.280.0110.00916.57
7.3.270.0030.01417.40
7.3.260.0030.01316.68
7.3.250.0100.00716.70
7.3.240.0050.01416.70
7.3.230.0090.00916.85
7.3.210.0100.00716.66
7.3.200.0030.01519.39
7.3.190.0140.00616.55
7.3.180.0030.01216.52
7.3.170.0110.01116.51
7.3.160.0100.00716.52
7.3.10.0040.01116.60
7.3.00.0060.00616.85
7.2.330.0190.00316.61
7.2.320.0120.00616.82
7.2.310.0030.01316.79
7.2.300.0070.01016.81
7.2.290.0030.01616.91
7.2.130.0060.00317.14
7.2.120.0030.01016.83
7.2.110.0030.01017.05
7.2.100.0100.00617.14
7.2.90.0000.01316.76
7.2.80.0090.00616.88
7.2.70.0000.01316.61
7.2.60.0030.01217.13
7.2.50.0050.00517.04
7.2.40.0000.00917.13
7.2.30.0080.00317.07
7.2.20.0000.01317.15
7.2.10.0090.00317.10
7.2.00.0090.00418.26
7.1.250.0030.00915.82
7.1.200.0030.01015.59
7.1.100.0050.00518.27
7.1.70.0030.00616.91
7.1.60.0000.01619.27
7.1.50.0080.01116.84
7.1.00.0030.07722.36
7.0.200.0070.00716.73
7.0.60.0200.03721.75
7.0.50.0070.05317.74
7.0.40.0000.05320.14
7.0.30.0470.07720.24
7.0.20.0330.08020.15
7.0.10.0130.08020.24
7.0.00.0030.06320.06
5.6.280.0000.03721.09
5.6.210.0030.08720.48
5.6.200.0000.04318.13
5.6.190.0030.04720.50
5.6.180.0330.06020.67
5.6.170.0270.03720.54
5.6.160.0070.08720.39
5.6.150.0070.08018.14
5.6.140.0030.06018.17
5.6.130.0000.04718.15
5.6.120.0200.07021.13
5.6.110.0130.08021.10
5.6.100.0100.08021.02
5.6.90.0100.08321.01
5.6.80.0070.08020.55
5.5.350.0100.03720.35
5.5.340.0070.07317.99
5.5.330.0070.08320.43
5.5.320.0570.04020.36
5.5.310.0270.07720.34
5.5.300.0070.06017.95
5.5.290.0100.08018.08
5.5.280.0100.07720.91
5.5.270.0070.07720.88
5.5.260.0070.04020.66
5.5.250.0030.07020.63
5.5.240.0170.06720.21

preferences:
54.91 ms | 400 KiB | 5 Q