3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new \DateTime('2018-04-01 03:10:00', new \DateTimeZone('Pacific/Auckland')); $dt2 = clone $dt; $dt2->sub(new \DateInterval('PT2H')); var_dump($dt > $dt2, $dt->format(\DateTime::RFC3339), $dt2->format(\DateTime::RFC3339), $dt->diff($dt2)->format('%h'));

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.00917.55
8.1.100.0020.00717.60
8.1.90.0040.00417.48
8.1.80.0000.00717.57
8.1.70.0030.00317.62
8.1.60.0040.00417.66
8.1.50.0000.00817.43
8.1.40.0040.00417.59
8.1.30.0050.00317.56
8.1.20.0060.00317.60
8.1.10.0040.00717.66
8.1.00.0040.00417.54
8.0.240.0000.00717.19
8.0.230.0030.00717.16
8.0.220.0040.00417.04
8.0.210.0040.00417.10
8.0.200.0030.00317.13
8.0.190.0040.00417.12
8.0.180.0000.00817.13
8.0.170.0030.00617.00
8.0.160.0040.00417.12
8.0.150.0000.00717.01
8.0.140.0030.00517.06
8.0.130.0000.00513.47
8.0.120.0040.00417.00
8.0.110.0040.00417.09
8.0.100.0080.00017.10
8.0.90.0080.00017.15
8.0.80.0230.00617.04
8.0.70.0300.01316.99
8.0.60.0300.00816.99
8.0.50.0220.01116.98
8.0.30.0180.00817.12
8.0.20.0140.01017.29
8.0.10.0220.01517.21
8.0.00.0130.01317.10
7.4.300.0100.00116.59
7.4.290.0040.00416.58
7.4.280.0030.00516.70
7.4.270.0000.00716.63
7.4.260.0030.00316.65
7.4.250.0000.00816.61
7.4.240.0040.00416.72
7.4.230.0070.00016.62
7.4.220.0130.01016.68
7.4.210.0110.01516.68
7.4.200.0240.00916.64
7.4.190.0260.01116.77
7.4.180.0220.00816.69
7.4.160.0130.01016.66
7.4.150.0300.01316.67
7.4.140.0140.01017.50
7.4.130.0180.00916.57
7.4.120.0130.01116.61
7.4.110.0140.01116.58
7.4.100.0170.01216.67
7.4.90.0160.01216.60
7.4.80.0200.01117.49
7.4.70.0180.00816.60
7.4.60.0180.01116.59
7.4.50.0110.01316.48
7.4.40.0330.01516.47
7.4.30.0240.01716.60
7.4.20.0190.01316.53
7.4.10.0240.01016.54
7.4.00.0180.00916.03
7.3.330.0080.00013.14
7.3.320.0060.00013.06
7.3.310.0000.00716.48
7.3.300.0030.00316.37
7.3.290.0270.00916.30
7.3.280.0140.01016.32
7.3.270.0240.01116.34
7.3.260.0250.00616.46
7.3.250.0250.01016.30
7.3.240.0200.00716.38
7.3.230.0220.01116.45
7.3.220.0230.01416.27
7.3.210.0320.00716.33
7.3.200.0230.00816.37
7.3.190.0200.00816.36
7.3.180.0180.01016.36
7.3.170.0170.01116.30
7.3.160.0300.00816.29
7.3.150.0270.00616.37
7.3.140.0310.00716.34
7.3.130.0240.01016.34
7.3.120.0250.00816.33
7.3.110.0300.00816.25
7.3.100.0210.01416.26
7.3.90.0190.01716.49
7.3.80.0280.00916.30
7.3.70.0250.01316.33
7.3.60.0270.00816.42
7.3.50.0270.01816.41
7.3.40.0290.01016.42
7.3.30.0330.00316.43
7.3.20.0180.01616.48
7.3.10.0200.01016.36
7.3.00.0140.01316.39
7.2.340.0260.01316.44
7.2.330.0220.01016.46
7.2.320.0190.01016.62
7.2.310.0170.01216.50
7.2.300.0190.01116.64
7.2.290.0210.00916.58
7.2.280.0180.02416.43
7.2.270.0320.00616.42
7.2.260.0280.00716.50
7.2.250.0270.01116.43
7.2.240.0240.01316.45
7.2.230.0240.01716.43
7.2.220.0240.01316.42
7.2.210.0250.01116.49
7.2.200.0180.02116.65
7.2.190.0330.00616.51
7.2.180.0270.00916.57
7.2.170.0170.01716.58
7.2.160.0210.01216.59
7.2.150.0260.00916.56
7.2.140.0520.01116.62
7.2.130.0290.01116.72
7.2.120.0240.01416.71
7.2.110.0240.01816.75
7.2.100.0270.01416.77
7.2.90.0530.01516.63
7.2.80.0300.00916.66
7.2.70.0310.00916.66
7.2.60.0180.01116.82
7.2.50.0260.01116.70
7.2.40.0170.01518.24
7.2.30.0150.01318.35
7.2.20.0200.01018.29
7.2.10.0170.01018.25
7.2.00.0140.01218.21
7.1.330.0190.01315.78
7.1.320.0290.01115.74
7.1.310.0240.00915.73
7.1.300.0230.01215.74
7.1.290.0300.00915.72
7.1.280.0230.01315.82
7.1.270.0260.01415.86
7.1.260.0290.00715.78
7.1.250.0280.01015.62
7.1.240.0280.00915.61
7.1.230.0230.00615.78
7.1.220.0670.00915.77
7.1.210.0350.00315.77
7.1.200.0170.00915.78
7.1.190.0200.01315.76
7.1.180.0200.01615.72
7.1.170.0200.01015.72
7.1.160.0150.00917.20
7.1.150.0170.01117.14
7.1.140.0160.01117.06
7.1.130.0150.01017.29
7.1.120.0170.00917.21
7.1.110.0140.01016.89
7.1.100.0180.01016.90
7.1.90.0190.00616.76
7.1.80.0200.00816.73
7.1.70.0380.01116.28
7.1.60.0590.01427.08
7.1.50.0270.01026.95
7.1.40.0320.01326.69
7.1.30.0270.01226.74
7.1.20.0240.01326.69
7.1.10.0170.00715.94
7.1.00.0160.00915.91
7.0.330.0200.00915.31
7.0.320.0130.01215.37
7.0.310.0230.00815.32
7.0.300.0280.00415.40
7.0.290.0180.01115.39
7.0.280.0240.00515.31
7.0.270.0140.01415.38
7.0.260.0190.01315.36
7.0.250.0230.00915.41
7.0.240.0190.01015.45
7.0.230.0200.01515.45
7.0.220.0180.01615.41
7.0.210.0200.01415.42
7.0.200.0240.01215.39
7.0.190.0270.01015.44
7.0.180.0290.00615.41
7.0.170.0300.01115.46
7.0.160.0160.01615.42
7.0.150.0230.00615.38
7.0.140.0570.00715.36
7.0.130.0190.00715.49
7.0.120.0260.00815.48
7.0.110.0150.01715.48
7.0.100.0200.00815.38
7.0.90.0260.01215.33
7.0.80.0260.00515.35
7.0.70.0220.01215.37
7.0.60.0450.01415.42
7.0.50.0200.01115.28
7.0.40.0240.00915.46
7.0.30.0230.01015.42
7.0.20.0210.01015.36
7.0.10.0210.01015.49
7.0.00.0220.01015.42
5.6.400.0280.00415.98
5.6.390.0240.01715.88
5.6.380.0200.01115.93
5.6.370.0210.01516.02
5.6.360.0280.01515.94
5.6.350.0290.00715.94
5.6.340.0250.01215.91
5.6.330.0240.01415.97
5.6.320.0270.00716.03
5.6.310.0250.01115.98
5.6.300.0270.00815.89
5.6.290.0200.01016.08
5.6.280.0370.00415.96
5.6.270.0260.00915.95
5.6.260.0250.01315.95
5.6.250.0210.01215.95
5.6.240.0250.01115.98
5.6.230.0230.01315.90
5.6.220.0220.01516.04
5.6.210.0230.01216.08
5.6.200.0230.01116.08
5.6.190.0230.00716.14
5.6.180.0250.00616.10
5.6.170.0260.01316.08
5.6.160.0220.01116.14
5.6.150.0270.01016.25
5.6.140.0210.00916.05
5.6.130.0240.00616.09
5.6.120.0200.01016.09
5.6.110.0190.01316.01
5.6.100.0220.01316.00
5.6.90.0280.00916.01
5.6.80.0210.01115.84
5.6.70.0180.01216.06
5.6.60.0320.00616.09
5.6.50.0180.01315.95
5.6.40.0190.02216.03
5.6.30.0210.01115.89
5.6.20.0180.01515.95
5.6.10.0220.01215.86
5.6.00.0280.00516.08

preferences:
77.31 ms | 406 KiB | 5 Q