3v4l.org

run code in 300+ PHP versions simultaneously
<?php $star='1389740400'; $endDate='1394838000'; $start=new DrupalDateTime(); $start->setTimestamp($star); $start->modify('first day of this month'); $end = new DrupalDateTime(); $end->setTimestamp($endDate); $end->modify('first day of next month'); $interval = \DateInterval::createFromDateString('1 month'); $period = new \DatePeriod($start, $interval, $end,0);

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)
8.3.40.0060.01218.97
8.3.30.0090.00618.54
8.3.20.0040.00420.30
8.3.10.0040.00421.84
8.3.00.0000.00820.77
8.2.170.0110.00322.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0090.00019.16
8.2.120.0110.00426.35
8.2.110.0070.00422.25
8.2.100.0050.00517.93
8.2.90.0050.00319.17
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0070.00017.80
8.2.50.0050.00318.07
8.2.40.0040.00422.28
8.2.30.0070.00020.66
8.2.20.0030.00617.76
8.2.10.0030.00518.16
8.2.00.0070.00018.00
8.1.270.0000.00820.43
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0030.00623.92
8.1.230.0090.00319.17
8.1.220.0000.00817.74
8.1.210.0070.00318.77
8.1.200.0030.00617.36
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0000.01018.57
8.1.160.0000.00820.70
8.1.150.0000.00718.86
8.1.140.0050.00319.52
8.1.130.0000.00717.55
8.1.120.0000.00717.38
8.1.110.0050.00317.39
8.1.100.0040.00417.37
8.1.90.0070.00017.30
8.1.80.0030.00617.23
8.1.70.0030.00317.36
8.1.60.0000.00817.49
8.1.50.0000.00917.50
8.1.40.0080.00017.55
8.1.30.0030.00517.56
8.1.20.0080.00017.64
8.1.10.0060.00317.67
8.1.00.0040.00417.55
8.0.300.0040.00718.77
8.0.290.0000.00716.63
8.0.280.0090.00018.26
8.0.270.0030.00317.20
8.0.260.0070.00017.24
8.0.250.0050.00216.86
8.0.240.0040.00416.93
8.0.230.0070.00016.85
8.0.220.0030.00316.88
8.0.210.0000.00716.85
8.0.200.0000.00716.84
8.0.190.0040.00416.92
8.0.180.0040.00416.95
8.0.170.0030.00616.92
8.0.160.0000.00816.85
8.0.150.0070.00016.90
8.0.140.0040.00416.89
8.0.130.0030.00313.36
8.0.120.0080.00016.89
8.0.110.0070.00016.88
8.0.100.0000.00716.79
8.0.90.0040.00416.89
8.0.80.0040.01116.91
8.0.70.0050.00216.77
8.0.60.0020.00516.84
8.0.50.0000.00716.93
8.0.30.0050.01416.82
8.0.20.0100.00917.40
8.0.10.0040.00416.81
8.0.00.0090.00816.79
7.4.330.0050.00016.84
7.4.320.0000.00816.35
7.4.300.0000.00716.53
7.4.290.0000.00916.55
7.4.280.0000.00716.51
7.4.270.0050.00216.46
7.4.260.0030.00316.48
7.4.250.0050.00316.55
7.4.240.0050.00216.43
7.4.230.0000.00716.36
7.4.220.0190.00316.50
7.4.210.0040.01116.57
7.4.200.0070.00016.49
7.4.160.0060.00916.59
7.4.150.0170.00017.40
7.4.140.0120.00717.86
7.4.130.0050.01216.54
7.4.120.0090.00816.68
7.4.110.0090.00916.37
7.4.100.0120.00616.65
7.4.90.0030.01316.41
7.4.80.0080.01619.39
7.4.70.0150.00916.50
7.4.60.0130.00316.45
7.4.50.0060.00616.48
7.4.40.0090.01216.52
7.4.30.0180.00416.51
7.4.00.0070.01114.97
7.3.330.0060.00013.11
7.3.320.0060.00313.11
7.3.310.0000.00716.35
7.3.300.0000.00716.18
7.3.290.0060.01016.26
7.3.280.0120.00516.26
7.3.270.0070.01017.40
7.3.260.0080.00816.34
7.3.250.0070.01016.35
7.3.240.0110.00716.46
7.3.230.0070.01016.39
7.3.210.0060.01216.50
7.3.200.0070.01516.26
7.3.190.0070.00816.45
7.3.180.0060.00916.25
7.3.170.0070.01016.46
7.3.160.0000.01516.25
7.3.00.0120.00316.34
7.2.330.0100.00716.30
7.2.320.0080.01616.54
7.2.310.0130.01016.24
7.2.300.0080.00816.36
7.2.290.0100.00716.57
7.2.130.0070.00716.84
7.2.120.0030.01316.89
7.2.110.0060.00316.80
7.2.100.0120.00316.70
7.2.90.0040.01216.71
7.2.80.0070.00716.70
7.2.70.0040.01116.50
7.2.60.0040.00916.81
7.2.50.0000.01616.74
7.2.40.0090.00616.57
7.2.30.0030.00916.88
7.2.20.0050.00516.88
7.2.10.0060.00916.58
7.2.00.0030.01218.08
7.1.250.0000.01315.63
7.1.240.0090.00615.28
7.1.230.0110.00315.62
7.1.220.0030.01015.57
7.1.210.0120.00315.61
7.1.200.0100.00315.41
7.1.190.0060.00615.61
7.1.180.0070.00715.41
7.1.170.0000.01215.51
7.1.160.0070.00715.71
7.1.150.0030.00615.38
7.1.140.0030.01015.63
7.1.130.0100.00315.49
7.1.120.0030.01015.57
7.1.110.0060.00315.55
7.1.100.0080.00716.95
7.1.90.0070.00415.71
7.1.80.0000.01015.41
7.1.70.0080.00616.18
7.1.60.0100.01017.61
7.1.50.0120.00516.27
7.1.40.0030.00715.70
7.1.30.0070.00715.77
7.1.20.0030.01015.46
7.1.10.0030.00615.57
7.1.00.0040.04319.02
7.0.330.0060.00314.95
7.0.320.0070.00715.23
7.0.310.0070.00315.15
7.0.300.0040.01115.44
7.0.290.0000.01015.31
7.0.280.0040.00415.04
7.0.270.0030.00715.16
7.0.260.0100.00315.19
7.0.250.0080.00415.12
7.0.240.0040.00415.23
7.0.230.0070.00715.50
7.0.220.0040.00415.24
7.0.210.0070.00715.52
7.0.200.0020.00815.96
7.0.190.0000.01315.12
7.0.180.0110.00015.23
7.0.170.0070.00715.28
7.0.160.0120.00015.36
7.0.150.0070.00715.44
7.0.140.0060.00315.25
7.0.130.0030.00715.13
7.0.120.0100.00315.05
7.0.110.0060.01015.12
7.0.100.0030.00515.43
7.0.90.0070.01015.36
7.0.80.0030.00315.50
7.0.70.0060.00615.50
7.0.60.0060.03618.56
7.0.50.0070.04116.66
7.0.40.0070.04716.56
7.0.30.0080.03316.78
7.0.20.0140.02716.61
7.0.10.0020.04216.66
7.0.00.0070.04316.79
5.6.380.0070.00714.32
5.6.370.0100.00314.64
5.6.360.0060.00613.90
5.6.350.0100.00314.41
5.6.340.0070.00714.56
5.6.330.0040.01114.14
5.6.320.0060.00914.48
5.6.310.0090.00614.31
5.6.300.0040.00414.20
5.6.290.0030.00814.52
5.6.280.0050.03317.75
5.6.270.0100.00014.20
5.6.260.0070.00714.40
5.6.250.0100.00314.28
5.6.240.0040.00714.33
5.6.230.0040.01114.49
5.6.220.0120.00314.40
5.6.210.0030.04517.47
5.6.200.0070.03516.14
5.6.190.0030.02617.53
5.6.180.0120.03417.25
5.6.170.0130.03517.42
5.6.160.0050.05017.42
5.6.150.0050.03416.26
5.6.140.0080.03016.22
5.6.130.0060.02116.35
5.6.120.0080.04317.64
5.6.110.0150.04017.55
5.6.100.0060.04417.60
5.6.90.0090.03517.66
5.6.80.0060.02317.33
5.6.70.0060.00614.36
5.6.60.0040.01114.16
5.6.50.0030.01114.04
5.6.40.0000.01014.23
5.6.30.0120.00014.11
5.6.20.0100.00314.09
5.6.10.0030.01014.26
5.6.00.0030.00714.14
5.5.380.0070.00311.18
5.5.370.0040.00711.18
5.5.360.0040.00411.18
5.5.350.0190.03915.81
5.5.340.0030.02714.59
5.5.330.0040.02415.62
5.5.320.0150.02315.84
5.5.310.0170.02415.73
5.5.300.0070.03714.54
5.5.290.0110.03314.56
5.5.280.0020.03015.91
5.5.270.0110.03815.96
5.5.260.0080.03716.06
5.5.250.0070.04015.83
5.5.240.0090.03715.71
5.5.230.0000.01011.18
5.5.220.0000.00811.18
5.5.210.0000.01111.18
5.5.200.0060.00611.18
5.5.190.0000.00611.18
5.5.180.0060.00611.18
5.5.170.0030.00311.18
5.5.160.0000.01111.18
5.5.150.0000.00911.18
5.5.140.0060.00611.18
5.5.130.0040.00711.18
5.5.120.0070.00411.18
5.5.110.0090.00311.18
5.5.100.0030.00511.18
5.5.90.0070.00711.18
5.5.80.0040.00411.18
5.5.70.0040.00811.18
5.5.60.0090.00311.18
5.5.50.0030.00911.18
5.5.40.0000.00611.18
5.5.30.0000.01211.18
5.5.20.0000.01011.18
5.5.10.0030.00311.18
5.5.00.0030.01011.18

preferences:
51.02 ms | 400 KiB | 5 Q