3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTime('2011-01-15 00:00:00'); $foo = strtotime('-1 month', $d);

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.1.110.0000.00717.57
8.1.100.0040.00317.58
8.1.90.0030.00317.48
8.1.80.0030.00517.64
8.1.70.0000.00817.58
8.1.60.0060.00317.61
8.1.50.0030.00517.54
8.1.40.0040.00417.65
8.1.30.0050.00317.80
8.1.20.0040.00417.86
8.1.10.0000.00717.57
8.1.00.0050.00217.66
8.0.240.0050.00317.05
8.0.230.0030.00316.98
8.0.220.0030.00317.14
8.0.210.0070.00016.98
8.0.200.0060.00017.13
8.0.190.0060.00317.04
8.0.180.0000.00716.99
8.0.170.0040.00417.07
8.0.160.0000.00816.95
8.0.150.0040.00417.03
8.0.140.0060.00317.04
8.0.130.0030.00313.38
8.0.120.0040.00416.94
8.0.110.0040.00417.02
8.0.100.0000.00716.86
8.0.90.0050.00216.99
8.0.80.0080.00817.00
8.0.70.0070.00016.94
8.0.60.0030.00317.10
8.0.50.0070.00017.02
8.0.30.0150.00717.17
8.0.20.0100.00817.40
8.0.10.0000.00717.07
8.0.00.0120.00816.87
7.4.300.0060.00016.58
7.4.290.0000.00716.54
7.4.280.0060.00316.56
7.4.270.0000.00716.55
7.4.260.0030.00716.51
7.4.250.0040.00416.59
7.4.240.0040.00416.63
7.4.230.0030.00316.75
7.4.220.0090.00916.57
7.4.210.0090.00516.63
7.4.200.0040.00416.45
7.4.160.0090.00916.50
7.4.150.0190.00617.40
7.4.140.0070.01617.86
7.4.130.0070.01116.77
7.4.120.0140.00616.48
7.4.110.0110.00616.62
7.4.100.0140.00416.63
7.4.90.0150.00316.64
7.4.80.0120.01219.39
7.4.70.0130.01016.60
7.4.60.0120.00316.64
7.4.50.0080.00016.64
7.4.40.0120.00616.76
7.4.30.0120.00616.85
7.4.00.0030.01014.89
7.3.330.0030.00313.07
7.3.320.0020.00213.19
7.3.310.0040.00416.41
7.3.300.0030.00416.37
7.3.290.0030.00316.32
7.3.280.0100.00916.34
7.3.270.0110.00917.40
7.3.260.0060.01016.41
7.3.250.0110.00916.37
7.3.240.0110.00716.71
7.3.230.0090.00916.39
7.3.210.0340.00916.78
7.3.200.0140.00719.39
7.3.190.0140.00316.49
7.3.180.0090.00616.44
7.3.170.0190.00316.62
7.3.160.0140.00616.45
7.2.330.0120.00416.57
7.2.320.0030.01316.45
7.2.310.0150.00316.73
7.2.300.0070.01016.75
7.2.290.0090.01316.62
7.2.60.0090.00316.84
7.2.00.0060.00619.54
7.1.200.0000.01015.96
7.1.100.0000.01518.17
7.1.70.0000.01017.12
7.1.60.0140.01119.59
7.1.50.0100.01417.03
7.1.00.0070.07322.54
7.0.200.0090.00615.18
7.0.60.0030.07719.85
7.0.50.0030.04717.82
7.0.40.0030.05319.90
7.0.30.0370.03720.09
7.0.20.0200.07720.09
7.0.10.0230.06020.30
7.0.00.0070.07320.00
5.6.280.0070.03020.81
5.6.210.0100.08020.74
5.6.200.0100.07718.17
5.6.190.0030.08320.43
5.6.180.3570.03720.33
5.6.170.0270.03020.73
5.6.160.0130.07020.51
5.6.150.0130.07718.22
5.6.140.0000.06018.11
5.6.130.0000.04718.13
5.6.120.0000.05321.01
5.6.110.0100.05020.96
5.6.100.0130.04720.98
5.6.90.0070.08320.96
5.6.80.0130.07320.32
5.6.70.0300.05720.49
5.5.350.0270.07320.52
5.5.340.0030.05717.96
5.5.330.0070.09320.57
5.5.320.0300.05020.28
5.5.310.0270.03320.21
5.5.300.0070.04717.94
5.5.290.0030.04317.88
5.5.280.0070.04720.95
5.5.270.0100.06720.64
5.5.260.0030.09020.72
5.5.250.0030.06320.68
5.5.240.0330.04720.03
5.4.450.0870.05019.14
5.4.440.0570.05719.51
5.4.430.0770.04719.66
5.4.420.0700.05019.54
5.4.410.0670.05319.43
5.4.400.0630.04719.23
5.4.390.0600.06019.22
5.4.380.0630.04718.82
5.4.370.0700.04019.31
5.4.360.0630.05319.23
5.4.350.0670.06019.21
5.4.340.0500.06319.04
5.4.320.0630.04719.20
5.4.310.0570.05319.23
5.4.300.0800.04719.19
5.4.290.0600.06719.22
5.4.280.0670.06318.95
5.4.270.0830.04718.82
5.4.260.0700.05318.92
5.4.250.0730.05319.18
5.4.240.0730.05019.19
5.4.230.0700.04319.19
5.4.220.0600.05018.89
5.4.210.0500.05719.00
5.4.200.0600.04716.93
5.4.190.0600.06019.16
5.4.180.0700.05019.04
5.4.170.0130.04719.20
5.4.160.0100.05319.00
5.4.150.0070.05718.91
5.4.140.0300.05316.58
5.4.130.0670.05316.57
5.4.120.0570.04716.47
5.4.110.0730.04316.47
5.4.100.0530.05316.23
5.4.90.0700.05016.43
5.4.80.0530.05716.24
5.4.70.0530.05316.54
5.4.60.0630.04316.20
5.4.50.0530.05316.24
5.4.40.0570.05016.09
5.4.30.0700.06016.40
5.4.20.0870.04716.38
5.4.10.0670.05316.25
5.4.00.0830.03715.86
5.3.290.0770.05014.50
5.3.280.0630.05014.54
5.3.270.0630.05314.39
5.3.260.0700.06014.43
5.3.250.0600.05314.52
5.3.240.0730.07314.58
5.3.230.0470.06314.38
5.3.220.0600.04714.54
5.3.210.0530.05714.37
5.3.200.0870.03714.35
5.3.190.0700.05314.48
5.3.180.0630.06014.35
5.3.170.0670.05314.41
5.3.160.0800.05714.50
5.3.150.0730.05014.54
5.3.140.0670.05714.40
5.3.130.0630.06314.39
5.3.120.0770.05014.38
5.3.110.0730.05714.52
5.3.100.0800.04713.96
5.3.90.0770.04314.00
5.3.80.0730.05713.86
5.3.70.0700.05314.05
5.3.60.0800.04313.98
5.3.50.0830.06313.80
5.3.40.0770.05713.84
5.3.30.0630.05713.89
5.3.20.0700.05313.48
5.3.10.0770.05313.59
5.3.00.0870.04313.62
5.2.170.0630.04011.15
5.2.160.0600.04011.09
5.2.150.0630.04010.97
5.2.140.0600.04011.18
5.2.130.0570.04311.00
5.2.120.0570.04311.04
5.2.110.0600.04011.10
5.2.100.0670.03711.00
5.2.90.0700.03011.07
5.2.80.0670.04010.92
5.2.70.0630.04311.00
5.2.60.0700.03311.12
5.2.50.0530.04010.93
5.2.40.0600.03010.93
5.2.30.0400.04310.80
5.2.20.0400.04010.96
5.2.10.0470.04310.84
5.2.00.0470.04010.77
5.1.60.0430.0409.87
5.1.50.0470.03310.02
5.1.40.0500.0309.90
5.1.30.0500.03710.44
5.1.20.0330.04010.44
5.1.10.0400.03310.05
5.1.00.0500.03710.04
5.0.50.0130.0338.62
5.0.40.0170.0308.39
5.0.30.0230.0438.10
5.0.20.0300.0208.13
5.0.10.0300.0238.10
5.0.00.0300.0408.13
4.4.90.0300.0175.78
4.4.80.0200.0235.73
4.4.70.0270.0235.85
4.4.60.0000.0235.72
4.4.50.0000.0235.86
4.4.40.0030.0335.80
4.4.30.0030.0205.75
4.4.20.0030.0205.94
4.4.10.0000.0235.80
4.4.00.0000.0375.86
4.3.110.0030.0235.75
4.3.100.0000.0235.67
4.3.90.0000.0235.68
4.3.80.0130.0335.78
4.3.70.0230.0275.77
4.3.60.0270.0275.67
4.3.50.0230.0235.63
4.3.40.0230.0335.73
4.3.30.0130.0204.52
4.3.20.0130.0204.41
4.3.10.0100.0234.50
4.3.00.0100.0239.88

preferences:
61.02 ms | 406 KiB | 5 Q