3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = new DateTime(); $currentDay = $currentDate->format("j"); // Number of days in the current month $daysInMonth = $currentDate->format("t"); $daysToProlong = range($currentDay, 31); var_dump($currentDay); var_dump($daysInMonth); var_dump($daysToProlong);

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.0120.00316.50
8.3.50.0110.00722.05
8.3.40.0120.00318.76
8.3.30.0080.00818.55
8.3.20.0040.00420.34
8.3.10.0000.00823.66
8.3.00.0080.00017.46
8.2.180.0040.01118.54
8.2.170.0070.01022.96
8.2.160.0100.00722.27
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.01117.72
8.2.110.0030.00622.13
8.2.100.0090.00618.05
8.2.90.0050.00319.27
8.2.80.0000.00817.97
8.2.70.0000.00917.75
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0000.00719.28
8.2.30.0000.00720.51
8.2.20.0040.00417.73
8.2.10.0030.00618.13
8.2.00.0020.00518.11
8.1.280.0040.01125.92
8.1.270.0060.00323.90
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.46
8.1.230.0120.00317.53
8.1.220.0040.00417.79
8.1.210.0000.01218.77
8.1.200.0000.00917.48
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0000.00918.71
8.1.160.0040.00421.94
8.1.150.0000.00818.94
8.1.140.0030.00519.55
8.1.130.0000.00717.70
8.1.120.0040.00417.57
8.1.110.0000.00717.61
8.1.100.0050.00317.59
8.1.90.0040.00417.64
8.1.80.0040.00417.62
8.1.70.0040.00417.66
8.1.60.0000.00817.65
8.1.50.0030.00617.47
8.1.40.0040.00417.55
8.1.30.0060.00317.64
8.1.20.0030.00517.71
8.1.10.0040.00417.69
8.1.00.0000.00917.66
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0040.00418.57
8.0.270.0080.00017.19
8.0.260.0030.00317.18
8.0.250.0000.00817.07
8.0.240.0060.00316.93
8.0.230.0040.00416.96
8.0.220.0000.00716.98
8.0.210.0000.00717.05
8.0.200.0030.00317.03
8.0.190.0000.00717.06
8.0.180.0040.00417.08
8.0.170.0000.00817.03
8.0.160.0000.00717.02
8.0.150.0030.00517.00
8.0.140.0000.00717.00
8.0.130.0000.00613.38
8.0.120.0040.00416.97
8.0.110.0040.00416.99
8.0.100.0000.00717.09
8.0.90.0000.00717.07
8.0.80.0040.01117.06
8.0.70.0040.00417.09
8.0.60.0040.00416.81
8.0.50.0040.00417.09
8.0.30.0100.01017.19
8.0.20.0070.01117.40
8.0.10.0040.00417.14
8.0.00.0080.01016.81
7.4.330.0000.00515.08
7.4.320.0060.00016.57
7.4.300.0060.00016.68
7.4.290.0000.00616.58
7.4.280.0040.00416.68
7.4.270.0030.00316.49
7.4.260.0000.00716.55
7.4.250.0060.00316.44
7.4.240.0010.00616.65
7.4.230.0000.00716.56
7.4.220.0040.01416.60
7.4.210.0120.00316.61
7.4.200.0000.00816.47
7.4.160.0030.01316.63
7.4.150.0060.01217.40
7.4.140.0100.00817.86
7.4.130.0150.00516.73
7.4.120.0120.00416.68
7.4.110.0000.01716.37
7.4.100.0060.01116.51
7.4.90.0090.00816.39
7.4.80.0090.01319.39
7.4.70.0030.02116.61
7.4.60.0070.01016.46
7.4.50.0060.00316.28
7.4.40.0130.01016.51
7.4.30.0130.00716.60
7.4.00.0000.01614.77
7.3.330.0000.00613.04
7.3.320.0030.00313.12
7.3.310.0070.00016.22
7.3.300.0000.00716.26
7.3.290.0030.00316.25
7.3.280.0070.01216.31
7.3.270.0170.00017.40
7.3.260.0090.00916.51
7.3.250.0070.01016.33
7.3.240.0130.00416.46
7.3.230.0100.01316.46
7.3.210.0070.01316.42
7.3.200.0030.01316.26
7.3.190.0060.01216.52
7.3.180.0070.01016.35
7.3.170.0060.00916.32
7.3.160.0030.01316.41
7.2.330.0150.00316.52
7.2.320.0070.01716.63
7.2.310.0100.00616.42
7.2.300.0070.01016.73
7.2.290.0080.01516.66
7.2.60.0100.00316.66
7.2.00.0100.00319.44
7.1.200.0000.01415.68
7.1.100.0090.00318.16
7.1.70.0000.00717.14
7.1.60.0100.01319.43
7.1.50.0070.00717.12
7.1.00.0000.08022.42
7.0.200.0810.00314.91
7.0.60.0000.08019.95
7.0.50.0100.04317.92
7.0.40.0130.04020.09
7.0.30.0000.08720.33
7.0.20.0330.06720.13
7.0.10.0100.08320.16
7.0.00.0000.06320.00
5.6.280.0030.06721.13
5.6.210.0170.06020.47
5.6.200.0070.08318.19
5.6.190.0030.08320.77
5.6.180.0400.04320.67
5.6.170.0230.03720.41
5.6.160.0070.04020.50
5.6.150.0100.06018.20
5.6.140.0030.08318.18
5.6.130.0100.08318.09
5.6.120.0170.07321.01
5.6.110.0200.06321.00
5.6.100.0030.09021.00
5.6.90.0070.05020.95
5.6.80.0070.06020.36
5.5.350.0330.07020.38
5.5.340.0000.04718.01
5.5.330.0000.04320.19
5.5.320.0300.06720.24
5.5.310.0230.06720.50
5.5.300.0070.08317.88
5.5.290.0000.06017.89
5.5.280.0030.04320.97
5.5.270.0070.04320.64
5.5.260.0000.04320.76
5.5.250.0030.04720.61
5.5.240.0100.03320.03
5.4.450.0330.07319.14
5.4.440.0330.05319.39
5.4.430.0300.05319.56
5.4.420.0330.06019.48
5.4.410.0270.06319.11
5.4.400.0230.05019.14
5.4.390.0230.05718.88
5.4.380.0230.07019.06
5.4.370.0300.07019.08
5.4.360.0200.04019.08
5.4.350.0230.05019.08
5.4.340.0330.04319.24
5.4.320.0370.03719.09
5.4.310.0200.03719.07
5.4.300.0270.04719.13
5.4.290.0170.04319.08
5.4.280.0230.05019.05
5.4.270.0400.06319.13
5.4.260.0270.04019.23
5.4.250.0230.04719.12
5.4.240.0370.05719.08
5.4.230.0270.03719.15
5.4.220.0230.07318.91
5.4.210.0330.05719.15
5.4.200.0200.07319.05
5.4.190.0300.04019.13
5.4.180.0270.06719.07
5.4.170.0400.06319.23
5.4.160.0270.06319.08
5.4.150.0300.04719.04
5.4.140.0230.03716.47
5.4.130.0330.05016.33
5.4.120.0270.06016.31
5.4.110.0230.06716.26
5.4.100.0270.04316.31
5.4.90.0230.04316.45

preferences:
55.67 ms | 401 KiB | 5 Q