3v4l.org

run code in 300+ PHP versions simultaneously
<?php ////DISPLAY DATE OF NEXT COUNCIL MEETING//// $now = date('U'); //get current time $firstTues = strtotime("-1 month first Tuesday 4pm"); //get first Tuesday of the month $secondTues = strtotime("-1 month second Tuesday 5pm"); //get second Tuesday of the month $fourthTues = strtotime("-1 month fourth Tuesday 5pm"); //get forth Tuesday of the month $nextTues = strtotime("first Tuesday 4pm"); //get first Tuesday of next month function nextCouncilMeeting() { //If todays date less than 1st Tuesday at 11pm, display date for 1st Tuesday 4pm. if ($now < $firstTues) { echo date('F j\<\s\u\p\>S\</\s\u\p\> \a\t g:i A', $firstTues); } //If todays date greater than 1st Tuesday 5pm and less than 2nd Tuesday 11pm, display date for 2nd Tuesday 5pm elseif ($now > $firstTues and $now < $secondTues) { echo date('F j\<\s\u\p\>S\</\s\u\p\> \a\t g:i A', $secondTues); } //If todays date greater than 2nd Tuesday 5pm and less that 4th Tuesday 11pm, display date for 4th Tuesday 5pm elseif ($now > $secondTues and $now < $fourthTues) { echo date('F j\<\s\u\p\>S\</\s\u\p\> \a\t g:i A', $fourthTues); } //If todays date greater than 4th Tuesday elseif ($now > $fourthTues){ echo date('F j\<\s\u\p\>S\</\s\u\p\> \a\t g:i A', $nextTues); } else{ echo "foobar"; } } ?> <!DOCTYPE html> <html> <head> </head> <body> <p id="test"> Current Time: <?php echo date('F j\<\s\u\p\>S\</\s\u\p\> \a\t g:i A',$now); echo " " . $now;?></br> First Tuesday: <?php echo date('F j\<\s\u\p\>S\</\s\u\p\> \a\t g:i A',$firstTues);echo " " . $firstTues;?></br> Second Tuesday: <?php echo date('F j\<\s\u\p\>S\</\s\u\p\> \a\t g:i A',$secondTues);echo " " . $secondTues;?></br> Fourth Tuesday: <?php echo date('F j\<\s\u\p\>S\</\s\u\p\> \a\t g:i A',$fourthTues);echo " " . $fourthTues;?></br> Next Month First Tuesday: <?php echo date('F j\<\s\u\p\>S\</\s\u\p\> \a\t g:i A',$nextTues);echo " " . $nextTues;?> </p> <h2>Next Council Meeting:</h2> <h1><?php nextCouncilMeeting()?></h1> </body> </html>

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.70.0150.00018.51
8.3.60.0150.00417.00
8.3.50.0120.00721.90
8.3.40.0100.01318.96
8.3.30.0100.01318.88
8.3.20.0020.00521.85
8.3.10.0000.00721.98
8.3.00.0000.00819.98
8.2.190.0130.00717.13
8.2.180.0130.00318.42
8.2.170.0060.00922.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0020.00524.66
8.2.130.0100.00022.34
8.2.120.0040.00426.35
8.2.110.0030.00620.47
8.2.100.0060.00618.18
8.2.90.0000.00819.34
8.2.80.0030.00517.97
8.2.70.0050.00517.75
8.2.60.0040.00418.16
8.2.50.0040.00418.10
8.2.40.0000.00822.46
8.2.30.0020.00519.41
8.2.20.0040.00418.02
8.2.10.0090.00018.26
8.2.00.0000.00718.32
8.1.280.0110.00325.92
8.1.270.0080.00023.73
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0050.00522.18
8.1.230.0130.00317.85
8.1.220.0030.00617.79
8.1.210.0030.00518.77
8.1.200.0060.00317.61
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0000.00818.75
8.1.160.0000.00722.16
8.1.150.0070.00021.02
8.1.140.0020.00519.70
8.1.130.0030.00617.93
8.1.120.0080.00017.73
8.1.110.0070.00017.63
8.1.100.0030.00517.65
8.1.90.0000.00817.64
8.1.80.0000.00817.64
8.1.70.0050.00317.64
8.1.60.0000.00817.78
8.1.50.0060.00317.74
8.1.40.0030.00517.72
8.1.30.0040.00417.83
8.1.20.0040.00417.77
8.1.10.0060.00317.68
8.1.00.0000.00817.72
8.0.300.0040.00418.77
8.0.290.0040.00417.13
8.0.280.0050.00218.58
8.0.270.0070.00017.30
8.0.260.0040.00417.29
8.0.250.0000.00717.30
8.0.240.0000.00717.17
8.0.230.0030.00517.21
8.0.220.0000.00717.23
8.0.210.0030.00517.14
8.0.200.0030.00317.32
8.0.190.0030.00517.20
8.0.180.0040.00417.14
8.0.170.0040.00417.18
8.0.160.0000.00717.24
8.0.150.0040.00417.16
8.0.140.0040.00417.30
8.0.130.0030.00313.56
8.0.120.0050.00317.21
8.0.110.0040.00417.21
8.0.100.0050.00317.14
8.0.90.0030.00317.16
8.0.80.0060.00917.25
8.0.70.0030.00617.15
8.0.60.0040.00417.15
8.0.50.0000.00817.21
8.0.30.0100.00717.46
8.0.20.0070.01217.40
8.0.10.0040.00417.23
8.0.00.0030.01917.02
7.4.330.0000.00515.09
7.4.320.0000.00716.70
7.4.300.0000.00716.74
7.4.290.0080.00016.71
7.4.280.0040.00416.87
7.4.270.0040.00416.84
7.4.260.0000.00716.85
7.4.250.0050.00316.74
7.4.240.0000.00716.73
7.4.230.0070.00016.56
7.4.220.0060.01616.92
7.4.210.0070.01016.86
7.4.200.0000.00716.82
7.4.160.0090.00716.79
7.4.150.0080.01517.40
7.4.140.0030.01617.86
7.4.130.0130.00716.81
7.4.120.0080.01016.87
7.4.110.0090.00916.94
7.4.100.0140.01016.85
7.4.90.0140.00316.62
7.4.80.0060.01519.39
7.4.70.0100.00716.89
7.4.60.0100.01316.77
7.4.50.0070.01016.74
7.4.40.0060.01216.88
7.4.30.0100.01016.85
7.4.00.0120.00015.11
7.3.330.0060.00013.62
7.3.320.0030.00313.45
7.3.310.0070.00016.65
7.3.300.0000.00716.61
7.3.290.0000.00716.56
7.3.280.0090.01216.56
7.3.270.0090.00917.40
7.3.260.0130.00516.74
7.3.250.0130.00916.67
7.3.240.0100.00716.71
7.3.230.0030.01516.65
7.3.210.0140.00316.80
7.3.200.0060.01216.71
7.3.190.0100.00716.62
7.3.180.0060.01816.54
7.3.170.0060.01616.80
7.3.160.0040.01316.61
7.2.330.0060.01217.03
7.2.320.0070.01016.68
7.2.310.0090.00916.84
7.2.300.0090.01216.78
7.2.290.0160.00717.03
7.2.60.0450.01016.85
7.2.00.0080.01219.69
7.1.200.0000.01615.74
7.1.100.0000.00818.48
7.1.70.0000.00917.17
7.1.60.0030.01019.75
7.1.50.0190.01035.13
7.1.00.0030.07722.28
7.0.200.0360.00415.10
7.0.90.0070.09319.98
7.0.80.0130.08019.89
7.0.70.0170.08019.89
7.0.60.0130.08020.04
7.0.50.0070.05020.34
7.0.40.0100.07720.19
7.0.30.0200.07720.05
7.0.20.0230.07019.99
7.0.10.0100.07320.04
7.0.00.0130.06020.06
5.6.240.0170.06720.67
5.6.230.0000.08720.51
5.6.220.0100.07720.53
5.6.210.0030.05320.63
5.6.200.0000.08721.05
5.6.190.0070.08320.95
5.6.180.0170.06021.09
5.6.170.0130.07320.96
5.6.160.0130.07021.08
5.6.150.0070.08321.04
5.6.140.0000.06721.02
5.6.130.0100.08720.95
5.6.120.0100.07021.11
5.6.110.0000.08021.03
5.6.100.0030.06021.07
5.6.90.0070.08021.10
5.6.80.0100.06320.40
5.6.70.0030.04720.52
5.6.60.0000.05020.39
5.6.50.0130.03720.33
5.6.40.0030.08020.47
5.6.30.0070.07320.44
5.6.20.0000.05320.48
5.6.10.0100.04020.36
5.6.00.0130.07020.31

preferences:
26.1 ms | 401 KiB | 5 Q