3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 5; $monthName = date('M', strtotime('2012-'.$month.'-01')); $to = strtotime('last day of '.$monthName.', 23:59:59'); if ( $to < time() ) { $to = strtotime('last day of '.$monthName.' '.(date('Y')+1).', 23:59:59'); } $from = strtotime('first day of this month', $to); echo date('d.m.Y H:i:s', $from)."\r\n"; echo date('d.m.Y H:i:s', $to)."\r\n";

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.2.60.0040.00616.97
7.2.00.0030.01019.70
7.1.200.0040.00716.04
7.1.100.0090.00318.57
7.1.70.0040.00417.18
7.1.60.0070.00717.50
7.1.50.0100.01317.25
7.1.00.0030.05022.40
7.0.200.0090.00917.02
7.0.140.0030.07021.95
7.0.100.0470.08019.92
7.0.90.0470.08019.93
7.0.80.0300.06319.93
7.0.70.0430.06720.03
7.0.60.0500.08019.99
7.0.50.0500.07020.42
7.0.40.0030.04720.08
7.0.30.0170.08020.04
7.0.20.0100.08720.13
7.0.10.0030.08720.18
7.0.00.0100.07720.07
5.6.280.0000.07721.09
5.6.250.0030.05020.66
5.6.240.0000.08020.59
5.6.230.0070.04320.68
5.6.220.0070.09020.62
5.6.210.0130.04320.55
5.6.200.0130.07721.02
5.6.190.0100.08020.95
5.6.180.0070.08020.94
5.6.170.0100.08321.00
5.6.160.0070.05321.08
5.6.150.0070.08321.11
5.6.140.0100.08320.93
5.6.130.0030.08021.07
5.6.120.0100.08321.01
5.6.110.0130.08020.94
5.6.100.0030.07721.09
5.6.90.0070.06321.01
5.6.80.0030.05320.45
5.6.70.0000.04720.45
5.6.60.0130.07020.47
5.6.50.0030.05320.35
5.6.40.0030.05320.41
5.6.30.0100.06720.46
5.6.20.0030.05020.35
5.6.10.0000.08720.35
5.6.00.0070.06020.36
5.5.380.0130.03320.32
5.5.370.0070.06720.34
5.5.360.0000.05020.53
5.5.350.0100.08320.42
5.5.340.0100.08320.86
5.5.330.0070.08020.77
5.5.320.0200.05020.90
5.5.310.0130.05020.88
5.5.300.0030.08320.80
5.5.290.0200.06020.79
5.5.280.0070.08720.90
5.5.270.0170.07720.78
5.5.260.0070.05020.91
5.5.250.0030.08720.57
5.5.240.0130.04720.02
5.5.230.0130.03020.18
5.5.220.0200.06320.18
5.5.210.0070.04720.02
5.5.200.0000.04320.28
5.5.190.0070.08020.26
5.5.180.0000.08720.15
5.5.160.0070.04720.14
5.5.150.0200.06720.10
5.5.140.0100.08020.21
5.5.130.0030.08319.97
5.5.120.0030.08020.26
5.5.110.0070.08320.16
5.5.100.0070.08019.95
5.5.90.0130.07020.09
5.5.80.0170.06720.11
5.5.70.0070.08019.99
5.5.60.0130.07320.05
5.5.50.0070.05020.08
5.5.40.0170.07020.04
5.5.30.0100.07720.05
5.5.20.0000.07020.05
5.5.10.0030.04719.95
5.5.00.0030.08720.09
5.4.450.0130.07719.42
5.4.440.0100.06319.22
5.4.430.0170.07019.41
5.4.420.0000.05319.32
5.4.410.0100.07719.22
5.4.400.0100.04319.08
5.4.390.0000.04319.07
5.4.380.0100.07019.03
5.4.370.0070.08319.23
5.4.360.0070.05019.04
5.4.350.0070.06319.16
5.4.340.0000.05319.13
5.4.320.0070.04719.14
5.4.310.0030.08019.07
5.4.300.0030.07318.78
5.4.290.0100.07318.96
5.4.280.0030.04719.07
5.4.270.0030.05718.89
5.4.260.0030.05019.12
5.4.250.0070.06719.05
5.4.240.0070.07719.05
5.4.230.0000.04718.91
5.4.220.0070.07719.13
5.4.210.0070.06319.13
5.4.200.0070.07319.09
5.4.190.0030.07019.09
5.4.180.0170.06719.02
5.4.170.0030.09018.89
5.4.160.0130.06719.07
5.4.150.0170.07019.06
5.4.140.0070.07316.41
5.4.130.0100.07316.38
5.4.120.0030.05016.41
5.4.110.0100.05316.27
5.4.100.0070.03716.31
5.4.90.0130.07016.26
5.4.80.0000.06716.43
5.4.70.0000.04716.25
5.4.60.0170.06316.19
5.4.50.0070.05316.23
5.4.40.0070.06016.46
5.4.30.0030.07716.25
5.4.20.0070.07316.35
5.4.10.0100.07016.39
5.4.00.0100.06715.79
5.3.290.0130.06714.52
5.3.280.0030.08014.43
5.3.270.0130.07314.63
5.3.260.0130.07314.46
5.3.250.0030.07714.58
5.3.240.0100.06014.45
5.3.230.0130.06314.46
5.3.220.0100.07314.42
5.3.210.0030.07714.57
5.3.200.0000.04314.42
5.3.190.0100.07314.52
5.3.180.0130.03714.57
5.3.170.0030.05714.52
5.3.160.0170.07014.38
5.3.150.0070.04014.41
5.3.140.0070.06714.51
5.3.130.0000.05714.36
5.3.120.0000.05714.50
5.3.110.0070.08314.48
5.3.100.0070.04313.87
5.3.90.0130.07313.97
5.3.80.0130.06013.96
5.3.70.0100.05013.92
5.3.60.0100.07013.86
5.3.50.0100.04013.95
5.3.40.0100.06713.80
5.3.30.0000.07713.90
5.3.20.0030.05313.54
5.3.10.0100.07013.64
5.3.00.0130.06713.50
5.2.170.0030.06711.18
5.2.160.0000.04011.16
5.2.150.0070.06311.19
5.2.140.0070.06011.21
5.2.130.0000.06011.09
5.2.120.0100.05711.14
5.2.110.0070.04011.16
5.2.100.0070.05310.94
5.2.90.0070.03710.96
5.2.80.0100.05011.12
5.2.70.0130.05311.16
5.2.60.0030.06711.03
5.2.50.0000.05310.87
5.2.40.0100.06010.86
5.2.30.0030.06711.02
5.2.20.0030.06011.00
5.2.10.0030.06310.88
5.2.00.0170.03310.61
5.1.60.0000.04710.29
5.1.50.0070.05310.29
5.1.40.0000.04010.29
5.1.30.0000.03010.36
5.1.20.0100.02310.29
5.1.10.0000.02710.29
5.1.00.0030.06010.29
5.0.50.0000.04010.29
5.0.40.0000.05010.29
5.0.30.0000.07010.29
5.0.20.0030.04310.29
5.0.10.0000.02310.29
5.0.00.0030.06710.29
4.4.90.0000.03310.29
4.4.80.0000.03310.29
4.4.70.0100.02710.29
4.4.60.0030.02010.29
4.4.50.0000.03710.29
4.4.40.0030.02310.29
4.4.30.0030.02010.29
4.4.20.0070.01310.29
4.4.10.0100.02710.29
4.4.00.0000.04010.29
4.3.110.0030.02310.29
4.3.100.0000.03710.29
4.3.90.0070.03310.29
4.3.80.0000.05010.29
4.3.70.0070.03010.29
4.3.60.0000.02310.29
4.3.50.0070.03010.29
4.3.40.0000.05310.29
4.3.30.0030.02010.29
4.3.20.0000.03710.29
4.3.10.0000.03310.29
4.3.00.0000.01710.29

preferences:
33.9 ms | 400 KiB | 5 Q