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("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.0130.00618.92
8.3.30.0120.00319.26
8.3.20.0000.00720.34
8.3.10.0000.00823.61
8.3.00.0080.00019.50
8.2.170.0090.00622.96
8.2.160.0030.01318.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.01122.20
8.2.110.0030.00621.18
8.2.100.0060.00617.97
8.2.90.0030.00518.04
8.2.80.0050.00318.34
8.2.70.0050.00318.05
8.2.60.0030.00718.16
8.2.50.0110.00018.10
8.2.40.0040.00420.72
8.2.30.0000.00818.16
8.2.20.0000.00818.03
8.2.10.0040.00418.19
8.2.00.0090.00018.02
8.1.270.0060.00323.91
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00322.66
8.1.230.0040.00821.10
8.1.220.0030.00617.89
8.1.210.0040.00418.83
8.1.200.0050.00317.60
8.1.190.0000.00817.50
8.1.180.0040.00418.10
8.1.170.0040.00418.76
8.1.160.0040.00422.24
8.1.150.0050.00218.96
8.1.140.0060.00317.73
8.1.130.0040.00417.97
8.1.120.0050.00217.68
8.1.110.0040.00417.74
8.1.100.0070.00017.67
8.1.90.0070.00017.63
8.1.80.0040.00417.71
8.1.70.0000.00717.65
8.1.60.0000.00817.86
8.1.50.0050.00317.75
8.1.40.0020.00517.72
8.1.30.0030.00517.75
8.1.20.0030.00517.85
8.1.10.0040.00417.70
8.1.00.0030.00617.64
8.0.300.0040.00420.11
8.0.290.0060.00317.00
8.0.280.0080.00018.51
8.0.270.0030.00317.32
8.0.260.0060.00017.45
8.0.250.0000.00717.20
8.0.240.0050.00217.29
8.0.230.0000.00717.36
8.0.220.0030.00317.27
8.0.210.0000.00717.24
8.0.200.0030.00317.27
8.0.190.0030.00517.22
8.0.180.0080.00017.14
8.0.170.0070.00017.26
8.0.160.0050.00317.23
8.0.150.0080.00017.14
8.0.140.0030.00517.19
8.0.130.0060.00013.68
8.0.120.0070.00017.18
8.0.110.0000.00717.17
8.0.100.0000.00717.11
8.0.90.0040.00417.27
8.0.80.0060.01117.27
8.0.70.0040.00417.22
8.0.60.0070.00017.29
8.0.50.0030.00517.11
8.0.30.0110.01117.50
8.0.20.0080.01417.41
8.0.10.0070.00017.17
8.0.00.0070.01116.89
7.4.330.0000.00615.05
7.4.320.0060.00016.83
7.4.300.0000.00616.73
7.4.290.0060.00316.72
7.4.280.0120.00316.80
7.4.270.0000.00716.84
7.4.260.0030.00516.72
7.4.250.0000.00716.81
7.4.240.0030.00316.73
7.4.230.0030.00316.59
7.4.220.0040.01516.68
7.4.210.0090.01216.58
7.4.200.0040.00416.46
7.4.160.0120.00616.86
7.4.150.0140.00317.40
7.4.140.0110.01017.86
7.4.130.0120.00816.77
7.4.120.0080.00916.74
7.4.110.0070.01116.70
7.4.100.0140.00316.71
7.4.90.0120.00616.79
7.4.80.0030.01419.39
7.4.70.0180.00616.91
7.4.60.0040.01216.73
7.4.50.0000.00616.60
7.4.40.0000.01716.57
7.4.30.0090.00916.95
7.4.00.0070.01015.24
7.3.330.0020.00213.38
7.3.320.0030.00313.39
7.3.310.0040.00416.41
7.3.300.0060.00016.63
7.3.290.0050.01016.58
7.3.280.0110.00816.51
7.3.270.0130.00317.40
7.3.260.0160.00316.74
7.3.250.0070.01016.72
7.3.240.0100.00716.64
7.3.230.0100.01016.71
7.3.210.0090.00916.84
7.3.200.0030.01419.39
7.3.190.0100.00716.72
7.3.180.0100.00616.74
7.3.170.0100.00716.73
7.3.160.0150.00616.84
7.2.330.0110.00716.68
7.2.320.0070.01016.94
7.2.310.0030.01316.71
7.2.300.0070.01016.62
7.2.290.0090.00916.64
7.2.00.0030.00619.58
7.1.100.0060.00618.18
7.1.70.0040.00417.63
7.1.60.0090.01219.32
7.1.50.0100.01617.27
7.1.00.0070.07322.44
7.0.200.0070.00016.72
7.0.140.0000.07722.09
7.0.80.0130.08719.94
7.0.70.0130.06719.89
7.0.60.0030.07719.84
7.0.50.0500.05320.26
7.0.40.0100.04720.14
7.0.30.0070.08020.14
7.0.20.0100.08020.18
7.0.10.0300.03320.18
7.0.00.0130.07020.12
5.6.230.0170.07320.63
5.6.220.0070.06320.47
5.6.210.0100.08720.40
5.6.200.0130.08021.04
5.6.190.0100.08321.09
5.6.180.0100.07321.00
5.6.170.0130.09721.04
5.6.160.0070.08020.95
5.6.150.0070.08321.02
5.6.140.0070.04320.98
5.6.130.0100.08021.03
5.6.120.0130.07321.03
5.6.110.0130.07321.08
5.6.100.0100.08321.07
5.6.90.0030.08320.92
5.6.80.0130.04020.40
5.6.70.0100.07720.41
5.6.60.0100.07320.50
5.6.50.0100.07720.52
5.6.40.0100.08020.52
5.6.30.0000.08020.49
5.6.20.0070.05020.36
5.6.10.0070.06020.43
5.6.00.0170.07020.29
5.5.370.0100.06320.30
5.5.360.0100.07320.43
5.5.350.0130.06720.41
5.5.340.0130.07020.77
5.5.330.0070.04720.64
5.5.320.0070.06720.77
5.5.310.0100.07320.64
5.5.300.0030.07320.75
5.5.290.0100.09320.82
5.5.280.0170.07020.89
5.5.270.0070.04320.82
5.5.260.0030.08320.89
5.5.250.0100.07020.64
5.5.240.0100.08020.21
5.5.230.0100.06020.11
5.5.220.0070.04720.21
5.5.210.0070.06320.21
5.5.200.0070.06320.27
5.5.190.0030.04019.97
5.5.180.0070.04020.22
5.5.160.0030.07020.14
5.5.150.0100.07020.15
5.5.140.0100.07020.14
5.5.130.0100.04020.18
5.5.120.0130.06720.27
5.5.110.0100.04320.21
5.5.100.0030.04020.11
5.5.90.0030.06720.16
5.5.80.0030.05720.09
5.5.70.0000.08320.05
5.5.60.0130.06720.05
5.5.50.0200.06019.99
5.5.40.0100.06320.05
5.5.30.0030.04020.07
5.5.20.0070.07320.05
5.5.10.0030.04720.04
5.5.00.0030.04020.11
5.4.450.0070.04719.52
5.4.440.0070.04319.38
5.4.430.0100.08319.42
5.4.420.0100.07319.50
5.4.410.0030.05719.34
5.4.400.0070.07019.06
5.4.390.0030.07318.81
5.4.380.0100.04019.10
5.4.370.0070.07318.94
5.4.360.0100.04719.06
5.4.350.0100.07319.10
5.4.340.0170.06719.07
5.4.320.0170.06719.13
5.4.310.0030.06019.05
5.4.300.0030.07019.07
5.4.290.0070.05018.98
5.4.280.0130.06019.23
5.4.270.0170.04018.96
5.4.260.0100.06718.81
5.4.250.0030.07719.02
5.4.240.0070.06718.77
5.4.230.0070.07018.97
5.4.220.0070.04719.02
5.4.210.0100.03719.09
5.4.200.0070.08018.96
5.4.190.0070.06718.96
5.4.180.0030.08018.80
5.4.170.0100.05018.80
5.4.160.0030.04718.92
5.4.150.0070.07019.01
5.4.140.0170.06716.37
5.4.130.0030.06716.37
5.4.120.0070.06716.12
5.4.110.0070.03316.26
5.4.100.0100.06016.36
5.4.90.0070.06316.29
5.4.80.0000.04016.26
5.4.70.0030.03716.48
5.4.60.0030.07316.42
5.4.50.0000.04016.28
5.4.40.0030.03716.47
5.4.30.0030.03716.18
5.4.20.0030.03716.17
5.4.10.0030.03716.18
5.4.00.0070.03015.66
5.3.290.0170.06314.65
5.3.280.0100.07314.41
5.3.270.0030.08014.46
5.3.260.0070.05714.60
5.3.250.0130.07014.60
5.3.240.0070.07014.46
5.3.230.0030.06714.54
5.3.220.0030.04314.55
5.3.210.0030.04314.42
5.3.200.0100.03714.56
5.3.190.0130.03714.43
5.3.180.0070.04314.55
5.3.170.0130.03714.54
5.3.160.0030.04314.49
5.3.150.0170.02314.41
5.3.140.0030.03714.50
5.3.130.0030.03714.40
5.3.120.0100.03014.36
5.3.110.0030.03714.48
5.3.100.0000.04013.98
5.3.90.0070.03313.85
5.3.80.0070.03313.95
5.3.70.0030.03313.77
5.3.60.0030.03713.75
5.3.50.0030.03713.84
5.3.40.0130.03013.85
5.3.30.0030.03713.88
5.3.20.0000.03713.67
5.3.10.0070.03013.51
5.3.00.0000.05013.61
5.2.170.0000.04311.13
5.2.160.0000.03311.18
5.2.150.0030.03011.18
5.2.140.0030.02711.10
5.2.130.0030.02711.02
5.2.120.0100.01710.94
5.2.110.0000.03011.02
5.2.100.0030.03011.14
5.2.90.0100.02311.12
5.2.80.0030.02711.07
5.2.70.0000.03011.08
5.2.60.0000.03011.09
5.2.50.0000.03010.81
5.2.40.0000.03010.96
5.2.30.0000.03011.01
5.2.20.0030.02311.03
5.2.10.0100.03710.94
5.2.00.0070.02710.64
5.1.60.0000.0279.99
5.1.50.0030.0239.98
5.1.40.0000.0279.96
5.1.30.0000.03010.23
5.1.20.0000.02710.37
5.1.10.0030.0239.90
5.1.00.0030.02710.14
5.0.50.0030.0208.53
5.0.40.0000.0208.46
5.0.30.0030.0308.28
5.0.20.0000.0208.24
5.0.10.0000.0208.20
5.0.00.0070.0238.26
4.4.90.0000.0176.43
4.4.80.0030.0136.43
4.4.70.0030.0176.43
4.4.60.0000.0176.43
4.4.50.0000.0176.43
4.4.40.0030.0206.43
4.4.30.0000.0176.43
4.4.20.0030.0136.43
4.4.10.0000.0176.43
4.4.00.0030.0206.43
4.3.110.0030.0136.43
4.3.100.0000.0176.43
4.3.90.0000.0136.43
4.3.80.0070.0206.43
4.3.70.0000.0176.43
4.3.60.0000.0136.43
4.3.50.0000.0176.43
4.3.40.0000.0276.43
4.3.30.0000.0176.43
4.3.20.0000.0136.43
4.3.10.0000.0176.43
4.3.00.0000.0176.43

preferences:
30.93 ms | 400 KiB | 5 Q