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, 23:59:59', $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.3.10.0210.00716.84
7.3.00.0180.00716.57
7.2.130.0150.00416.69
7.2.120.0190.00417.20
7.2.110.0070.01016.62
7.2.100.0090.00916.83
7.2.90.0160.00516.85
7.2.80.0120.00216.57
7.2.70.0130.01016.77
7.2.60.0110.00716.88
7.2.50.0130.00916.84
7.2.40.0070.01316.88
7.2.30.0090.01217.07
7.2.20.0070.00716.61
7.2.10.0070.01016.88
7.2.00.0050.00818.38
7.1.250.0040.01315.53
7.1.100.0080.00818.59
7.1.70.0050.00217.18
7.1.60.0000.01117.30
7.1.50.0090.00616.94
7.1.40.0030.01016.66
7.1.30.0080.00416.86
7.1.20.0080.01216.92
7.1.10.0000.00817.00
7.1.00.0000.01117.00
7.0.200.0000.00716.88
7.0.190.0000.00716.92
7.0.180.0100.00316.25
7.0.170.0050.00216.40
7.0.160.0070.00316.29
7.0.150.0040.00716.56
7.0.140.0050.00516.20
7.0.130.0050.00216.71
7.0.120.0000.00816.81
7.0.110.0030.00616.47
7.0.100.0000.00816.59
7.0.90.0000.00816.60
7.0.80.0000.00816.68
7.0.70.0000.00916.46
7.0.60.0070.00016.27
7.0.50.0000.00816.79
7.0.40.0000.00914.88
7.0.30.0000.00814.88
7.0.20.0040.00414.88
7.0.10.0030.00514.88
7.0.00.0050.00214.88
5.6.300.0100.03520.61
5.6.290.0070.03720.77
5.6.280.0030.04321.07
5.6.270.0100.04021.07
5.6.260.0030.04220.87
5.6.250.0030.04220.79
5.6.240.0030.05220.89
5.6.230.0030.04920.80
5.6.220.0030.04820.82
5.6.210.0000.04521.13
5.6.200.0060.03820.87
5.6.190.0030.04420.73
5.6.180.0030.04520.99
5.6.170.0030.04920.83
5.6.160.0070.03620.76
5.6.150.0030.04420.82
5.6.140.0030.04220.94
5.6.130.0030.04421.03
5.6.120.0030.04020.82
5.6.110.0070.08321.01
5.6.100.0070.04020.84
5.6.90.0100.07620.71
5.6.80.0030.04320.41
5.6.70.0070.06920.21
5.6.60.0030.04320.39
5.6.50.0100.04220.33
5.6.40.0000.04020.39
5.6.30.0000.04120.34
5.6.20.0030.04420.34
5.6.10.0030.04020.18
5.6.00.0030.03820.16
5.5.380.0090.03417.46
5.5.370.0070.03417.47
5.5.360.0070.05017.45
5.5.350.0130.04017.53
5.5.340.0030.05917.97
5.5.330.0030.04118.02
5.5.320.0030.04517.87
5.5.310.0030.04218.11
5.5.300.0030.04317.94
5.5.290.0000.04318.03
5.5.280.0070.03618.02
5.5.270.0030.05317.95
5.5.260.0000.04417.96
5.5.250.0070.08317.65
5.5.240.0030.04117.13
5.5.230.0040.03917.40
5.5.220.0070.03317.34
5.5.210.0030.04017.49
5.5.200.0070.03417.32
5.5.190.0060.03517.21
5.5.180.0070.04717.21
5.5.160.0000.04217.38
5.5.150.0030.05817.46
5.5.140.0030.07017.37
5.5.130.0000.04417.38
5.5.120.0000.04117.28
5.5.110.0060.05517.36
5.5.100.0030.04817.29
5.5.90.0030.04317.30
5.5.80.0030.03717.36
5.5.70.0000.04216.94
5.5.60.0030.03817.24
5.5.50.0000.04217.27
5.5.40.0060.03417.27
5.5.30.0060.03617.27
5.5.20.0060.03417.25
5.5.10.0030.03717.26
5.5.00.0090.03417.25
5.4.450.0030.03919.43
5.4.440.0070.06919.39
5.4.430.0100.05719.36
5.4.420.0030.03919.27
5.4.410.0030.04818.99
5.4.400.0000.04419.11
5.4.390.0070.06618.95
5.4.380.0000.04018.85
5.4.370.0040.03919.04
5.4.360.0030.04118.89
5.4.350.0060.03218.99
5.4.340.0100.04518.95
5.4.320.0070.05518.79
5.4.310.0070.07918.88
5.4.300.0030.04919.11
5.4.290.0000.04319.11
5.4.280.0130.03719.13
5.4.270.0030.03818.95
5.4.260.0070.04119.02
5.4.250.0030.04118.96
5.4.240.0100.03219.06
5.4.230.0030.04119.02
5.4.220.0070.03718.82
5.4.210.0030.03818.80
5.4.200.0030.04019.13
5.4.190.0000.04019.05
5.4.180.0000.04018.84
5.4.170.0030.03918.91
5.4.160.0070.04418.83
5.4.150.0030.03818.93
5.4.140.0030.06316.44
5.4.130.0030.03616.56
5.4.120.0000.04116.72
5.4.110.0030.04116.38
5.4.100.0000.03816.44
5.4.90.0000.04216.60
5.4.80.0000.04416.64
5.4.70.0030.03916.58
5.4.60.0070.03516.55
5.4.50.0090.03616.63
5.4.40.0070.03316.57
5.4.30.0030.04816.27
5.4.20.0070.03616.35
5.4.10.0040.04216.39
5.4.00.0100.03516.06
5.3.290.0030.07114.88
5.3.280.0100.03314.88
5.3.270.0000.04114.88
5.3.260.0030.03914.88
5.3.250.0030.03614.88
5.3.240.0100.03014.88
5.3.230.0100.02914.88
5.3.220.0030.04014.88
5.3.210.0000.04014.88
5.3.200.0030.03714.88
5.3.190.0110.03514.88
5.3.180.0060.03514.88
5.3.170.0030.03814.88
5.3.160.0130.03214.88
5.3.150.0030.04514.88
5.3.140.0030.03714.88
5.3.130.0000.05514.88
5.3.120.0070.03714.88
5.3.110.0060.04914.88
5.3.100.0040.03914.88
5.3.90.0000.04214.88
5.3.80.0070.03614.88
5.3.70.0120.03014.88
5.3.60.0100.03214.88
5.3.50.0070.03214.88
5.3.40.0040.03614.88
5.3.30.0040.03614.88
5.3.20.0070.03414.88
5.3.10.0030.04014.88
5.3.00.0000.04114.88
5.2.170.0030.03014.88
5.2.160.0100.02714.88
5.2.150.0030.03014.88
5.2.140.0030.02914.88
5.2.130.0000.03414.88
5.2.120.0040.03314.88
5.2.110.0040.02814.88
5.2.100.0000.03114.88
5.2.90.0030.02714.88
5.2.80.0000.03114.88
5.2.70.0030.03014.88
5.2.60.0000.03314.88
5.2.50.0030.03514.88
5.2.40.0000.03514.88
5.2.30.0120.02414.88
5.2.20.0000.03314.88
5.2.10.0090.02414.88
5.2.00.0030.02914.88
5.1.60.0030.02514.88
5.1.50.0030.02614.88
5.1.40.0030.02414.88
5.1.30.0000.02814.88
5.1.20.0030.02614.88
5.1.10.0040.02514.88
5.1.00.0030.02814.88
5.0.50.0030.02014.88
5.0.40.0000.02414.88
5.0.30.0000.03414.88
5.0.20.0000.02214.88
5.0.10.0040.01814.88
5.0.00.0060.02714.88
4.4.90.0030.01714.88
4.4.80.0030.01614.88
4.4.70.0040.01414.88
4.4.60.0000.01714.88
4.4.50.0000.01814.88
4.4.40.0040.02214.88
4.4.30.0000.02014.88
4.4.20.0000.01814.88
4.4.10.0030.02014.88
4.4.00.0030.02414.88
4.3.110.0000.01714.88
4.3.100.0000.01614.88
4.3.90.0000.02014.88
4.3.80.0000.02714.88
4.3.70.0040.01814.88
4.3.60.0000.01914.88
4.3.50.0000.02314.88
4.3.40.0000.02614.88
4.3.30.0000.01914.88
4.3.20.0030.01514.88
4.3.10.0030.01414.88
4.3.00.0030.01414.88

preferences:
40.29 ms | 401 KiB | 5 Q