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("next 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.60.0160.00018.68
8.3.50.0190.00821.29
8.3.40.0160.00318.98
8.3.30.0140.00719.04
8.3.20.0070.00020.38
8.3.10.0000.00823.48
8.3.00.0040.00419.38
8.2.180.0070.00718.50
8.2.170.0120.00322.96
8.2.160.0170.00020.57
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0080.00021.99
8.2.110.0030.00622.20
8.2.100.0000.01117.88
8.2.90.0000.00819.40
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0000.00918.16
8.2.50.0040.00418.07
8.2.40.0000.00818.28
8.2.30.0040.00418.27
8.2.20.0080.00018.00
8.2.10.0080.00018.34
8.2.00.0040.00418.05
8.1.280.0070.00725.92
8.1.270.0090.00023.91
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0100.00024.01
8.1.230.0040.00819.12
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0040.00417.50
8.1.180.0040.00418.10
8.1.170.0050.00320.50
8.1.160.0040.00422.15
8.1.150.0000.00719.09
8.1.140.0000.00717.78
8.1.130.0050.00317.86
8.1.120.0040.00417.64
8.1.110.0060.00317.64
8.1.100.0040.00417.63
8.1.90.0050.00217.73
8.1.80.0000.00717.71
8.1.70.0000.00717.75
8.1.60.0040.00417.84
8.1.50.0040.00417.77
8.1.40.0000.00817.74
8.1.30.0030.00517.88
8.1.20.0040.00417.78
8.1.10.0090.00017.66
8.1.00.0040.00417.65
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0070.00018.59
8.0.270.0030.00317.48
8.0.260.0000.00617.37
8.0.250.0000.00817.23
8.0.240.0000.00817.21
8.0.230.0030.00317.14
8.0.220.0050.00217.24
8.0.210.0070.00017.18
8.0.200.0030.00317.21
8.0.190.0060.00317.30
8.0.180.0070.00017.16
8.0.170.0000.00717.13
8.0.160.0000.00817.10
8.0.150.0000.00717.03
8.0.140.0000.00817.05
8.0.130.0000.00613.54
8.0.120.0040.00417.13
8.0.110.0020.00517.11
8.0.100.0050.00217.04
8.0.90.0020.00517.06
8.0.80.0100.00717.11
8.0.70.0040.00417.15
8.0.60.0050.00217.23
8.0.50.0000.00817.16
8.0.30.0110.00717.39
8.0.20.0130.00517.42
8.0.10.0000.00717.22
8.0.00.0110.00617.00
7.4.330.0000.00515.18
7.4.320.0000.00716.64
7.4.300.0000.00616.65
7.4.290.0060.00316.64
7.4.280.0110.00016.72
7.4.270.0040.00416.73
7.4.260.0030.00316.57
7.4.250.0040.00416.80
7.4.240.0060.00216.74
7.4.230.0030.00316.73
7.4.220.0060.01216.63
7.4.210.0140.00716.76
7.4.200.0070.00016.59
7.4.160.0120.00416.56
7.4.150.0090.00917.40
7.4.140.0080.01117.86
7.4.130.0090.00716.64
7.4.120.0110.00616.70
7.4.110.0060.01116.87
7.4.100.0090.00916.75
7.4.90.0130.00316.59
7.4.80.0100.01319.39
7.4.70.0140.00316.77
7.4.60.0100.00616.73
7.4.50.0040.00016.43
7.4.40.0100.00716.46
7.4.30.0080.00816.71
7.4.00.0000.01515.20
7.3.330.0000.00513.30
7.3.320.0030.00313.43
7.3.310.0030.00316.63
7.3.300.0070.00016.49
7.3.290.0050.01216.50
7.3.280.0060.01016.56
7.3.270.0090.00917.40
7.3.260.0110.00716.64
7.3.250.0090.00716.73
7.3.240.0070.01016.70
7.3.230.0080.01416.71
7.3.210.0060.01216.67
7.3.200.0060.01219.39
7.3.190.0070.01016.80
7.3.180.0110.00416.50
7.3.170.0060.01216.95
7.3.160.0090.00616.64
7.2.330.0070.01016.86
7.2.320.0090.00916.86
7.2.310.0130.00317.14
7.2.300.0120.00417.03
7.2.290.0090.00916.93
7.2.60.0090.00617.02
7.2.00.0090.00319.77
7.1.200.0340.00015.70
7.1.100.0030.00918.47
7.1.70.0000.01017.55
7.1.60.0100.01419.32
7.1.50.0030.02317.10
7.1.00.0000.08022.45
7.0.200.0030.00616.91
7.0.140.0000.07321.92
7.0.100.0070.08319.93
7.0.90.0200.07319.87
7.0.80.0130.08019.82
7.0.70.0100.04319.93
7.0.60.0270.06319.96
7.0.50.0100.04320.33
7.0.40.0070.08720.05
7.0.30.0100.08719.99
7.0.20.0030.09019.95
7.0.10.0100.04320.08
7.0.00.0100.04320.09
5.6.280.0030.07320.99
5.6.250.0030.09320.75
5.6.240.0070.06320.68
5.6.230.0030.08720.60
5.6.220.0030.08320.68
5.6.210.0200.06720.63
5.6.200.0130.08021.17
5.6.190.0170.07721.03
5.6.180.0070.06720.98
5.6.170.0130.07721.05
5.6.160.0030.08321.00
5.6.150.0100.06021.11
5.6.140.0100.07721.07
5.6.130.0170.05321.09
5.6.120.0100.08021.04
5.6.110.0070.08021.02
5.6.100.0030.08721.02
5.6.90.0070.08021.08
5.6.80.0070.04720.39
5.6.70.0100.06720.39
5.6.60.0030.08320.50
5.6.50.0030.05320.46
5.6.40.0100.05320.46
5.6.30.0070.08320.49
5.6.20.0070.04020.39
5.6.10.0030.04320.29
5.6.00.0070.07320.37
5.5.380.0030.04720.51
5.5.370.0130.04020.41
5.5.360.0170.06320.31
5.5.350.0170.06320.34
5.5.340.0030.05720.77
5.5.330.0030.08020.92
5.5.320.0070.08720.87
5.5.310.0100.07020.86
5.5.300.0130.07720.91
5.5.290.0170.07720.79
5.5.280.0200.04020.86
5.5.270.0100.05320.82
5.5.260.0100.05020.74
5.5.250.0000.05020.45
5.5.240.0030.04020.25
5.5.230.0070.08020.23
5.5.220.0030.08320.29
5.5.210.0300.06320.27
5.5.200.0130.08020.27
5.5.190.0170.03020.11
5.5.180.0130.05319.97
5.5.160.0100.03320.21
5.5.150.0100.04020.21
5.5.140.0100.03320.13
5.5.130.0000.04320.26
5.5.120.0030.04020.23
5.5.110.0130.04020.07
5.5.100.0070.03720.07
5.5.90.0030.04020.14
5.5.80.0030.04020.12
5.5.70.0000.04020.05
5.5.60.0070.03720.08
5.5.50.0130.04020.00
5.5.40.0070.03720.04
5.5.30.0000.04720.04
5.5.20.0070.03720.07
5.5.10.0070.04020.04
5.5.00.0000.04020.05
5.4.450.0000.06319.47
5.4.440.0070.08319.45
5.4.430.0070.07319.11
5.4.420.0130.07019.39
5.4.410.0070.04319.34
5.4.400.0070.06019.15
5.4.390.0130.07718.98
5.4.380.0070.07719.11
5.4.370.0130.07018.79
5.4.360.0130.03718.95
5.4.350.0030.04718.91
5.4.340.0070.05318.79
5.4.320.0030.04018.96
5.4.310.0000.04019.10
5.4.300.0030.04019.02
5.4.290.0100.03319.07
5.4.280.0030.04019.11
5.4.270.0030.03718.97
5.4.260.0000.03718.90
5.4.250.0000.04319.13
5.4.240.0030.03319.12
5.4.230.0030.04719.14
5.4.220.0130.04719.07
5.4.210.0070.05019.11
5.4.200.0030.04018.97
5.4.190.0070.03319.04
5.4.180.0030.03319.09
5.4.170.0030.03719.01
5.4.160.0100.03318.92
5.4.150.0070.05018.89
5.4.140.0000.05316.34
5.4.130.0030.03016.17
5.4.120.0030.03316.32
5.4.110.0000.03716.38
5.4.100.0200.03716.48
5.4.90.0030.04016.32
5.4.80.0000.05016.34
5.4.70.0030.03716.25
5.4.60.0030.03716.41
5.4.50.0030.06016.31
5.4.40.0030.04016.33
5.4.30.0030.03716.27
5.4.20.0070.07316.46
5.4.10.0130.07016.20
5.4.00.0130.07315.73
5.3.290.0000.04714.64
5.3.280.0000.06314.57
5.3.270.0030.04314.57
5.3.260.0070.03314.58
5.3.250.0030.05314.44
5.3.240.0070.03314.59
5.3.230.0030.04014.53
5.3.220.0070.03314.57
5.3.210.0030.03714.56
5.3.200.0000.04014.53
5.3.190.0070.03314.50
5.3.180.0070.03014.55
5.3.170.0000.05714.56
5.3.160.0000.03714.52
5.3.150.0030.06714.55
5.3.140.0000.04314.41
5.3.130.0000.08314.54
5.3.120.0000.04314.55
5.3.110.0170.06314.54
5.3.100.0000.08714.02
5.3.90.0070.07313.88
5.3.80.0070.06014.00
5.3.70.0070.06713.96
5.3.60.0070.04713.86
5.3.50.0030.07013.88
5.3.40.0070.05313.90
5.3.30.0030.07013.91
5.3.20.0000.07713.66
5.3.10.0130.06713.61
5.3.00.0100.07013.61
5.2.170.0030.06311.18
5.2.160.0100.05711.13
5.2.150.0070.04310.93
5.2.140.0030.06311.09
5.2.130.0130.03311.17
5.2.120.0000.06711.13
5.2.110.0030.06311.17
5.2.100.0030.05311.13
5.2.90.0030.06310.96
5.2.80.0000.06011.04
5.2.70.0070.03311.07
5.2.60.0000.06710.90
5.2.50.0070.06310.83
5.2.40.0030.06711.03
5.2.30.0000.06710.76
5.2.20.0030.04310.98
5.2.10.0170.04710.88
5.2.00.0130.05310.80
5.1.60.0070.05310.37
5.1.50.0030.05310.37
5.1.40.0100.04710.37
5.1.30.0030.05710.37
5.1.20.0070.05010.37
5.1.10.0030.05310.37
5.1.00.0000.05710.37
5.0.50.0030.04010.37
5.0.40.0030.04710.37
5.0.30.0000.07010.37
5.0.20.0000.03710.37
5.0.10.0030.04310.37
5.0.00.0030.03710.37
4.4.90.0030.03310.37
4.4.80.0030.03310.37
4.4.70.0030.03310.37
4.4.60.0030.03010.37
4.4.50.0000.03710.37
4.4.40.0000.05310.37
4.4.30.0070.03010.37
4.4.20.0030.02310.37
4.4.10.0030.03310.37
4.4.00.0030.05310.37
4.3.110.0000.03710.37
4.3.100.0030.03310.37
4.3.90.0000.02310.37
4.3.80.0000.02710.37
4.3.70.0000.03710.37
4.3.60.0070.02710.37
4.3.50.0000.03310.37
4.3.40.0000.05710.37
4.3.30.0030.03310.37
4.3.20.0030.02310.37
4.3.10.0000.03710.37
4.3.00.0030.03010.37

preferences:
47.61 ms | 401 KiB | 5 Q