3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 5; $monthName = date('M', strtotime('2012-'.$month.'-01')); $from = strtotime('first day of '.$monthName); if ( $from < time() ) { $from = strtotime('first day of '.$monthName.' '.(date('Y')+1)); } $to = strtotime('last day of this month, 23:59:59', $from); 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.00.0070.00319.72
7.1.200.0070.00015.71
7.1.100.0060.00618.44
7.1.70.0030.00717.47
7.1.60.0100.01319.08
7.1.50.0040.00816.91
7.1.00.0000.04022.51
7.0.200.0070.00717.00
7.0.140.0130.06322.09
7.0.100.0470.09019.98
7.0.90.0370.07319.93
7.0.80.0370.07719.99
7.0.70.0400.09319.99
7.0.60.0370.05319.82
7.0.50.0330.09320.34
7.0.40.0030.08720.10
7.0.30.0070.04720.10
7.0.20.0000.08720.12
7.0.10.0070.08020.09
7.0.00.0130.04720.04
5.6.280.0000.07720.82
5.6.250.0100.05320.72
5.6.240.0070.07720.68
5.6.230.0130.08020.65
5.6.220.0170.07320.70
5.6.210.0030.08720.64
5.6.200.0100.04321.04
5.6.190.0070.04321.08
5.6.180.0070.08020.92
5.6.170.0030.08721.02
5.6.160.0070.07321.02
5.6.150.0030.05320.99
5.6.140.0100.07320.99
5.6.130.0170.07021.04
5.6.120.0100.06021.03
5.6.110.0000.09321.07
5.6.100.0030.08320.93
5.6.90.0000.07020.98
5.6.80.0030.05020.51
5.6.70.0030.04020.41
5.6.60.0070.06020.39
5.6.50.0130.07720.33
5.6.40.0100.06320.45
5.6.30.0070.07720.29
5.6.20.0100.07020.41
5.6.10.0170.07720.34
5.6.00.0100.08020.51
5.5.380.0030.06320.35
5.5.370.0100.07720.42
5.5.360.0100.08020.30
5.5.350.0070.05320.44
5.5.340.0070.05020.93
5.5.330.0070.05020.86
5.5.320.0100.04020.86
5.5.310.0030.09020.77
5.5.300.0100.08020.72
5.5.290.0100.08320.79
5.5.280.0130.04320.85
5.5.270.0130.04320.91
5.5.260.0100.05020.79
5.5.250.0100.07720.73
5.5.240.0070.03720.02
5.5.230.0170.06720.26
5.5.220.0030.08020.16
5.5.210.0130.05720.25
5.5.200.0100.05320.27
5.5.190.0030.08320.08
5.5.180.0130.06720.23
5.5.160.0070.09320.21
5.5.150.0130.06720.24
5.5.140.0170.06720.26
5.5.130.0070.04720.20
5.5.120.0130.04020.14
5.5.110.0100.04720.20
5.5.100.0000.05320.07
5.5.90.0070.06320.12
5.5.80.0170.07020.07
5.5.70.0030.05020.05
5.5.60.0070.08019.96
5.5.50.0170.06020.05
5.5.40.0030.07020.14
5.5.30.0070.07020.14
5.5.20.0100.05320.12
5.5.10.0030.05319.96
5.5.00.0030.07020.12
5.4.450.0070.04719.56
5.4.440.0070.08019.36
5.4.430.0070.07719.34
5.4.420.0000.08019.37
5.4.410.0070.03719.24
5.4.400.0030.04018.81
5.4.390.0000.08319.07
5.4.380.0130.06719.05
5.4.370.0030.07319.14
5.4.360.0070.06019.07
5.4.350.0170.07018.90
5.4.340.0030.04718.91
5.4.320.0030.07318.81
5.4.310.0130.07319.01
5.4.300.0030.07718.83
5.4.290.0070.08019.05
5.4.280.0100.07719.07
5.4.270.0100.07719.12
5.4.260.0100.07319.23
5.4.250.0070.08319.02
5.4.240.0100.05019.04
5.4.230.0000.06718.99
5.4.220.0100.06319.09
5.4.210.0000.08319.05
5.4.200.0030.08318.89
5.4.190.0200.06018.80
5.4.180.0070.04319.11
5.4.170.0070.04318.95
5.4.160.0130.04719.10
5.4.150.0070.08019.00
5.4.140.0070.06716.42
5.4.130.0070.07316.39
5.4.120.0100.03716.33
5.4.110.0000.05016.36
5.4.100.0030.07716.31
5.4.90.0030.05016.46
5.4.80.0030.04316.45
5.4.70.0070.07316.47
5.4.60.0170.06316.15
5.4.50.0000.06316.19
5.4.40.0070.04016.34
5.4.30.0000.06716.32
5.4.20.0030.06316.25
5.4.10.0130.06016.27
5.4.00.0100.07315.82
5.3.290.0070.07714.50
5.3.280.0070.05714.59
5.3.270.0030.04714.46
5.3.260.0070.07714.48
5.3.250.0130.07014.46
5.3.240.0030.05314.43
5.3.230.0000.05714.45
5.3.220.0130.06314.55
5.3.210.0100.04714.50
5.3.200.0030.06314.39
5.3.190.0100.06314.52
5.3.180.0000.05314.52
5.3.170.0030.06314.42
5.3.160.0100.07014.43
5.3.150.0100.05714.38
5.3.140.0100.07014.46
5.3.130.0030.08014.40
5.3.120.0100.04714.55
5.3.110.0100.07714.54
5.3.100.0070.07714.02
5.3.90.0130.05713.87
5.3.80.0030.06013.87
5.3.70.0030.04313.88
5.3.60.0100.07014.02
5.3.50.0070.07313.87
5.3.40.0070.07713.90
5.3.30.0170.06713.88
5.3.20.0130.05013.55
5.3.10.0070.06313.61
5.3.00.0030.07313.57
5.2.170.0030.08011.21
5.2.160.0030.05311.16
5.2.150.0070.05711.21
5.2.140.0200.04311.12
5.2.130.0000.06010.98
5.2.120.0030.06310.93
5.2.110.0070.06010.93
5.2.100.0030.04011.17
5.2.90.0070.05711.02
5.2.80.0030.06311.09
5.2.70.0030.06011.14
5.2.60.0100.05311.11
5.2.50.0070.05311.09
5.2.40.0070.06010.99
5.2.30.0030.06310.92
5.2.20.0130.05010.82
5.2.10.0030.04710.77
5.2.00.0030.05710.74
5.1.60.0030.04310.05
5.1.50.0030.0539.82
5.1.40.0000.05710.00
5.1.30.0000.05710.26
5.1.20.0100.04710.46
5.1.10.0070.0379.89
5.1.00.0030.04010.05
5.0.50.0130.0339.18
5.0.40.0000.0509.18
5.0.30.0070.0579.18
5.0.20.0000.0279.18
5.0.10.0000.0239.18
5.0.00.0100.0609.18
4.4.90.0030.0279.18
4.4.80.0030.0339.18
4.4.70.0030.0309.18
4.4.60.0070.0339.18
4.4.50.0030.0339.18
4.4.40.0000.0339.18
4.4.30.0000.0379.18
4.4.20.0000.0379.18
4.4.10.0000.0279.18
4.4.00.0000.0439.18
4.3.110.0000.0309.18
4.3.100.0000.0209.18
4.3.90.0000.0509.18
4.3.80.0030.0279.18
4.3.70.0000.0279.18
4.3.60.0000.0279.18
4.3.50.0030.0179.18
4.3.40.0070.0479.18
4.3.30.0000.0379.18
4.3.20.0070.0309.18
4.3.10.0000.0339.18
4.3.00.0100.0239.18

preferences:
36.81 ms | 401 KiB | 5 Q