3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('now'); $firstOfMonth = $date->modify('1st day of current month')->format(DATE_ISO8601); $lastOfMonth = $date->modify('end of month')->format(DATE_ISO8601); var_dump(array($firstOfMonth, $lastOfMonth));

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.60.0070.00716.63
8.3.50.0080.01117.45
8.3.40.0150.00418.95
8.3.30.0070.00719.04
8.3.20.0080.00018.98
8.3.10.0040.00418.90
8.3.00.0030.00619.50
8.2.180.0080.00818.41
8.2.170.0100.00322.96
8.2.160.0070.01020.52
8.2.150.0050.00224.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0060.00321.13
8.2.110.0090.00020.89
8.2.100.0030.00918.03
8.2.90.0000.00818.16
8.2.80.0030.00619.21
8.2.70.0040.00417.75
8.2.60.0050.00517.63
8.2.50.0000.00817.88
8.2.40.0040.00418.34
8.2.30.0050.00218.05
8.2.20.0060.00317.80
8.2.10.0080.00017.82
8.2.00.0000.00717.87
8.1.280.0140.00725.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00822.09
8.1.230.0060.00620.95
8.1.220.0030.00517.76
8.1.210.0040.00418.79
8.1.200.0080.00317.47
8.1.190.0040.00417.48
8.1.180.0050.00318.10
8.1.170.0030.00618.78
8.1.160.0100.00018.92
8.1.150.0040.00418.80
8.1.140.0050.00217.46
8.1.130.0070.00017.86
8.1.120.0040.00417.57
8.1.110.0050.00217.50
8.1.100.0000.00817.55
8.1.90.0000.00717.56
8.1.80.0000.00717.57
8.1.70.0040.00417.48
8.1.60.0040.00417.63
8.1.50.0080.00017.57
8.1.40.0000.00817.58
8.1.30.0000.00717.75
8.1.20.0040.00417.64
8.1.10.0000.00717.63
8.1.00.0000.00717.59
8.0.300.0040.00419.94
8.0.290.0040.00417.00
8.0.280.0030.00318.46
8.0.270.0000.00717.18
8.0.260.0000.00618.35
8.0.250.0060.00317.19
8.0.240.0000.00717.05
8.0.230.0030.00317.02
8.0.220.0030.00317.07
8.0.210.0000.00717.13
8.0.200.0030.00317.03
8.0.190.0000.00717.15
8.0.180.0100.00017.10
8.0.170.0080.00017.02
8.0.160.0000.00717.07
8.0.150.0000.00817.00
8.0.140.0030.00617.04
8.0.130.0030.00313.48
8.0.120.0000.00717.03
8.0.110.0040.00417.06
8.0.100.0040.00416.95
8.0.90.0070.00017.07
8.0.80.0030.01217.04
8.0.70.0030.00516.98
8.0.60.0070.00017.03
8.0.50.0000.00816.97
8.0.30.0040.01317.20
8.0.20.0150.00617.27
8.0.10.0040.00417.09
8.0.00.0090.01416.75
7.4.330.0020.00213.14
7.4.320.0000.00616.70
7.4.300.0030.00316.72
7.4.290.0060.00016.61
7.4.280.0000.00816.65
7.4.270.0070.00016.55
7.4.260.0060.00013.40
7.4.250.0060.00316.64
7.4.240.0050.00316.74
7.4.230.0030.00516.81
7.4.220.0150.00316.68
7.4.210.0110.00316.68
7.4.200.0000.00816.62
7.4.190.0070.00016.58
7.4.160.0130.00316.52
7.4.150.0130.00416.68
7.4.140.0140.00416.66
7.4.130.0050.01216.67
7.4.120.0110.01016.58
7.4.110.0030.01416.73
7.4.100.0130.00416.57
7.4.90.0090.00916.64
7.4.80.0030.01319.39
7.4.70.0090.00616.77
7.4.60.0130.00616.68
7.4.50.0000.00916.52
7.4.40.0050.00816.42
7.4.30.0100.01416.78
7.4.00.0140.00415.22
7.3.330.0030.00313.31
7.3.320.0000.00813.09
7.3.310.0000.00716.37
7.3.300.0000.00716.23
7.3.290.0070.01316.38
7.3.280.0060.01016.35
7.3.270.0110.00616.74
7.3.260.0130.00316.48
7.3.250.0100.00816.56
7.3.240.0080.00816.53
7.3.230.0100.00716.60
7.3.210.0100.00716.48
7.3.200.0120.00916.52
7.3.190.0090.00616.64
7.3.180.0120.00316.54
7.3.170.0030.01816.71
7.3.160.0110.00516.59
7.3.120.0030.01314.95
7.2.330.0070.01016.78
7.2.320.0090.01216.59
7.2.310.0070.01616.61
7.2.300.0000.01616.85
7.2.290.0150.00316.82
7.2.100.1040.01014.30
7.2.90.0560.00414.63
7.2.80.0090.00914.73
7.2.70.0780.00714.62
7.2.60.0810.00814.92
7.2.50.1120.00315.00
7.2.40.1010.01014.78
7.2.30.0940.01614.75
7.2.20.0900.01514.72
7.2.10.1080.00714.85
7.2.00.1160.00714.96
7.1.220.0180.00413.61
7.1.210.0270.00013.63
7.1.200.0920.01313.57
7.1.190.1050.01313.38
7.1.180.1270.00013.77
7.1.170.0990.00313.52
7.1.160.1150.00013.66
7.1.150.1060.00713.66
7.1.140.1340.00313.48
7.1.130.1100.00613.48
7.1.120.1050.00613.39
7.1.110.0320.00813.71
7.1.100.1080.00313.58
7.1.90.1470.00313.83
7.1.80.0080.01214.05
7.1.70.1100.00713.63
7.1.60.1690.00331.93
7.1.50.1750.01032.02
7.1.40.0280.00731.64
7.1.30.0360.00031.62
7.1.20.1440.00731.64
7.1.10.0480.00913.72
7.1.00.0100.00713.65
7.0.310.0500.00613.12
7.0.300.0070.00713.23
7.0.290.1140.00613.26
7.0.280.1030.00413.27
7.0.270.1070.00413.28
7.0.260.1280.00013.13
7.0.250.1170.00413.29
7.0.240.1040.00713.41
7.0.230.0410.00313.35
7.0.220.1500.00713.40
7.0.210.1200.00413.58
7.0.200.0150.00413.52
7.0.190.1530.00013.60
7.0.180.0340.00313.82
7.0.170.1230.00813.43
7.0.160.1360.00013.89
7.0.150.0990.00613.47
7.0.140.0090.00613.69
7.0.130.1390.00613.77
7.0.120.1580.00013.64
7.0.110.1370.00713.39
7.0.100.1510.00313.57
7.0.90.1790.00313.60
7.0.80.1230.00313.58
7.0.70.1240.00713.34
7.0.60.0190.00613.71
7.0.50.1290.00313.72
7.0.40.1590.00313.45
7.0.30.0240.00913.55
7.0.20.1160.00613.63
7.0.10.1210.00313.62
7.0.00.1130.00313.56
5.6.380.0050.00813.97
5.6.370.0080.00613.87
5.6.360.0090.00614.30
5.6.350.0140.00013.84
5.6.340.0070.00714.08
5.6.330.0130.00714.13
5.6.320.0050.00714.50
5.6.310.0080.00514.54
5.6.300.0060.00614.20
5.6.290.0050.00814.43
5.6.280.0030.00914.25
5.6.270.0040.00814.23
5.6.260.0100.00314.54
5.6.250.0040.01114.23
5.6.240.0050.00814.33
5.6.230.0080.00414.32
5.6.220.0090.00514.26
5.6.210.0160.00014.29
5.6.200.0090.00614.21
5.6.190.0100.00514.42
5.6.180.0110.00414.44
5.6.170.0130.00314.06
5.6.160.0060.00814.26
5.6.150.0040.01114.43
5.6.140.0050.00814.18
5.6.130.0060.00614.31
5.6.120.0110.00814.48
5.6.110.0170.00014.23
5.6.100.0030.01214.26
5.6.90.0000.01514.25
5.6.80.0000.01514.37
5.6.70.0140.00014.41
5.6.60.0110.00214.28
5.6.50.0100.00714.33
5.6.40.0130.00314.15
5.6.30.0080.00514.20
5.6.20.0050.00814.40
5.6.10.0100.00514.18
5.6.00.0040.01214.25
5.5.380.0000.00911.73
5.5.370.0090.00411.73
5.5.360.0040.00511.73
5.5.350.0040.01111.73
5.5.340.0050.00511.73
5.5.330.0120.00011.73
5.5.320.0000.01111.73
5.5.310.0040.00811.73
5.5.300.0030.00711.73
5.5.290.0000.01011.73
5.5.280.0110.00011.73
5.5.270.0050.01011.73
5.5.260.0080.00811.73
5.5.250.0060.00611.73
5.5.240.0070.00311.73
5.5.230.0040.00711.73
5.5.220.0070.00411.73
5.5.210.0050.00511.73
5.5.200.0030.00611.73
5.5.190.0100.00011.73
5.5.180.0090.00211.73
5.5.170.0080.00813.92
5.5.160.0040.00711.73
5.5.150.0130.00011.73
5.5.140.0070.00411.73
5.5.130.0090.00911.73
5.5.120.0110.00211.73
5.5.110.0190.00711.73
5.5.100.0000.01511.73
5.5.90.0080.00611.73
5.5.80.0080.00411.73
5.5.70.0110.00411.73
5.5.60.0120.00011.73
5.5.50.0060.00611.73
5.5.40.0060.00611.73
5.5.30.0050.00811.73
5.5.20.0030.01011.73
5.5.10.0110.00011.73
5.5.00.0130.00311.73
5.4.450.0130.00411.73
5.4.440.0070.00711.73
5.4.430.0120.00311.73
5.4.420.0060.00911.73
5.4.410.0070.00711.73
5.4.400.0030.00811.73
5.4.390.0090.00311.73
5.4.380.0090.00311.73
5.4.370.0040.00711.73
5.4.360.0000.01211.73
5.4.350.0090.00311.73
5.4.340.0060.00611.73
5.4.330.0100.00411.73
5.4.320.0030.00911.73
5.4.310.0100.00311.73
5.4.300.0170.00011.73
5.4.290.0080.00511.73
5.4.280.0090.00311.73
5.4.270.0040.00711.73
5.4.260.0150.00011.73
5.4.250.0110.00411.73
5.4.240.0140.00011.73
5.4.230.0100.00511.73
5.4.220.0000.01211.73
5.4.210.0040.00811.73
5.4.200.0000.01211.73
5.4.190.0060.00611.73
5.4.180.0060.00611.73
5.4.170.0070.00711.73
5.4.160.0180.00311.73
5.4.150.0050.01111.73
5.4.140.0120.00011.73
5.4.130.0100.00211.73
5.4.120.0120.00011.73
5.4.110.0000.01311.73
5.4.100.0040.00811.73
5.4.90.0080.00411.73
5.4.80.0080.00411.73
5.4.70.0080.00411.73
5.4.60.0130.00011.73
5.4.50.0070.00511.73
5.4.40.0000.01111.73
5.4.30.0060.00611.73
5.4.20.0050.00511.73
5.4.10.0040.00811.73
5.4.00.0120.00011.73
5.3.290.0050.00911.73
5.3.280.0000.01411.73
5.3.270.0060.00611.73
5.3.260.0100.00011.73
5.3.250.0070.00411.73
5.3.240.0070.00311.73
5.3.230.0030.00711.73
5.3.220.0050.00511.73
5.3.210.0070.00411.73
5.3.200.0110.00011.73
5.3.190.0050.00511.73
5.3.180.0050.00511.73
5.3.170.0090.00311.73
5.3.160.0050.00511.73
5.3.150.0100.00011.73
5.3.140.0100.00011.73
5.3.130.0000.01011.73
5.3.120.0100.00011.73
5.3.110.0050.00511.73
5.3.100.0000.01111.73
5.3.90.0040.00811.73
5.3.80.0070.00411.73
5.3.70.0050.00511.73
5.3.60.0050.00511.73
5.3.50.0100.00011.73
5.3.40.0100.00011.73
5.3.30.0050.00511.73
5.3.20.0100.00011.73
5.3.10.0000.01011.73
5.3.00.0060.00611.73
5.2.170.0080.00011.73
5.2.160.0080.00011.73
5.2.150.0090.00011.73
5.2.140.0040.00411.73
5.2.130.0090.00011.73
5.2.120.0070.00211.73
5.2.110.0070.00211.73
5.2.100.0060.00311.73
5.2.90.0100.00011.73
5.2.80.0050.00511.73
5.2.70.0070.00211.73
5.2.60.0090.00011.73
5.2.50.0070.00511.73
5.2.40.0090.00311.73
5.2.30.0050.00511.73
5.2.20.0090.00011.73
5.2.10.0040.00411.73
5.2.00.0080.00011.73
5.1.60.0080.00011.73
5.1.50.0080.00011.73
5.1.40.0040.00411.73
5.1.30.0080.00011.73
5.1.20.0000.00711.73
5.1.10.0050.00311.73
5.1.00.0050.00511.73
5.0.50.0070.00011.73
5.0.40.0030.00311.73
5.0.30.0070.00011.73
5.0.20.0070.00011.73
5.0.10.0060.00011.73
5.0.00.0060.00011.73
4.4.90.0000.00611.73
4.4.80.0030.00311.73
4.4.70.0050.00011.73
4.4.60.0000.00511.73
4.4.50.0020.00211.73
4.4.40.0000.00611.73
4.4.30.0000.00511.73
4.4.20.0030.00311.73
4.4.10.0030.00211.73
4.4.00.0000.00511.73
4.3.110.0000.00611.73
4.3.100.0000.00611.73
4.3.90.0030.00311.73
4.3.80.0050.00011.73
4.3.70.0050.00011.73
4.3.60.0000.00611.73
4.3.50.0000.00511.73
4.3.40.0050.00011.73
4.3.30.0030.00311.73
4.3.20.0030.00311.73
4.3.10.0030.00211.73
4.3.00.0000.00411.73

preferences:
50.06 ms | 400 KiB | 5 Q