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('2014-11-02'); $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.0120.00621.29
8.3.40.0040.01119.10
8.3.30.0070.01119.06
8.3.20.0040.00420.34
8.3.10.0040.00421.86
8.3.00.0040.00423.36
8.2.180.0110.00718.26
8.2.170.0070.00719.21
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00019.79
8.2.120.0040.00426.35
8.2.110.0040.00722.30
8.2.100.0080.00417.84
8.2.90.0030.00519.26
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0050.00317.80
8.2.50.0100.00018.07
8.2.40.0040.00420.46
8.2.30.0000.00719.52
8.2.20.0030.00617.84
8.2.10.0000.00818.07
8.2.00.0040.00418.02
8.1.280.0130.00625.92
8.1.270.0030.00723.79
8.1.260.0070.00328.09
8.1.250.0040.00428.09
8.1.240.0100.00723.79
8.1.230.0060.00617.52
8.1.220.0080.00017.74
8.1.210.0070.00318.77
8.1.200.0070.00317.60
8.1.190.0100.00017.50
8.1.180.0000.00818.10
8.1.170.0040.00418.63
8.1.160.0070.00020.86
8.1.150.0030.00618.93
8.1.140.0040.00419.61
8.1.130.0030.00317.79
8.1.120.0000.00717.60
8.1.110.0000.00717.56
8.1.100.0080.00017.61
8.1.90.0000.00817.63
8.1.80.0000.00717.63
8.1.70.0070.00017.66
8.1.60.0000.00817.70
8.1.50.0040.00417.66
8.1.40.0050.00317.66
8.1.30.0030.00517.77
8.1.20.0040.00417.82
8.1.10.0000.00817.75
8.1.00.0000.00717.64
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.38
8.0.270.0000.00717.21
8.0.260.0030.00317.25
8.0.250.0000.00717.22
8.0.240.0030.00317.05
8.0.230.0050.00317.17
8.0.220.0000.00717.11
8.0.210.0070.00017.09
8.0.200.0030.00317.14
8.0.190.0040.00417.24
8.0.180.0050.00317.15
8.0.170.0000.00817.11
8.0.160.0040.00417.08
8.0.150.0000.00716.95
8.0.140.0000.00717.03
8.0.130.0030.00313.42
8.0.120.0060.00317.05
8.0.110.0080.00017.04
8.0.100.0030.00516.98
8.0.90.0040.00417.14
8.0.80.0000.01817.11
8.0.70.0080.00016.93
8.0.60.0000.00716.97
8.0.50.0000.00817.18
8.0.30.0130.00717.35
8.0.20.0070.01317.45
8.0.10.0050.00317.02
8.0.00.0160.00517.01
7.4.330.0000.00516.76
7.4.320.0020.00516.65
7.4.300.0030.00316.58
7.4.290.0030.00616.67
7.4.280.0000.00916.77
7.4.270.0040.00416.52
7.4.260.0030.00616.77
7.4.250.0000.00816.55
7.4.240.0000.00816.67
7.4.230.0000.00716.88
7.4.220.0060.01216.69
7.4.210.0080.00816.65
7.4.200.0030.00316.50
7.4.160.0080.00716.66
7.4.150.0110.00717.40
7.4.140.0070.01717.86
7.4.130.0100.00916.59
7.4.120.0100.01016.65
7.4.110.0110.00516.63
7.4.100.0140.01016.77
7.4.90.0070.01016.86
7.4.80.0140.00819.39
7.4.70.0120.01316.79
7.4.60.0130.00316.84
7.4.50.0090.00616.70
7.4.40.0090.01016.64
7.4.30.0150.00616.78
7.4.00.0080.00915.26
7.3.330.0000.00513.34
7.3.320.0000.00613.37
7.3.310.0040.00416.39
7.3.300.0070.00016.35
7.3.290.0080.00016.38
7.3.280.0060.01216.52
7.3.270.0100.01017.40
7.3.260.0090.00616.45
7.3.250.0090.00716.61
7.3.240.0090.00816.76
7.3.230.0060.01216.70
7.3.210.0130.00716.58
7.3.200.0100.01019.39
7.3.190.0130.00916.56
7.3.180.0080.00916.73
7.3.170.0000.02116.76
7.3.160.0130.00316.76
7.3.120.0090.00715.05
7.3.110.0030.01414.92
7.3.100.0030.01015.15
7.3.90.0050.00715.05
7.3.80.0050.00614.85
7.3.70.0090.00515.06
7.3.60.0090.00414.86
7.3.50.0060.00515.07
7.3.40.0060.00614.91
7.3.30.0040.00715.03
7.3.20.0030.00916.69
7.3.10.0090.00716.75
7.3.00.0070.00616.79
7.2.330.0120.00916.78
7.2.320.0120.00616.95
7.2.310.0090.01316.91
7.2.300.0130.00316.77
7.2.290.0140.00616.95
7.2.250.0070.01115.39
7.2.240.0080.00715.27
7.2.230.0060.00915.24
7.2.220.0030.00915.33
7.2.210.0060.00815.12
7.2.200.0050.00915.23
7.2.190.0070.00915.14
7.2.180.0050.01114.94
7.2.170.0060.01114.99
7.2.160.0040.01215.19
7.2.150.0080.00817.14
7.2.140.0060.00916.94
7.2.130.0040.01116.95
7.2.120.0100.00417.04
7.2.110.0030.00916.89
7.2.100.0070.01117.10
7.2.90.0030.01017.08
7.2.80.0110.00416.91
7.2.70.0000.01417.13
7.2.60.0060.00616.94
7.2.50.0030.01217.14
7.2.40.0090.00617.00
7.2.30.0070.01017.06
7.2.20.0120.00317.17
7.2.10.0080.00817.14
7.2.00.0030.01018.18
7.1.330.0070.00715.74
7.1.320.0000.01216.05
7.1.310.0040.00715.86
7.1.300.0040.00815.69
7.1.290.0060.01015.81
7.1.280.0030.00915.81
7.1.270.0050.00915.98
7.1.260.0050.00915.97
7.1.250.0070.00716.01
7.1.200.0080.00415.31
7.1.100.0000.01117.93
7.1.70.0030.00617.07
7.1.60.0030.02119.27
7.1.50.0060.00916.99
7.1.00.0000.08022.25
7.0.200.0000.01016.82
7.0.60.0200.03319.86
7.0.50.0170.06017.84
7.0.40.0100.08320.26
7.0.30.0270.05020.06
7.0.20.0300.05020.23
7.0.10.0130.07020.24
7.0.00.0030.04720.22
5.6.280.0000.03321.01
5.6.210.0070.08020.71
5.6.200.0130.08018.19
5.6.190.0100.04720.57
5.6.180.0270.04020.62
5.6.170.0270.08720.57
5.6.160.0130.07020.48
5.6.150.0070.06018.19
5.6.140.0000.06018.18
5.6.130.0070.06718.24
5.6.120.0070.05021.16
5.6.110.0300.06020.90
5.6.100.0230.06321.07
5.6.90.0000.04721.11
5.6.80.0130.07720.37
5.5.350.0270.08020.54
5.5.340.0130.05318.01
5.5.330.0000.09320.18
5.5.320.0670.06320.36
5.5.310.0270.08020.41
5.5.300.0170.07018.08
5.5.290.0070.08317.98
5.5.280.0100.09020.98
5.5.270.0070.09020.68
5.5.260.0130.08320.89
5.5.250.0030.08020.63
5.5.240.0100.04020.28

preferences:
51.63 ms | 401 KiB | 5 Q