3v4l.org

run code in 300+ PHP versions simultaneously
<?php // all fridays from startingdate till NOW $display_only_the_most_recent_friday = false; // all fridays or most recent only $startingDate = strtotime('2013-01-01'); // lets test from start of 2013 $start = time(); // now $end = $startingDate; // our loop will $start from now and scan back till the $end // we will check every day from $start to $end // in every loop we are going one day back -=(60 * 60 * 24) for($checkdate=$start;$checkdate>=$end; $checkdate -=(60 * 60 * 24)) { if ( date('N', $checkdate) == "5" ) // and if this day is the fifth day we echo { echo '<a href="https://www.extranet.frostyacres.com/portal_resources/1/Market Report '.date('m-d-y', $checkdate).'.pdf">Market Reports</a>'; if($display_only_the_most_recent_friday) break; } } ?>

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)
7.3.00.0070.00716.94
7.2.130.0080.00416.82
7.2.120.0090.00317.29
7.2.110.0070.00716.79
7.2.100.0080.00817.21
7.2.90.0030.00917.25
7.2.80.0030.00616.91
7.2.70.0070.00417.25
7.2.60.0090.00616.88
7.2.50.0060.00316.86
7.2.40.0040.00416.93
7.2.30.0030.01116.88
7.2.20.0000.01417.04
7.2.10.0040.00817.05
7.2.00.0040.00817.06
7.1.250.0050.00315.95
7.1.240.0090.00315.77
7.1.230.0060.00315.76
7.1.220.0030.00915.95
7.1.210.0000.01115.88
7.1.200.0030.00815.71
7.1.190.0030.00715.68
7.1.180.0070.01015.89
7.1.170.0070.00315.93
7.1.160.0110.00415.92
7.1.150.0040.00815.78
7.1.140.0060.00315.93
7.1.130.0100.00016.07
7.1.120.0000.01215.59
7.1.110.0030.00916.11
7.1.100.0000.00915.75
7.1.90.0030.00615.88
7.1.80.0060.00615.93
7.1.70.0090.00516.33
7.1.60.0550.00815.78
7.1.50.0090.01416.60
7.1.40.0040.00715.94
7.1.30.0030.00915.45
7.1.20.0090.00316.00
7.1.10.0060.00615.97
7.1.00.0030.04519.30
7.0.330.0040.01115.30
7.0.320.0030.01015.27
7.0.310.0030.00615.48
7.0.300.0030.00915.46
7.0.290.0070.00415.68
7.0.280.0060.00615.60
7.0.270.0000.00915.57
7.0.260.0000.00815.54
7.0.250.0030.00915.43
7.0.240.0000.01115.47
7.0.230.0080.00615.55
7.0.220.0000.01115.18
7.0.210.0000.01615.31
7.0.200.0050.00816.28
7.0.190.0140.00015.52
7.0.180.0050.00515.37
7.0.170.0050.00515.53
7.0.160.0000.01115.70
7.0.150.0000.01115.32
7.0.140.0080.03818.87
7.0.130.0070.00415.63
7.0.120.0030.00615.20
7.0.110.0060.00615.56
7.0.100.0030.00915.16
7.0.90.0020.02318.71
7.0.80.0070.04318.56
7.0.70.0020.05018.68
7.0.60.0000.04518.69
7.0.50.0080.03718.79
7.0.40.0070.04016.68
7.0.30.0050.05016.93
7.0.20.0030.04516.89
7.0.10.0050.04616.82
7.0.00.0030.03216.93
5.6.380.0100.00314.51
5.6.370.0000.01514.64
5.6.360.0000.01514.44
5.6.350.0060.00614.54
5.6.340.0060.00914.53
5.6.330.0060.00614.43
5.6.320.0030.01014.57
5.6.310.0080.00414.63
5.6.300.0040.00814.52
5.6.290.0000.00914.99
5.6.280.0070.04017.68
5.6.270.0070.00714.48
5.6.260.0070.00314.66
5.6.250.0120.00314.56
5.6.240.0070.02317.57
5.6.230.0060.04617.62
5.6.220.0050.05017.48
5.6.210.0070.03017.57
5.6.200.0070.04117.87
5.6.190.0060.03817.77
5.6.180.0130.03217.72
5.6.170.0030.04117.86
5.6.160.0050.04517.84
5.6.150.0070.04617.88
5.6.140.0100.03917.79
5.6.130.0050.03217.73
5.6.120.0020.03217.79
5.6.110.0050.02717.74
5.6.100.0070.04417.71
5.6.90.0020.02717.73
5.6.80.0050.04317.53
5.6.70.0040.04217.46
5.6.60.0100.03617.52
5.6.50.0090.02917.45
5.6.40.0090.04217.39
5.6.30.0070.04317.35
5.6.20.0030.04517.32
5.6.10.0090.03517.39
5.6.00.0120.04117.46
5.5.380.0030.02415.74
5.5.370.0030.03515.85
5.5.360.0060.03315.84
5.5.350.0020.04515.76
5.5.340.0050.04316.02
5.5.330.0020.03016.19
5.5.320.0030.04416.11
5.5.310.0080.04015.99
5.5.300.0030.04916.17
5.5.290.0050.04316.11
5.5.280.0060.04516.02
5.5.270.0060.04615.98
5.5.260.0070.04016.11
5.5.250.0070.03915.76
5.5.240.0060.04015.63
5.5.230.0030.04315.77
5.5.220.0070.04215.69
5.5.210.0050.04215.70
5.5.200.0050.03015.79
5.5.190.0070.02715.63
5.5.180.0050.04315.58
5.5.170.0060.00911.03
5.5.160.0100.04215.62
5.5.150.0050.04315.67
5.5.140.0050.03015.56
5.5.130.0020.04615.67
5.5.120.0040.04315.71
5.5.110.0020.03915.67
5.5.100.0080.03815.66
5.5.90.0090.03615.61
5.5.80.0050.04115.74
5.5.70.0040.04115.58
5.5.60.0050.02515.66
5.5.50.0090.03315.62
5.5.40.0020.04615.54
5.5.30.0060.02115.53
5.5.20.0020.04115.53
5.5.10.0010.04815.54
5.5.00.0060.02715.66
5.4.450.0030.04615.37
5.4.440.0030.04815.34
5.4.430.0030.04315.09
5.4.420.0070.04015.28
5.4.410.0070.03315.22
5.4.400.0030.02714.91
5.4.390.0070.02015.13
5.4.380.0050.03515.13
5.4.370.0000.04315.13
5.4.360.0030.04215.03
5.4.350.0030.04415.16
5.4.340.0030.04315.03
5.4.330.0040.00411.02
5.4.320.0060.02615.13
5.4.310.0040.02515.02
5.4.300.0050.04315.13
5.4.290.0020.04215.15
5.4.280.0050.03815.01
5.4.270.0060.03215.08
5.4.260.0040.04315.04
5.4.250.0050.02515.14
5.4.240.0060.02215.11
5.4.230.0050.03415.09
5.4.220.0050.04015.04
5.4.210.0030.03314.98
5.4.200.0050.03715.05
5.4.190.0030.04215.01
5.4.180.0030.02515.08
5.4.170.0030.04015.10
5.4.160.0030.04115.02
5.4.150.0030.04214.98
5.4.140.0030.03913.61
5.4.130.0030.02813.80
5.4.120.0070.04013.78
5.4.110.0010.04313.63
5.4.100.0050.03813.78
5.4.90.0070.03813.64
5.4.80.0040.04013.63
5.4.70.0030.03013.67
5.4.60.0030.02213.64
5.4.50.0040.03413.66
5.4.40.0080.04013.71
5.4.30.0030.03613.51
5.4.20.0030.03613.79
5.4.10.0030.04013.75
5.4.00.0050.03613.50
5.3.290.0070.03712.70
5.3.280.0040.02412.63
5.3.270.0040.03012.72
5.3.260.0030.04012.67
5.3.250.0030.03612.62
5.3.240.0090.03712.63
5.3.230.0030.04212.54
5.3.220.0030.03812.50
5.3.210.0020.04212.53
5.3.200.0040.04212.54
5.3.190.0000.04712.50
5.3.180.0020.03812.58
5.3.170.0000.04612.61
5.3.160.0060.03512.50
5.3.150.0070.03512.67
5.3.140.0020.03612.59
5.3.130.0050.04012.48
5.3.120.0020.04412.63
5.3.110.0030.03812.59
5.3.100.0080.04012.37
5.3.90.0050.03812.30
5.3.80.0020.03012.18
5.3.70.0040.03812.09
5.3.60.0000.04212.31
5.3.50.0080.04312.26
5.3.40.0020.04212.27
5.3.30.0000.02712.08
5.3.20.0070.03712.06
5.3.10.0060.03512.03
5.3.00.0020.02711.96
5.2.170.0020.03710.51
5.2.160.0020.03410.48
5.2.150.0050.03310.56
5.2.140.0010.03610.57
5.2.130.0040.02810.46
5.2.120.0030.02510.49
5.2.110.0050.03110.45
5.2.100.0030.03710.54
5.2.90.0020.01810.52
5.2.80.0020.03510.52
5.2.70.0020.03010.52
5.2.60.0020.03510.48
5.2.50.0030.03310.41
5.2.40.0030.03310.51
5.2.30.0030.03510.38
5.2.20.0030.02210.40
5.2.10.0030.02410.33
5.2.00.0000.03710.31
5.1.60.0050.02910.18
5.1.50.0030.01810.18
5.1.40.0050.02510.18
5.1.30.0020.03510.18
5.1.20.0020.03210.18
5.1.10.0050.02010.18
5.1.00.0060.02310.18
5.0.50.0040.02510.18
5.0.40.0020.01910.18
5.0.30.0000.03710.18
5.0.20.0000.02410.18
5.0.10.0000.01410.18
5.0.00.0010.03610.18
4.4.90.0020.02010.18
4.4.80.0030.01910.18
4.4.70.0000.01810.18
4.4.60.0020.01810.18
4.4.50.0030.01810.18
4.4.40.0000.02810.18
4.4.30.0040.01810.18
4.4.20.0010.01610.18
4.4.10.0000.01610.18
4.4.00.0020.03010.18
4.3.110.0000.01810.18
4.3.100.0040.01510.18
4.3.90.0020.01810.18
4.3.80.0020.03110.18
4.3.70.0020.01210.18
4.3.60.0010.01810.18
4.3.50.0030.01710.18
4.3.40.0010.02310.18
4.3.30.0030.01710.18
4.3.20.0020.01810.18
4.3.10.0020.01710.18
4.3.00.0080.01510.18

preferences:
38.03 ms | 401 KiB | 5 Q