3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Prague'); $t = time() - 24*60*60; $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";

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)
7.4.00.0060.01315.00
7.3.120.0060.00915.12
7.3.110.0060.00915.03
7.3.100.0060.00914.91
7.3.90.0070.00715.21
7.3.80.0080.00615.15
7.3.70.0080.00715.02
7.3.60.0090.00415.16
7.3.50.0050.00814.95
7.3.40.0050.00914.98
7.3.30.0080.00415.04
7.3.20.0100.00316.76
7.3.10.0060.00816.95
7.3.00.0040.00616.80
7.2.250.0030.01315.41
7.2.240.0050.01115.28
7.2.230.0030.01115.26
7.2.220.0070.00515.31
7.2.210.0070.00715.25
7.2.200.0080.00615.29
7.2.190.0080.00415.19
7.2.180.0080.00515.27
7.2.170.0060.00815.24
7.2.160.0080.00615.08
7.2.150.0040.00817.11
7.2.140.0030.00917.00
7.2.130.0040.00917.18
7.2.120.0000.01417.06
7.2.110.0080.00817.06
7.2.100.0030.01017.02
7.2.90.0030.01117.20
7.2.80.0070.00817.11
7.2.70.0090.00817.10
7.2.60.0030.01017.10
7.2.50.0050.00717.13
7.2.40.0090.00717.13
7.2.30.0050.01017.09
7.2.20.0050.01017.12
7.2.10.0050.00817.09
7.2.00.0060.01018.03
7.1.330.0040.00716.17
7.1.320.0030.01315.99
7.1.310.0070.00716.14
7.1.300.0030.01015.94
7.1.290.0080.00716.10
7.1.280.0040.00915.82
7.1.270.0070.00615.84
7.1.260.0010.01215.98
7.1.250.0090.00416.01
7.1.100.0030.00518.34
7.1.70.0000.00817.20
7.1.60.0040.02219.32
7.1.50.0190.00717.14
7.1.00.0000.08022.54
7.0.200.0030.00516.64
7.0.140.0100.06322.00
7.0.80.0100.07720.01
7.0.70.0000.08719.89
7.0.60.0330.04320.03
7.0.50.0270.03320.29
7.0.40.0000.04320.16
7.0.30.0130.03320.10
7.0.20.0030.03320.13
7.0.10.0070.03020.14
7.0.00.0100.04720.14
5.6.280.0030.07320.86
5.6.230.0000.04320.50
5.6.220.0130.05320.57
5.6.210.0130.07320.65
5.6.200.0130.03320.94
5.6.190.0030.04321.03
5.6.180.0030.03321.01
5.6.170.0000.03720.88
5.6.160.0030.03321.01
5.6.150.0030.03720.95
5.6.140.0100.03721.04
5.6.130.0030.03721.03
5.6.120.0130.03321.09
5.6.110.0130.03320.92
5.6.100.0070.04021.10
5.6.90.0030.04321.14
5.6.80.0030.03320.44
5.6.70.0130.02720.39
5.6.60.0070.03720.38
5.6.50.0030.04020.34
5.6.40.0070.04020.40
5.6.30.0070.03720.37
5.6.20.0070.03720.48
5.6.10.0070.03320.46
5.6.00.0030.04020.31
5.5.370.0100.06020.35
5.5.360.0070.06720.33
5.5.350.0100.07020.44
5.5.340.0200.04020.93
5.5.330.0030.04320.94
5.5.320.0130.03020.80
5.5.310.0030.03320.80
5.5.300.0030.05020.63
5.5.290.0030.03320.89
5.5.280.0100.03320.89
5.5.270.0030.04020.71
5.5.260.0100.03320.82
5.5.250.0070.04020.64
5.5.240.0000.04320.30
5.5.230.0030.03320.27
5.5.220.0070.04320.20
5.5.210.0070.06020.02
5.5.200.0000.04020.09
5.5.190.0000.04320.14
5.5.180.0070.03319.99
5.5.160.0000.03720.08
5.5.150.0000.04320.24
5.5.140.0130.02320.14
5.5.130.0030.03720.27
5.5.120.0030.04320.07
5.5.110.0030.03720.21
5.5.100.0100.07720.05
5.5.90.0030.03720.09
5.5.80.0130.04720.06
5.5.70.0030.04020.05
5.5.60.0100.07720.15
5.5.50.0170.06720.15
5.5.40.0100.07720.04
5.5.30.0130.07020.14
5.5.20.0070.04320.05
5.5.10.0070.04320.10
5.5.00.0070.05719.95
5.4.450.0000.04019.23
5.4.440.0000.03719.37
5.4.430.0100.02719.30
5.4.420.0030.04019.37
5.4.410.0000.04019.07
5.4.400.0030.04019.15
5.4.390.0000.03319.05
5.4.380.0000.04018.78
5.4.370.0000.04318.81
5.4.360.0030.03319.13
5.4.350.0000.03319.13
5.4.340.0070.04719.01
5.4.320.0070.03019.06
5.4.310.0030.03018.94
5.4.300.0000.04319.23
5.4.290.0030.03018.94
5.4.280.0130.03018.81
5.4.270.0130.02719.09
5.4.260.0000.03719.02
5.4.250.0070.07719.02
5.4.240.0030.04319.05
5.4.230.0070.06019.02
5.4.220.0030.07719.04
5.4.210.0130.07018.82
5.4.200.0070.07019.02
5.4.190.0100.05318.99
5.4.180.0070.07018.95
5.4.170.0170.06019.11
5.4.160.0000.04318.81
5.4.150.0130.03719.20
5.4.140.0070.07316.34
5.4.130.0100.04016.43
5.4.120.0030.06716.41
5.4.110.0070.07316.39
5.4.100.0030.05716.27
5.4.90.0100.06016.41
5.4.80.0030.04316.34
5.4.70.0030.04316.34
5.4.60.0070.07316.18
5.4.50.0000.06316.38
5.4.40.0030.04016.47
5.4.30.0070.04716.23
5.4.20.0070.07016.33
5.4.10.0030.05716.18
5.4.00.0030.06015.81
5.3.290.0000.03314.66
5.3.280.0030.04014.53
5.3.270.0070.06714.46
5.3.260.0100.04014.54
5.3.250.0000.05314.44
5.3.240.0000.07314.59
5.3.230.0130.05014.56
5.3.220.0070.05014.54
5.3.210.0200.05314.40
5.3.200.0070.06314.50
5.3.190.0030.06714.43
5.3.180.0030.06314.55
5.3.170.0070.06314.57
5.3.160.0000.06714.42
5.3.150.0170.06714.57
5.3.140.0070.04014.55
5.3.130.0100.06714.49
5.3.120.0000.05014.48
5.3.110.0000.08314.40
5.3.100.0070.05014.04
5.3.90.0100.06713.88
5.3.80.0030.04313.95
5.3.70.0070.03713.87
5.3.60.0070.07313.99
5.3.50.0070.07313.90
5.3.40.0030.04013.89
5.3.30.0070.06713.85
5.3.20.0030.04313.66
5.3.10.0070.05713.66
5.3.00.0030.08313.62
5.2.170.0030.04010.97
5.2.160.0000.03310.93
5.2.150.0100.05710.99
5.2.140.0070.04010.99
5.2.130.0030.03310.94
5.2.120.0100.05311.16
5.2.110.0130.05011.14
5.2.100.0070.05711.04
5.2.90.0030.04010.92
5.2.80.0030.03011.16
5.2.70.0000.05010.89
5.2.60.0070.03710.89
5.2.50.0100.04711.04
5.2.40.0070.04011.06
5.2.30.0000.03710.89
5.2.20.0170.04710.96
5.2.10.0030.03310.89
5.2.00.0100.05710.89
5.1.60.0070.04310.89
5.1.50.0070.03710.89
5.1.40.0130.04010.89
5.1.30.0000.06010.89
5.1.20.0100.02310.89
5.1.10.0000.06010.89
5.1.00.0070.05710.89
5.0.50.0000.03310.89
5.0.40.0100.01710.89
5.0.30.0030.07010.89
5.0.20.0070.02010.89
5.0.10.0070.01710.89
5.0.00.0070.05710.89
4.4.90.0100.03010.89
4.4.80.0000.02010.89
4.4.70.0030.01710.89
4.4.60.0000.03310.89
4.4.50.0030.01310.89
4.4.40.0030.04010.89
4.4.30.0070.01310.89
4.4.20.0000.02010.89
4.4.10.0030.02710.89
4.4.00.0000.03710.89
4.3.110.0030.03310.89
4.3.100.0000.03710.89
4.3.90.0030.03010.89
4.3.80.0000.05310.89
4.3.70.0000.02710.89
4.3.60.0000.04010.89
4.3.50.0000.02710.89
4.3.40.0030.03310.89
4.3.30.0000.02010.89
4.3.20.0000.03010.89
4.3.10.0000.02010.89
4.3.00.0000.03310.89

preferences:
32.11 ms | 400 KiB | 5 Q