3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yesterday = date('Y-m-d', strtotime("-1d")); $test = date('Y-m-d', "2018-06-28 16:03:34"); echo $test; $test2 = date('Y-m-d', strtotime("-4 days")); echo $test2;

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.0060.01318.80
8.3.50.0100.00318.07
8.3.40.0140.00418.80
8.3.30.0060.00918.68
8.3.20.0020.00519.10
8.3.10.0040.00421.91
8.3.00.0070.00023.70
8.2.180.0140.00418.54
8.2.170.0070.00722.96
8.2.160.0090.00619.45
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00422.17
8.2.120.0000.00726.35
8.2.110.0070.00322.21
8.2.100.0110.00017.91
8.2.90.0000.00719.32
8.2.80.0080.00017.97
8.2.70.0050.00317.93
8.2.60.0040.00417.93
8.2.50.0060.00318.10
8.2.40.0040.00419.31
8.2.30.0040.00419.25
8.2.20.0040.00418.17
8.2.10.0000.00817.96
8.2.00.0040.00419.39
8.1.280.0110.00425.92
8.1.270.0030.00520.37
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.05
8.1.230.0060.00620.95
8.1.220.0000.00817.74
8.1.210.0050.00318.86
8.1.200.0040.00417.48
8.1.190.0130.00017.23
8.1.180.0000.00818.10
8.1.170.0000.00918.63
8.1.160.0040.00418.86
8.1.150.0000.00718.90
8.1.140.0070.00017.61
8.1.130.0070.00018.98
8.1.120.0040.00417.48
8.1.110.0030.00717.61
8.1.100.0070.00017.54
8.1.90.0070.00017.55
8.1.80.0070.00017.61
8.1.70.0000.00717.49
8.1.60.0030.00617.63
8.1.50.0050.00317.63
8.1.40.0040.00417.64
8.1.30.0040.00417.79
8.1.20.0040.00417.64
8.1.10.0040.00417.59
8.1.00.0080.00317.62
8.0.300.0040.00419.96
8.0.290.0000.00816.75
8.0.280.0040.00418.41
8.0.270.0000.00717.27
8.0.260.0000.00717.22
8.0.250.0070.00017.18
8.0.240.0030.00317.16
8.0.230.0030.00317.14
8.0.220.0000.00717.02
8.0.210.0030.00317.05
8.0.200.0050.00317.21
8.0.190.0050.00317.04
8.0.180.0040.00417.10
8.0.170.0060.00317.11
8.0.160.0040.00416.98
8.0.150.0030.00317.04
8.0.140.0040.00317.08
8.0.130.0050.00013.45
8.0.120.0040.00416.95
8.0.110.0050.00217.09
8.0.100.0000.00717.13
8.0.90.0070.00017.03
8.0.80.0100.00817.07
8.0.70.0000.00716.93
8.0.60.0030.00617.13
8.0.50.0030.00517.08
8.0.30.0070.00917.23
8.0.20.0070.01317.41
8.0.10.0040.00417.25
8.0.00.0110.00617.03
7.4.330.0040.00015.55
7.4.320.0030.00316.66
7.4.300.0030.00316.63
7.4.290.0030.00316.56
7.4.280.0040.00416.72
7.4.270.0040.00416.68
7.4.260.0030.00316.71
7.4.250.0000.00816.60
7.4.240.0000.00716.63
7.4.230.0000.00716.58
7.4.220.0070.00016.82
7.4.210.0080.00816.68
7.4.200.0030.00316.43
7.4.160.0090.00916.68
7.4.140.0120.00717.86
7.4.130.0150.00916.64
7.4.120.0080.00916.76
7.4.110.0130.01016.82
7.4.100.0120.00616.77
7.4.90.0140.00316.82
7.4.80.0120.00619.39
7.4.70.0090.00916.68
7.4.60.0060.01016.70
7.4.50.0040.01516.63
7.4.40.0060.01216.76
7.4.00.0000.01614.94
7.3.330.0020.00213.32
7.3.320.0000.00613.30
7.3.310.0000.00716.60
7.3.300.0030.00316.45
7.3.290.0040.00416.31
7.3.280.0080.01016.46
7.3.260.0090.00916.44
7.3.240.0040.01316.54
7.3.230.0100.00716.46
7.3.210.0090.00916.71
7.3.200.0090.00616.56
7.3.190.0090.01316.53
7.3.180.0140.00316.38
7.3.170.0060.01316.74
7.3.160.0090.00616.57
7.2.330.0150.00316.58
7.2.320.0110.00716.98
7.2.310.0060.01116.66
7.2.300.0130.00716.77
7.2.290.0100.01016.92
7.2.100.0720.00714.83
7.2.90.0780.01015.03
7.2.80.0840.00714.94
7.2.70.1200.00715.05
7.2.60.0880.00615.01
7.2.50.0790.00814.86
7.2.40.1040.00614.88
7.2.30.0840.00615.00
7.2.20.0880.00314.97
7.2.10.0820.01014.79
7.2.00.0940.01115.00
7.1.220.0830.00913.94
7.1.210.0830.00614.23
7.1.200.0510.00815.02
7.1.190.0560.01213.75
7.1.180.0880.00313.90
7.1.170.0750.00913.96
7.1.160.0730.00713.95
7.1.150.0790.00513.99
7.1.140.0800.00813.91
7.1.130.0870.00813.80
7.1.120.0770.00714.03
7.1.110.0780.01113.96
7.1.100.0850.01214.07
7.1.90.0940.00513.79
7.1.80.1000.00313.96
7.1.70.1080.01013.78
7.1.60.1160.01531.96
7.1.50.1500.01631.89
7.1.40.1530.01031.83
7.1.30.1140.01031.65
7.1.20.1290.01031.83
7.1.10.0790.01013.91
7.1.00.1070.00614.09
5.6.380.0100.00614.32

preferences:
58.83 ms | 400 KiB | 5 Q