3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Prague'); $t = 1414754455; // 31.10.2014 # time() - 24*60*60; // yesterday $t1 = strtotime("actual month", $t); $t2 = strtotime("first day of next month", $t); echo date("d.m.Y", $t) . ": $t\n"; echo date("d.m.Y", $t1) . ": $t1\n"; echo date("d.m.Y", $t2) . ": $t2\n"; echo "DIFF: " . ($t1-$t2);

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.0100.01018.73
8.3.30.0110.00419.06
8.3.20.0070.00020.29
8.3.10.0000.00823.61
8.3.00.0080.00019.51
8.2.170.0040.01122.96
8.2.160.0100.00720.52
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0060.00322.18
8.2.110.0030.00621.19
8.2.100.0110.00018.16
8.2.90.0030.00618.03
8.2.80.0030.00618.34
8.2.70.0030.00717.92
8.2.60.0070.00319.64
8.2.50.0030.00618.10
8.2.40.0030.00520.75
8.2.30.0000.00718.12
8.2.20.0000.00718.09
8.2.10.0000.00818.15
8.2.00.0060.00318.05
8.1.270.0090.00023.98
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00023.97
8.1.230.0120.00022.80
8.1.220.0030.00517.91
8.1.210.0090.00318.77
8.1.200.0060.00317.60
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0040.00418.84
8.1.160.0030.00322.27
8.1.150.0070.00019.05
8.1.140.0040.00417.73
8.1.130.0000.00817.91
8.1.120.0040.00417.75
8.1.110.0050.00317.72
8.1.100.0000.00717.64
8.1.90.0000.00717.73
8.1.80.0050.00317.65
8.1.70.0070.00017.66
8.1.60.0050.00517.87
8.1.50.0000.00817.72
8.1.40.0000.00917.64
8.1.30.0040.00417.84
8.1.20.0040.00417.86
8.1.10.0000.00817.74
8.1.00.0070.00017.56
8.0.300.0040.00420.11
8.0.290.0000.00717.00
8.0.280.0030.00318.67
8.0.270.0030.00317.41
8.0.260.0000.00817.32
8.0.250.0030.00317.17
8.0.240.0000.00817.32
8.0.230.0050.00217.20
8.0.220.0000.00817.21
8.0.210.0000.00717.21
8.0.200.0030.00317.20
8.0.190.0050.00317.36
8.0.180.0040.00417.23
8.0.170.0040.00417.13
8.0.160.0040.00417.31
8.0.150.0000.00717.13
8.0.140.0000.00717.01
8.0.130.0000.00613.59
8.0.120.0040.00417.13
8.0.110.0040.00417.22
8.0.100.0070.00017.14
8.0.90.0060.00317.14
8.0.80.0080.00817.26
8.0.70.0040.00417.24
8.0.60.0000.00817.26
8.0.50.0070.00017.11
8.0.30.0070.01517.32
8.0.20.0100.00917.45
8.0.10.0040.00417.15
8.0.00.0210.00217.11
7.4.330.0020.00215.27
7.4.320.0050.00316.87
7.4.300.0060.00016.87
7.4.290.0030.00616.80
7.4.280.0000.01016.72
7.4.270.0030.00316.87
7.4.260.0070.00016.83
7.4.250.0040.00416.69
7.4.240.0030.00416.80
7.4.230.0040.00416.80
7.4.220.0060.01516.69
7.4.210.0070.00716.72
7.4.200.0040.00416.42
7.4.160.0100.00716.59
7.4.150.0070.01017.40
7.4.140.0160.00917.86
7.4.130.0050.01116.78
7.4.120.0080.00816.66
7.4.110.0100.00716.69
7.4.100.0070.01016.83
7.4.90.0070.01016.58
7.4.80.0120.00719.39
7.4.70.0040.01216.81
7.4.60.0080.01416.67
7.4.50.0000.00816.74
7.4.40.0060.01116.59
7.4.30.0090.00616.58
7.4.10.0060.01215.45
7.4.00.0090.00515.41
7.3.330.0050.00013.35
7.3.320.0030.00313.28
7.3.310.0050.00216.36
7.3.300.0050.00316.57
7.3.290.0060.00916.54
7.3.280.0090.00916.51
7.3.270.0060.01017.40
7.3.260.0090.01316.52
7.3.250.0050.01216.81
7.3.240.0120.00616.63
7.3.230.0060.01216.53
7.3.210.0110.00616.70
7.3.200.0030.01319.39
7.3.190.0090.01116.81
7.3.180.0030.01416.71
7.3.170.0070.01316.84
7.3.160.0070.01416.55
7.3.130.0030.01315.06
7.3.120.0070.01115.05
7.3.110.0100.01015.02
7.3.100.0060.00915.17
7.3.90.0100.01015.14
7.3.80.0030.00615.18
7.3.70.0130.00314.90
7.3.60.0070.00715.10
7.3.50.0060.00614.96
7.3.40.0050.00315.17
7.3.30.0030.00914.79
7.3.20.0070.00416.94
7.3.10.0040.01116.99
7.3.00.0070.00316.92
7.2.330.0030.01617.05
7.2.320.0090.01516.89
7.2.310.0100.00616.80
7.2.300.0070.01016.84
7.2.290.0090.00916.92
7.2.260.0060.01215.43
7.2.250.0090.00915.53
7.2.240.0030.01215.46
7.2.230.0140.00315.48
7.2.220.0080.00815.45
7.2.210.0030.01115.11
7.2.200.0070.01015.36
7.2.190.0000.00915.28
7.2.180.0060.00615.02
7.2.170.0080.00415.06
7.2.160.0030.01015.16
7.2.150.0110.00417.10
7.2.140.0060.00917.12
7.2.130.0040.00717.24
7.2.120.0070.01017.21
7.2.110.0030.01017.28
7.2.100.0000.00917.14
7.2.90.0120.00317.21
7.2.80.0060.01017.23
7.2.70.0070.00717.25
7.2.60.0030.00716.88
7.2.50.0090.00617.21
7.2.40.0070.00717.01
7.2.30.0000.01416.96
7.2.20.0060.00917.19
7.2.10.0080.00817.19
7.2.00.0040.01118.38
7.1.330.0090.00616.09
7.1.320.0070.00716.01
7.1.310.0040.01116.00
7.1.300.0030.00616.19
7.1.290.0030.00716.08
7.1.280.0040.00416.13
7.1.270.0000.01016.14
7.1.260.0030.01315.95
7.1.250.0000.00815.88
7.1.240.0060.00916.23
7.1.230.0080.00616.16
7.1.220.0070.00316.08
7.1.210.0040.00815.96
7.1.200.0040.01216.02
7.1.190.0040.01215.84
7.1.180.0070.01016.15
7.1.170.0030.00816.11
7.1.160.0070.00315.98
7.1.150.0080.00416.20
7.1.140.0000.01516.16
7.1.130.0000.01516.00
7.1.120.0120.00615.95
7.1.110.0130.00315.97
7.1.100.0100.00317.05
7.1.90.0070.00716.02
7.1.80.0030.00916.07
7.1.70.0050.00616.69
7.1.60.0060.01717.59
7.1.50.0150.00716.53
7.1.40.0130.00615.65
7.1.30.0110.00316.08
7.1.20.0090.00616.13
7.1.10.0060.00616.03
7.1.00.0020.04519.26
7.0.330.0030.00615.53
7.0.320.0000.00915.39
7.0.310.0030.00615.70
7.0.300.0060.00615.74
7.0.290.0070.00715.55
7.0.280.0070.00415.39
7.0.270.0060.00615.51
7.0.260.0030.00515.69
7.0.250.0070.00715.73
7.0.240.0060.01015.36
7.0.230.0040.01115.61
7.0.220.0000.01215.76
7.0.210.0070.01015.49
7.0.200.0070.00616.27
7.0.190.0080.00415.38
7.0.180.0070.00715.61
7.0.170.0030.00815.66
7.0.160.0000.01415.68
7.0.150.0030.01015.72
7.0.140.0070.03818.82
7.0.130.0030.01015.64
7.0.120.0000.01215.77
7.0.110.0000.01015.72
7.0.100.0070.00715.51
7.0.90.0120.00315.58
7.0.80.0310.03717.61
7.0.70.0280.04717.77
7.0.60.0280.03917.71
7.0.50.0280.03618.01
7.0.40.0100.03016.93
7.0.30.0050.04316.84
7.0.20.0120.04216.81
7.0.10.0100.03516.91
7.0.00.0020.02816.93
5.6.400.0030.00714.57
5.6.390.0070.00714.39
5.6.380.0060.00314.61
5.6.370.0100.00014.43
5.6.360.0070.00714.45
5.6.350.0040.00714.41
5.6.340.0060.00614.49
5.6.330.0100.01014.52
5.6.320.0120.00314.23
5.6.310.0090.00614.70
5.6.300.0040.00414.16
5.6.290.0050.00514.51
5.6.280.0060.04017.60
5.6.270.0060.00314.48
5.6.260.0060.00914.32
5.6.250.0030.01314.70
5.6.240.0090.00614.49
5.6.230.0050.04517.58
5.6.220.0090.03017.50
5.6.210.0070.04217.50
5.6.200.0120.04117.80
5.6.190.0070.04317.70
5.6.180.0070.04717.65
5.6.170.0110.04017.73
5.6.160.0030.04717.83
5.6.150.0100.04317.82
5.6.140.0040.03017.57
5.6.130.0050.04817.81
5.6.120.0050.03217.66
5.6.110.0040.02517.70
5.6.100.0100.03817.76
5.6.90.0070.04517.63
5.6.80.0050.04317.45
5.6.70.0030.03417.30
5.6.60.0080.03517.31
5.6.50.0060.02817.31
5.6.40.0090.04217.36
5.6.30.0080.04217.39
5.6.20.0070.03417.37
5.6.10.0100.02517.27
5.6.00.0040.03417.40
5.5.380.0030.00914.54
5.5.370.0120.03817.42
5.5.360.0050.02517.46
5.5.350.0070.04517.55
5.5.340.0100.03517.72
5.5.330.0090.03917.54
5.5.320.0050.02717.74
5.5.310.0080.04317.73
5.5.300.0110.04117.62
5.5.290.0100.02717.56
5.5.280.0070.02417.51
5.5.270.0120.04217.69
5.5.260.0030.03117.58
5.5.250.0030.04817.54
5.5.240.0110.03717.31
5.5.230.0050.04417.13
5.5.220.0050.04517.19
5.5.210.0100.03217.08
5.5.200.0110.02617.30
5.5.190.0100.04017.31
5.5.180.0060.02717.28
5.5.170.0040.01114.26
5.5.160.0080.03717.24
5.5.150.0130.03817.22
5.5.140.0050.03317.16
5.5.130.0040.03017.16
5.5.120.0070.04317.19
5.5.110.0050.04217.23
5.5.100.0120.03217.10
5.5.90.0050.03317.14
5.5.80.0100.02817.39
5.5.70.0080.03817.22
5.5.60.0050.03817.33
5.5.50.0070.02316.90
5.5.40.0130.03817.27
5.5.30.0070.04417.02
5.5.20.0040.04317.08
5.5.10.0050.04117.13
5.5.00.0100.03517.29
5.4.450.0050.02815.32
5.4.440.0060.02215.19
5.4.430.0030.02815.24
5.4.420.0030.04315.30
5.4.410.0060.02115.27
5.4.400.0060.03415.13
5.4.390.0050.02615.18
5.4.380.0070.03215.12
5.4.370.0070.03915.01
5.4.360.0140.03314.93
5.4.350.0030.03715.08
5.4.340.0070.04315.10
5.4.330.0070.00711.06
5.4.320.0020.04615.15
5.4.310.0030.03415.23
5.4.300.0020.04314.98
5.4.290.0030.03915.10
5.4.280.0050.04415.11
5.4.270.0070.04114.96
5.4.260.0030.03314.88
5.4.250.0070.03915.07
5.4.240.0080.03814.87
5.4.230.0000.04515.16
5.4.220.0030.03415.07
5.4.210.0030.04415.06
5.4.200.0020.03215.10
5.4.190.0030.04015.01
5.4.180.0090.03615.00
5.4.170.0030.04315.14
5.4.160.0030.04114.93
5.4.150.0070.04315.13
5.4.140.0120.03313.71
5.4.130.0050.03813.68
5.4.120.0070.02713.87
5.4.110.0110.03513.69
5.4.100.0050.04013.82
5.4.90.0100.03113.76
5.4.80.0090.03713.68
5.4.70.0030.04313.79
5.4.60.0020.03313.83
5.4.50.0050.01913.58
5.4.40.0050.03713.66
5.4.30.0050.02913.71
5.4.20.0100.03013.59
5.4.10.0070.03713.62
5.4.00.0080.03813.45
5.3.290.0100.07714.64
5.3.280.0100.06714.55
5.3.270.0100.07714.59
5.3.260.0130.06314.61
5.3.250.0130.06714.56
5.3.240.0130.04314.57
5.3.230.0100.07014.59
5.3.220.0100.06714.41
5.3.210.0030.05714.58
5.3.200.0170.06714.55
5.3.190.0070.07714.55
5.3.180.0070.07714.50
5.3.170.0070.05714.42
5.3.160.0030.08014.41
5.3.150.0170.05714.43
5.3.140.0000.04714.54
5.3.130.0000.07314.48
5.3.120.0030.05014.54
5.3.110.0000.07714.48
5.3.100.0070.07713.90
5.3.90.0030.04714.01
5.3.80.0000.06713.97
5.3.70.0130.07313.97
5.3.60.0030.06013.98
5.3.50.0100.06013.87
5.3.40.0030.07713.93
5.3.30.0170.06713.87
5.3.20.0070.05713.63
5.3.10.0170.06313.64
5.3.00.0100.07013.56
5.2.170.0070.06311.10
5.2.160.0100.05011.16
5.2.150.0070.06011.18
5.2.140.0100.05710.97
5.2.130.0070.04711.05
5.2.120.0170.04711.09
5.2.110.0030.06011.09
5.2.100.0000.06011.04
5.2.90.0000.07011.05
5.2.80.0030.06011.01
5.2.70.0030.06310.88
5.2.60.0070.04310.84
5.2.50.0000.06010.98
5.2.40.0130.05710.86
5.2.30.0030.06310.80
5.2.20.0000.05010.95
5.2.10.0000.06310.97
5.2.00.0000.05310.79
5.1.60.0030.0509.82
5.1.50.0070.05010.05
5.1.40.0030.0539.86
5.1.30.0000.06010.35
5.1.20.0130.04710.26
5.1.10.0070.0509.91
5.1.00.0030.03310.13
5.0.50.0030.0438.55
5.0.40.0100.0338.25
5.0.30.0030.0638.21
5.0.20.0030.0438.27
5.0.10.0000.0508.05
5.0.00.0030.0478.25
4.4.90.0000.0377.33
4.4.80.0070.0307.33
4.4.70.0000.0377.33
4.4.60.0030.0377.33
4.4.50.0000.0307.33
4.4.40.0070.0507.33
4.4.30.0000.0407.33
4.4.20.0030.0277.33
4.4.10.0030.0337.33
4.4.00.0030.0577.33
4.3.110.0000.0377.33
4.3.100.0070.0307.33
4.3.90.0000.0377.33
4.3.80.0000.0537.33
4.3.70.0070.0237.33
4.3.60.0000.0377.33
4.3.50.0070.0277.33
4.3.40.0070.0507.33
4.3.30.0030.0337.33
4.3.20.0000.0377.33
4.3.10.0070.0337.33
4.3.00.0070.0307.33

preferences:
45.4 ms | 400 KiB | 5 Q