3v4l.org

run code in 300+ PHP versions simultaneously
<?php //create datetime object with starting time in h:i a format $openSoon = new DateTime('8:00 am'); //subtract 15 minutes from time $openSoon->sub(new DateInterval('PT15M')); //This returns full date with current time - 15 minutes //My objective at this point is to get just the date portion out of the DateTime object which is the DateTime->date value echo $openSoon->format('Y-m-d H:i:s.u');

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.5.10.0080.00918.45
8.5.00.0100.01419.91
8.4.160.0110.01020.53
8.4.150.0020.00014.05
8.4.140.0140.00717.64
8.4.130.0030.00717.71
8.4.120.0120.00920.77
8.4.110.0110.00922.53
8.4.100.0140.00817.73
8.4.90.0060.00318.81
8.4.80.0090.00917.96
8.4.70.0150.01017.89
8.4.60.0140.00718.76
8.4.50.0050.00319.31
8.4.40.0090.00018.03
8.4.30.0100.01018.69
8.4.20.0130.00718.78
8.4.10.0060.00317.89
8.3.280.0120.00918.30
8.3.270.0100.00916.45
8.3.260.0130.00716.63
8.3.250.0160.00218.68
8.3.240.0150.00516.59
8.3.230.0130.00616.64
8.3.220.0100.00917.28
8.3.210.0040.00416.73
8.3.200.0060.00316.91
8.3.190.0060.00817.09
8.3.180.0050.00516.71
8.3.170.0070.01118.93
8.3.160.0120.00618.15
8.3.150.0030.00618.74
8.3.140.0120.00616.80
8.3.130.0060.00318.67
8.3.120.0060.00318.77
8.3.110.0060.01216.82
8.3.100.0000.00816.61
8.3.90.0150.00616.50
8.3.80.0070.00318.55
8.3.70.0170.00318.24
8.3.60.0120.00318.13
8.3.50.0090.00718.14
8.3.40.0090.00618.55
8.3.30.0120.00618.58
8.3.20.0090.01218.96
8.3.10.0040.00423.65
8.3.00.0000.00822.51
8.2.290.0100.01020.55
8.2.280.0050.00418.58
8.2.270.0120.00617.46
8.2.260.0070.01120.22
8.2.250.0060.00317.15
8.2.240.0050.00318.39
8.2.230.0040.00420.94
8.2.220.0070.01424.06
8.2.210.0110.00426.77
8.2.200.0040.00418.29
8.2.190.0140.00318.29
8.2.180.0070.01118.19
8.2.170.0120.00322.96
8.2.160.0070.01421.18
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00422.05
8.2.120.0050.00326.35
8.2.110.0030.00622.31
8.2.100.0030.01017.47
8.2.90.0000.00817.75
8.2.80.0040.00417.97
8.2.70.0030.00717.93
8.2.60.0040.00418.03
8.2.50.0080.00018.10
8.2.40.0060.00321.20
8.2.30.0000.00720.64
8.2.20.0000.00718.04
8.2.10.0040.00418.02
8.2.00.0040.00419.31
8.1.330.0060.01321.77
8.1.320.0110.00916.34
8.1.310.0040.00816.82
8.1.300.0000.00818.26
8.1.290.0060.00318.88
8.1.280.0070.01025.92
8.1.270.0130.00723.80
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0070.00317.61
8.1.230.0040.00718.85
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0090.00017.35
8.1.190.0060.00317.34
8.1.180.0050.00318.10
8.1.170.0040.00418.96
8.1.160.0030.00518.91
8.1.150.0050.00218.94
8.1.140.0030.00619.11
8.1.130.0040.00418.95
8.1.120.0030.00717.59
8.1.110.0000.00717.47
8.1.100.0000.00717.48
8.1.90.0060.00617.53
8.1.80.0040.00417.55
8.1.70.0040.00417.64
8.1.60.0040.00417.62
8.1.50.0030.00717.62
8.1.40.0000.00717.57
8.1.30.0080.00017.62
8.1.20.0040.00417.62
8.1.10.0000.00817.65
8.1.00.0030.00717.71
8.0.300.0070.00018.77
8.0.290.0080.00017.00
8.0.280.0040.00418.59
8.0.270.0040.00417.39
8.0.260.0030.00318.50
8.0.250.0000.00717.06
8.0.240.0030.00317.14
8.0.230.0000.00616.97
8.0.220.0000.00716.93
8.0.210.0030.00317.03
8.0.200.0030.00316.98
8.0.190.0000.00917.12
8.0.180.0060.00317.02
8.0.170.0060.00317.04
8.0.160.0030.00517.05
8.0.150.0000.00716.96
8.0.140.0000.01116.96
8.0.130.0050.00013.34
8.0.120.0040.00417.02
8.0.110.0000.00716.95
8.0.100.0040.00416.99
8.0.90.0040.00417.06
8.0.80.0060.01116.97
8.0.70.0030.00616.99
8.0.60.0000.00717.08
8.0.50.0040.00416.98
8.0.30.0070.01017.16
8.0.20.0120.00617.40
8.0.10.0040.00416.96
8.0.00.0080.01016.90
7.4.330.0030.00315.55
7.4.320.0030.00316.59
7.4.300.0030.00316.59
7.4.290.0070.00016.56
7.4.280.0020.00516.65
7.4.270.0030.00316.67
7.4.260.0030.00316.68
7.4.250.0030.00616.54
7.4.240.0050.00216.67
7.4.230.0000.00716.44
7.4.220.0000.00716.56
7.4.210.0120.00816.64
7.4.200.0000.00716.58
7.4.160.0080.00716.55
7.4.140.0090.01217.86
7.4.130.0090.00916.52
7.4.120.0080.01116.61
7.4.110.0080.00816.71
7.4.100.0150.00416.56
7.4.90.0090.00916.50
7.4.80.0130.00919.39
7.4.70.0070.01016.62
7.4.60.0090.00616.45
7.4.50.0070.00716.60
7.4.40.0100.01016.50
7.4.00.0060.00914.93
7.3.330.0020.00213.02
7.3.320.0050.00213.07
7.3.310.0070.00016.32
7.3.300.0030.00316.21
7.3.290.0030.00316.30
7.3.280.0030.01816.27
7.3.260.0110.00816.33
7.3.240.0130.00816.45
7.3.230.0180.00416.67
7.3.210.0080.00816.41
7.3.200.0100.00716.44
7.3.190.0030.01316.54
7.3.180.0090.01216.43
7.3.170.0090.00616.68
7.3.160.0040.01116.22
7.2.330.0110.00716.43
7.2.320.0120.00616.64
7.2.310.0120.00416.68
7.2.300.0100.01016.89
7.2.290.0090.00616.65
7.2.90.0330.00915.13
7.2.80.0480.00715.04
7.2.70.0450.01015.16
7.2.60.0470.01615.42
7.2.50.0600.00715.02
7.2.40.0560.01114.88
7.2.30.0370.00815.08
7.2.20.0380.01414.91
7.2.10.0450.00315.16
7.2.00.0320.01215.08
7.1.210.0350.00913.81
7.1.200.0320.01013.73
7.1.190.0730.00713.61
7.1.180.0600.01013.54
7.1.170.0460.00813.78
7.1.160.0490.01013.73
7.1.150.1180.00313.78
7.1.140.0360.01114.03
7.1.130.0400.00314.04
7.1.120.0430.00313.79
7.1.110.0430.00713.68
7.1.100.0270.01114.03
7.1.90.0270.01213.61
7.1.80.0400.01513.62
7.1.70.0480.00013.72
7.1.60.0650.00331.45
7.1.50.0690.02131.79
7.1.40.0540.00631.77
7.1.30.0730.00731.64
7.1.20.0610.00631.68
7.1.10.0420.00613.88
7.1.00.0470.00313.79

preferences:
43.39 ms | 403 KiB | 5 Q