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; } } $test = new appendiceHelper ?>

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.0070.00716.63
8.3.50.0080.01021.28
8.3.40.0150.00018.81
8.3.30.0040.01118.84
8.3.20.0050.00220.34
8.3.10.0040.00423.39
8.3.00.0050.00323.56
8.2.180.0130.00818.54
8.2.170.0030.01019.14
8.2.160.0110.00422.96
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0050.00319.64
8.2.120.0000.00826.35
8.2.110.0030.00621.05
8.2.100.0060.00617.93
8.2.90.0060.00319.09
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00817.91
8.2.50.0040.00418.07
8.2.40.0050.00322.15
8.2.30.0040.00419.44
8.2.20.0000.00817.69
8.2.10.0080.00017.99
8.2.00.0000.00918.00
8.1.280.0160.00625.92
8.1.270.0080.01123.88
8.1.260.0030.00628.09
8.1.250.0060.00328.09
8.1.240.0040.00417.66
8.1.230.0120.00019.10
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0030.00518.58
8.1.160.0040.00420.61
8.1.150.0000.00718.77
8.1.140.0080.00019.46
8.1.130.0070.00017.54
8.1.120.0030.00417.38
8.1.110.0030.00517.34
8.1.100.0040.00417.25
8.1.90.0050.00217.33
8.1.80.0000.00717.35
8.1.70.0000.00817.39
8.1.60.0080.00017.58
8.1.50.0060.00317.36
8.1.40.0030.00517.48
8.1.30.0000.00817.64
8.1.20.0040.00417.48
8.1.10.0030.00517.51
8.1.00.0030.00617.35
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.39
8.0.270.0070.00017.21
8.0.260.0000.00717.08
8.0.250.0030.00316.98
8.0.240.0070.00017.07
8.0.230.0000.00816.86
8.0.220.0040.00416.95
8.0.210.0080.00016.88
8.0.200.0000.00817.01
8.0.190.0040.00416.97
8.0.180.0040.00416.82
8.0.170.0040.00416.93
8.0.160.0000.00816.93
8.0.150.0040.00416.84
8.0.140.0000.00716.84
8.0.130.0000.00613.34
8.0.120.0000.00816.76
8.0.110.0040.00416.91
8.0.100.0060.00316.78
8.0.90.0030.00516.93
8.0.80.0070.00816.91
8.0.70.0000.00716.87
8.0.60.0070.00016.80
8.0.50.0050.00216.76
8.0.30.0080.01017.12
8.0.20.0070.01317.41
8.0.10.0000.00716.85
8.0.00.0110.00916.61
7.4.330.0000.00516.79
7.4.320.0030.00316.39
7.4.300.0060.00316.60
7.4.290.0030.00316.41
7.4.280.0000.00816.49
7.4.270.0000.00716.37
7.4.260.0030.00616.57
7.4.250.0050.00216.52
7.4.240.0020.00516.54
7.4.230.0000.00716.57
7.4.220.0090.00616.57
7.4.210.0050.00916.46
7.4.200.0030.00316.26
7.4.160.0040.01316.71
7.4.150.0110.01117.40
7.4.140.0090.01117.86
7.4.130.0060.01216.53
7.4.120.0100.01016.49
7.4.110.0180.00616.52
7.4.100.0040.01416.63
7.4.90.0130.00716.50
7.4.80.0130.01019.39
7.4.70.0130.01016.38
7.4.60.0030.01416.62
7.4.50.0090.00616.62
7.4.40.0100.00716.57
7.4.30.0060.01616.45
7.4.00.0030.01014.91
7.3.330.0050.00013.40
7.3.320.0000.00613.20
7.3.310.0070.00016.28
7.3.300.0000.00616.25
7.3.290.0000.00716.31
7.3.280.0080.01016.39
7.3.270.0000.01717.40
7.3.260.0120.00616.47
7.3.250.0150.00516.50
7.3.240.0080.01016.45
7.3.230.0150.00416.62
7.3.210.0100.01016.59
7.3.200.0140.00819.39
7.3.190.0140.00416.32
7.3.180.0060.00916.51
7.3.170.0060.01016.32
7.3.160.0170.00316.51
7.2.330.0090.00916.50
7.2.320.0130.00616.68
7.2.310.0130.00316.36
7.2.300.0130.00316.34
7.2.290.0080.00816.60
7.2.60.0060.00916.70
7.2.00.0070.00719.34
7.1.200.0060.00615.63
7.1.100.0030.01018.11
7.1.70.0030.00617.15
7.1.60.0030.01919.27
7.1.50.0000.02216.80
7.1.00.0070.07322.31
7.0.200.0050.00516.94
7.0.60.0170.07721.82
7.0.50.0100.06017.87
7.0.40.0030.06320.27
7.0.30.0370.07020.23
7.0.20.0370.07020.07
7.0.10.0070.08320.21
7.0.00.0070.05320.23
5.6.280.0000.03320.84
5.6.210.0170.04720.66
5.6.200.0070.03718.14
5.6.190.0100.08320.48
5.6.180.0200.07020.47
5.6.170.0270.08020.71
5.6.160.0070.06320.71
5.6.150.0070.05318.19
5.6.140.0030.04318.16
5.6.130.0000.04318.24
5.6.120.0030.06021.02
5.6.110.0100.08021.02
5.6.100.0070.08321.10
5.6.90.0070.08721.00
5.6.80.0000.04320.37
5.5.350.0100.07320.42
5.5.340.0070.05018.05
5.5.330.0130.07720.29
5.5.320.0570.04720.23
5.5.310.0170.06720.24
5.5.300.0070.05717.94
5.5.290.0100.03717.95
5.5.280.0030.04320.79
5.5.270.0030.04720.79
5.5.260.0130.06720.99
5.5.250.0030.08320.63
5.5.240.0130.07720.39

preferences:
51.87 ms | 401 KiB | 5 Q