3v4l.org

run code in 300+ PHP versions simultaneously
<?php function format_date($t, $s, $f){ return date($f,t); } $week =7*24*3600; $fix = ( intval(format_date(ceil(time()/$week)*$week,'custom', 'd')) - intval(format_date(time(),'custom','d')) )*24*3600; $sql = "select from_unixtime(ceil((created+$fix)/$week)*$week - $fix) date, count(*) from {node} where type='article' and status=1 group by date order by created desc limit 7"; print $sql;

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.4.10.0110.00714.92
7.4.00.0110.00614.76
7.3.130.0060.01315.02
7.3.120.0100.00714.96
7.3.110.0170.00314.67
7.3.100.0100.00715.01
7.3.90.0060.00315.19
7.3.80.0050.00515.13
7.3.70.0000.01114.95
7.3.60.0110.00414.60
7.3.50.0000.00914.66
7.3.40.0030.00914.88
7.3.30.0120.00014.88
7.3.20.0060.00616.71
7.3.10.0030.01016.45
7.3.00.0070.00716.86
7.2.260.0070.01015.20
7.2.250.0070.01015.25
7.2.240.0060.01014.73
7.2.230.0130.00015.20
7.2.220.0070.01014.71
7.2.210.0000.01314.93
7.2.200.0070.00315.14
7.2.190.0040.01214.96
7.2.180.0000.00914.94
7.2.170.0030.00914.93
7.2.160.0000.01015.06
7.2.150.0080.00416.88
7.2.140.0070.00716.86
7.2.130.0060.01016.80
7.2.120.0000.01016.88
7.2.110.0040.01117.01
7.2.100.0030.00916.82
7.2.90.0030.01316.89
7.2.80.0120.00316.91
7.2.70.0030.01417.09
7.2.60.0150.00316.35
7.2.50.0040.01216.82
7.2.40.0130.00316.73
7.2.30.0060.00917.08
7.2.20.0060.01016.91
7.2.10.0060.00316.92
7.2.00.0010.00818.12
7.1.330.0040.01115.74
7.1.320.0040.01115.81
7.1.310.0100.00316.07
7.1.300.0070.00715.56
7.1.290.0050.00515.88
7.1.280.0040.01115.98
7.1.270.0060.00815.70
7.1.260.0000.01115.92
7.1.250.0040.01115.60
7.1.240.0030.00615.68
7.1.230.0060.00615.88
7.1.220.0060.00315.54
7.1.210.0030.00915.91
7.1.200.0030.01115.81
7.1.190.0040.00815.55
7.1.180.0060.00915.55
7.1.170.0040.00415.79
7.1.160.0030.00715.86
7.1.150.0040.00815.78
7.1.140.0150.00015.83
7.1.130.0090.00015.97
7.1.120.0040.01215.57
7.1.110.0040.01215.86
7.1.100.0060.00616.92
7.1.90.0000.01115.53
7.1.80.0040.01115.83
7.1.70.0060.00516.51
7.1.60.0060.00617.45
7.1.50.0140.00825.39
7.1.40.0070.00716.03
7.1.30.0090.00015.86
7.1.20.0070.00715.99
7.1.10.0000.01415.87
7.1.00.0080.03919.14
7.0.330.0040.01115.50
7.0.320.0100.00315.42
7.0.310.0080.00415.53
7.0.300.0060.00315.27
7.0.290.0070.01015.21
7.0.280.0070.00415.28
7.0.270.0050.00515.55
7.0.260.0170.00015.47
7.0.250.0030.01415.46
7.0.240.0090.00315.50
7.0.230.0000.00915.44
7.0.220.0060.00615.53
7.0.210.0060.00615.34
7.0.200.0000.00915.84
7.0.190.0100.00315.41
7.0.180.0000.01315.58
7.0.170.0030.00615.32
7.0.160.0090.00615.53
7.0.150.0070.01015.61
7.0.140.0130.00315.32
7.0.130.0000.01515.27
7.0.120.0090.00315.20
7.0.110.0040.01215.39
7.0.100.0070.00715.41
7.0.90.0000.01315.58
7.0.80.0330.04417.65
7.0.70.0150.04217.60
7.0.60.0120.03217.58
7.0.50.0130.04217.81
7.0.40.0070.04416.70
7.0.30.0060.02716.73
7.0.20.0060.02616.79
7.0.10.0070.04916.82
7.0.00.0080.04716.70
5.6.400.0030.00714.31
5.6.390.0070.00714.18
5.6.380.0070.00314.51
5.6.370.0080.00414.45
5.6.360.0040.01114.51
5.6.350.0000.01514.31
5.6.340.0030.01014.50
5.6.330.0070.00714.25
5.6.320.0000.01014.50
5.6.310.0060.00614.25
5.6.300.0060.00614.38
5.6.290.0070.01014.39
5.6.280.0000.02417.75
5.6.270.0030.00714.12
5.6.260.0070.00714.56
5.6.250.0030.01014.39
5.6.240.0000.00914.37
5.6.230.0090.03517.37
5.6.220.0070.04317.55
5.6.210.0070.02717.27
5.6.200.0120.03617.82
5.6.190.0130.04617.69
5.6.180.0060.03117.65
5.6.170.0080.02517.59
5.6.160.0100.04517.64
5.6.150.0100.04017.58
5.6.140.0080.02517.72
5.6.130.0020.03217.63
5.6.120.0090.04117.78
5.6.110.0050.02917.70
5.6.100.0050.02917.82
5.6.90.0050.04417.84
5.6.80.0080.04517.29
5.6.70.0030.04717.39
5.6.60.0080.04017.33
5.6.50.0100.03317.29
5.6.40.0050.02817.29
5.6.30.0050.02517.23
5.6.20.0040.03017.29
5.6.10.0070.03017.37
5.6.00.0070.03417.20
5.5.380.0030.00614.39
5.5.370.0080.04317.33
5.5.360.0070.04517.50
5.5.350.0060.04417.27
5.5.340.0030.02817.59
5.5.330.0020.05317.60
5.5.320.0170.02517.53
5.5.310.0070.04217.54
5.5.300.0090.04217.56
5.5.290.0050.02617.61
5.5.280.0080.03017.54
5.5.270.0050.02517.51
5.5.260.0060.02417.53
5.5.250.0090.02817.61
5.5.240.0090.03617.23
5.5.230.0100.03917.10
5.5.220.0040.04417.22
5.5.210.0050.03217.23
5.5.200.0090.04217.13
5.5.190.0070.03917.17
5.5.180.0050.04717.16
5.5.170.0090.00614.29
5.5.160.0020.04617.22
5.5.150.0090.04017.29
5.5.140.0090.03017.16
5.5.130.0080.04017.30
5.5.120.0130.02017.14
5.5.110.0070.04117.31
5.5.100.0090.03717.00
5.5.90.0080.04317.05
5.5.80.0020.04516.96
5.5.70.0100.02217.08
5.5.60.0100.03817.12
5.5.50.0050.03817.26
5.5.40.0070.04317.19
5.5.30.0050.03517.12
5.5.20.0110.02817.09
5.5.10.0070.03317.04
5.5.00.0060.02216.88
5.4.450.0050.04015.26
5.4.440.0040.02215.37
5.4.430.0000.02615.03
5.4.420.0030.02415.24
5.4.410.0120.03315.14
5.4.400.0100.03515.18
5.4.390.0100.03515.01
5.4.380.0100.03914.91
5.4.370.0050.04014.96
5.4.360.0050.04014.95
5.4.350.0030.02514.92
5.4.340.0100.02915.15
5.4.330.0080.00410.86
5.4.320.0050.04014.98
5.4.310.0050.04215.17
5.4.300.0070.02015.08
5.4.290.0110.02215.02
5.4.280.0070.04015.07
5.4.270.0040.02415.00
5.4.260.0050.04015.10
5.4.250.0090.03915.21
5.4.240.0060.02915.13
5.4.230.0080.03714.98
5.4.220.0090.03015.16
5.4.210.0070.03714.92
5.4.200.0070.02015.01
5.4.190.0030.04714.95
5.4.180.0080.04015.09
5.4.170.0050.02715.09
5.4.160.0030.04014.91
5.4.150.0020.04115.00
5.4.140.0070.03713.82
5.4.130.0100.03813.73
5.4.120.0070.04013.62
5.4.110.0050.03613.72
5.4.100.0070.03013.76
5.4.90.0030.04313.79
5.4.80.0020.04413.64
5.4.70.0020.02813.75
5.4.60.0060.03413.69
5.4.50.0090.03313.74
5.4.40.0030.04013.80
5.4.30.0050.02713.79
5.4.20.0030.04213.59
5.4.10.0050.03513.71
5.4.00.0020.02913.55

preferences:
39.93 ms | 400 KiB | 5 Q