3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hoje = new DateTime(); $teste = new DateTime(); $teste = $teste->modify('+90 day'); if ($hoje->format("Y-m-d") < $teste->format("Y-m-d")) print "ok";

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.0140.00316.50
8.3.50.0090.00622.07
8.3.40.0090.00618.92
8.3.30.0060.01219.05
8.3.20.0070.00020.34
8.3.10.0000.00823.51
8.3.00.0100.00020.45
8.2.180.0060.00916.88
8.2.170.0130.00622.96
8.2.160.0090.00620.49
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.01526.16
8.2.120.0040.00422.38
8.2.110.0130.00722.33
8.2.100.0060.00618.03
8.2.90.0000.00719.17
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0050.00518.17
8.2.50.0040.00418.07
8.2.40.0070.00018.16
8.2.30.0060.00318.15
8.2.20.0050.00217.89
8.2.10.0040.00417.93
8.2.00.0030.00517.80
8.1.280.0160.00625.92
8.1.270.0040.00424.02
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00723.89
8.1.230.0030.00717.77
8.1.220.0030.00617.78
8.1.210.0060.00318.77
8.1.200.0060.00317.60
8.1.190.0060.00317.52
8.1.180.0090.00018.10
8.1.170.0070.00718.75
8.1.160.0030.00522.08
8.1.150.0040.00418.87
8.1.140.0000.00717.71
8.1.130.0000.00717.94
8.1.120.0040.00417.65
8.1.110.0040.00417.71
8.1.100.0040.00717.72
8.1.90.0000.00717.74
8.1.80.0040.00417.69
8.1.70.0000.00717.68
8.1.60.0080.00317.69
8.1.50.0000.00717.75
8.1.40.0000.00817.58
8.1.30.0000.00817.73
8.1.20.0080.00017.76
8.1.10.0040.00417.79
8.1.00.0080.00017.66
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0000.00718.51
8.0.270.0080.00017.39
8.0.260.0040.00417.13
8.0.250.0000.00717.22
8.0.240.0000.00717.07
8.0.230.0000.00717.14
8.0.220.0040.00417.13
8.0.210.0000.00717.11
8.0.200.0070.00017.18
8.0.190.0000.00717.13
8.0.180.0040.00417.23
8.0.170.0000.00817.07
8.0.160.0040.00417.15
8.0.150.0050.00216.92
8.0.140.0000.00717.00
8.0.130.0040.00313.59
8.0.120.0030.00517.14
8.0.110.0050.00317.18
8.0.100.0040.00417.04
8.0.90.0020.00517.20
8.0.80.0110.00817.20
8.0.70.0030.00417.20
8.0.60.0000.00917.22
8.0.50.0040.00417.14
8.0.30.0130.00717.43
8.0.20.0090.01217.52
8.0.10.0040.00417.32
8.0.00.0130.01216.93
7.4.330.0000.00515.10
7.4.320.0030.00316.79
7.4.300.0060.00016.76
7.4.290.0000.00716.80
7.4.280.0040.00416.70
7.4.270.0030.00316.72
7.4.260.0000.00816.74
7.4.250.0040.00416.81
7.4.240.0040.00316.68
7.4.230.0000.00716.84
7.4.220.0180.00016.87
7.4.210.0090.00616.76
7.4.200.0000.00716.45
7.4.190.0050.00216.89
7.4.160.0110.00616.79
7.4.150.0050.01317.40
7.4.140.0150.00217.86
7.4.130.0070.01016.78
7.4.120.0110.00716.80
7.4.110.0100.01016.71
7.4.100.0140.00316.77
7.4.90.0180.00316.63
7.4.80.0140.01616.73
7.4.70.0090.00916.77
7.4.60.0090.00916.68
7.4.50.0000.00416.82
7.4.40.0070.00722.77
7.4.30.0000.01616.77
7.4.00.0100.00715.35
7.3.330.0050.00013.30
7.3.320.0000.00513.25
7.3.310.0030.00316.36
7.3.300.0030.00316.35
7.3.290.0060.00916.37
7.3.280.0110.00416.38
7.3.270.0040.01317.40
7.3.260.0100.00716.65
7.3.250.0140.01016.55
7.3.240.0060.01116.50
7.3.230.0040.01216.60
7.3.210.0060.01216.61
7.3.200.0120.00919.39
7.3.190.0120.01216.66
7.3.180.0070.01316.68
7.3.170.0040.01616.67
7.3.160.0040.01216.76
7.3.120.0070.01015.18
7.2.330.0040.01416.60
7.2.320.0030.01416.49
7.2.310.0100.00716.71
7.2.300.0070.01016.85
7.2.290.0060.01016.75
7.2.00.0060.00619.68
7.1.100.0040.01218.44
7.1.70.0070.00317.19
7.1.60.0120.01219.29
7.1.50.0060.01316.68
7.1.00.0000.07722.36
7.0.200.0040.00416.91
7.0.140.0100.06722.00
7.0.100.0100.08020.16
7.0.90.0030.07719.89
7.0.80.0270.06319.93
7.0.70.0100.07719.96
7.0.60.0170.07719.90
7.0.50.0070.08720.31
7.0.40.0070.08720.08
7.0.30.0100.05020.05
7.0.20.0100.06020.18
7.0.10.0100.07720.11
7.0.00.0000.08320.06
5.6.280.0100.06721.04
5.6.250.0070.08320.63
5.6.240.0100.08720.69
5.6.230.0070.08720.67
5.6.220.0100.07720.64
5.6.210.0270.06320.75
5.6.200.0200.05720.95
5.6.190.0170.07320.94
5.6.180.0070.08021.02
5.6.170.0100.08021.13
5.6.160.0070.08321.04
5.6.150.0230.06721.07
5.6.140.0170.06321.13
5.6.130.0000.09321.05
5.6.120.0100.05320.95
5.6.110.0070.06321.12
5.6.100.0100.04720.88
5.6.90.0030.08321.08
5.6.80.0030.08020.33
5.6.70.0200.07720.40
5.6.60.0070.06320.38
5.6.50.0100.08020.39
5.6.40.0130.07720.52
5.6.30.0130.07020.38
5.6.20.0070.08020.28
5.6.10.0070.05720.44
5.6.00.0100.06320.29
5.5.380.0100.04320.39
5.5.370.0130.06320.34
5.5.360.0130.06720.33
5.5.350.0070.08020.38
5.5.340.0100.06320.83
5.5.330.0130.05020.88
5.5.320.0100.07720.93
5.5.310.0070.08320.77
5.5.300.0100.06720.88
5.5.290.0100.07320.77
5.5.280.0100.05320.89
5.5.270.0130.08720.90
5.5.260.0100.08320.75
5.5.250.0130.07720.73
5.5.240.0100.07020.26
5.5.230.0030.08720.02
5.5.220.0200.06320.17
5.5.210.0100.07720.23
5.5.200.0070.05320.15
5.5.190.0030.04320.17
5.5.180.0070.05020.17
5.5.160.0030.08320.23
5.5.150.0030.08020.27
5.5.140.0100.06320.27
5.5.130.0130.05720.19
5.5.120.0100.07020.26
5.5.110.0100.07720.11
5.5.100.0070.05720.05
5.5.90.0100.08020.06
5.5.80.0200.06720.15
5.5.70.0070.06319.91
5.5.60.0000.06020.10
5.5.50.0030.07320.08
5.5.40.0100.07320.08
5.5.30.0070.07320.07
5.5.20.0000.06719.91
5.5.10.0100.06320.04
5.5.00.0030.04720.04
5.4.450.0030.08019.14
5.4.440.0200.06319.29
5.4.430.0130.08019.22
5.4.420.0030.07319.43
5.4.410.0100.06319.34
5.4.400.0070.07318.97
5.4.390.0170.07019.05
5.4.380.0130.07019.10
5.4.370.0100.07319.13
5.4.360.0170.07019.12
5.4.350.0100.06719.11
5.4.340.0130.07018.98
5.4.320.0070.07318.90
5.4.310.0000.05718.95
5.4.300.0100.07319.12
5.4.290.0200.05319.09
5.4.280.0070.07319.11
5.4.270.0170.05019.04
5.4.260.0030.05319.07
5.4.250.0130.07019.09
5.4.240.0070.06719.02
5.4.230.0170.07318.93
5.4.220.0100.07019.12
5.4.210.0100.07018.77
5.4.200.0200.05719.13
5.4.190.0130.07319.11
5.4.180.0170.06718.82
5.4.170.0030.08319.11
5.4.160.0070.07719.20
5.4.150.0100.07718.96
5.4.140.0100.07016.37
5.4.130.0170.04716.26
5.4.120.0100.06316.36
5.4.110.0070.07716.36
5.4.100.0000.06016.41
5.4.90.0030.04016.41
5.4.80.0100.07016.25
5.4.70.0170.06016.47
5.4.60.0100.07316.21
5.4.50.0070.06316.30
5.4.40.0070.05016.23
5.4.30.0130.03716.18
5.4.20.0000.06316.27
5.4.10.0070.07716.21
5.4.00.0070.05315.74
5.3.290.0130.07314.57
5.3.280.0070.07714.54
5.3.270.0100.07314.57
5.3.260.0100.07014.56
5.3.250.0070.07714.61
5.3.240.0000.07014.56
5.3.230.0100.07314.58
5.3.220.0070.07014.40
5.3.210.0070.07014.42
5.3.200.0100.07314.57
5.3.190.0070.08314.54
5.3.180.0030.08014.55
5.3.170.0070.08014.52
5.3.160.0100.07314.55
5.3.150.0070.07314.54
5.3.140.0070.04314.56
5.3.130.0070.07314.55
5.3.120.0100.07314.54
5.3.110.0070.05314.51
5.3.100.0130.06713.99
5.3.90.0070.03713.95
5.3.80.0070.07714.02
5.3.70.0030.08013.87
5.3.60.0100.07014.00
5.3.50.0100.03313.80
5.3.40.0030.04713.90
5.3.30.0130.05713.77
5.3.20.0100.07013.67
5.3.10.0030.05713.64
5.3.00.0070.07713.61
5.2.170.0030.06711.59
5.2.160.0070.05311.59
5.2.150.0000.05711.59
5.2.140.0070.06011.59
5.2.130.0030.06311.59
5.2.120.0030.05011.59
5.2.110.0130.05311.59
5.2.100.0030.04311.59
5.2.90.0070.06011.59
5.2.80.0070.06311.59
5.2.70.0030.06311.59
5.2.60.0000.06711.59
5.2.50.0030.06311.59
5.2.40.0100.05311.59
5.2.30.0030.05711.59
5.2.20.0030.06311.59
5.2.10.0130.05311.59
5.2.00.0100.05711.59
5.1.60.0000.05011.59
5.1.50.0070.05011.59
5.1.40.0030.03011.59
5.1.30.0030.06011.59
5.1.20.0070.05311.59
5.1.10.0000.05711.59
5.1.00.0030.05711.59
5.0.50.0070.04711.59
5.0.40.0070.03711.59
5.0.30.0030.06711.59
5.0.20.0000.02711.59
5.0.10.0000.04711.59
5.0.00.0030.06011.59
4.4.90.0070.03311.59
4.4.80.0000.03711.59
4.4.70.0030.03311.59
4.4.60.0070.02011.59
4.4.50.0070.03011.59
4.4.40.0030.05311.59
4.4.30.0000.03011.59
4.4.20.0100.01711.59
4.4.10.0030.03711.59
4.4.00.0000.05711.59
4.3.110.0070.03011.59
4.3.100.0000.03711.59
4.3.90.0030.02711.59
4.3.80.0000.03311.59
4.3.70.0030.03011.59
4.3.60.0030.03311.59
4.3.50.0030.02311.59
4.3.40.0000.05711.59
4.3.30.0000.03311.59
4.3.20.0000.04011.59
4.3.10.0000.03711.59
4.3.00.0030.03311.59

preferences:
39.86 ms | 401 KiB | 5 Q