3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Prague'); $tz = new \DateTimeZone('UTC'); $date = new \DateTime('2016-05-05 midnight', $tz); echo $date->format('c'); echo PHP_EOL; $date->modify('first day of this month midnight'); $date->modify('-2 months'); echo $date->format('c');

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.0180.00416.50
8.3.50.0140.00522.09
8.3.40.0190.00018.84
8.3.30.0070.00718.71
8.3.20.0080.00022.09
8.3.10.0000.00721.60
8.3.00.0060.00319.79
8.2.180.0140.00716.88
8.2.170.0040.01122.96
8.2.160.0110.00419.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00422.20
8.2.120.0040.00426.35
8.2.110.0060.00320.99
8.2.100.0080.00318.22
8.2.90.0080.00019.17
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0030.00618.05
8.2.50.0000.00818.10
8.2.40.0000.00820.55
8.2.30.0040.00421.00
8.2.20.0050.00317.95
8.2.10.0040.00418.16
8.2.00.0040.00418.02
8.1.280.0120.00325.92
8.1.270.0000.00923.79
8.1.260.0050.00328.09
8.1.250.0000.00828.09
8.1.240.0040.00421.44
8.1.230.0060.00619.48
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0040.00717.47
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0040.00418.77
8.1.160.0050.00322.26
8.1.150.0040.00420.59
8.1.140.0000.00819.57
8.1.130.0090.00017.69
8.1.120.0050.00217.58
8.1.110.0080.00017.51
8.1.100.0040.00817.62
8.1.90.0040.00417.47
8.1.80.0000.00717.48
8.1.70.0080.00017.60
8.1.60.0060.00317.66
8.1.50.0040.00417.58
8.1.40.0060.00517.62
8.1.30.0080.00017.73
8.1.20.0040.00417.73
8.1.10.0000.00717.70
8.1.00.0030.00517.52
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0080.00018.44
8.0.270.0030.00317.23
8.0.260.0040.00417.38
8.0.250.0000.00717.16
8.0.240.0030.00717.10
8.0.230.0020.00517.02
8.0.220.0000.00716.98
8.0.210.0030.00316.93
8.0.200.0000.00717.02
8.0.190.0050.00217.06
8.0.180.0040.00417.00
8.0.170.0040.00416.96
8.0.160.0040.00416.98
8.0.150.0040.00416.94
8.0.140.0080.00016.99
8.0.130.0030.00313.34
8.0.120.0060.00317.02
8.0.110.0000.00716.96
8.0.100.0020.00517.00
8.0.90.0000.00716.97
8.0.80.0140.00816.99
8.0.70.0070.00017.12
8.0.60.0000.00716.84
8.0.50.0000.00716.95
8.0.30.0070.01017.23
8.0.20.0090.01117.40
8.0.10.0000.00716.97
8.0.00.0070.01116.76
7.4.330.0000.00515.08
7.4.320.0030.00316.55
7.4.300.0060.00016.63
7.4.290.0030.00516.58
7.4.280.0040.00416.66
7.4.270.0000.00716.59
7.4.260.0000.00816.65
7.4.250.0050.00216.45
7.4.240.0030.00316.63
7.4.230.0000.00716.61
7.4.220.0070.00916.60
7.4.210.0070.01016.62
7.4.200.0000.00716.69
7.4.160.0120.00716.57
7.4.150.0030.01617.40
7.4.140.0130.00417.86
7.4.130.0050.01216.55
7.4.120.0130.00316.51
7.4.110.0160.00716.64
7.4.100.0110.00916.70
7.4.90.0140.00416.59
7.4.80.0060.01019.39
7.4.70.0170.00716.62
7.4.60.0130.00716.58
7.4.50.0120.00316.29
7.4.40.0040.01416.63
7.4.30.0000.01616.54
7.4.00.0140.00315.12
7.3.330.0000.00813.21
7.3.320.0000.00513.04
7.3.310.0000.00716.18
7.3.300.0000.00616.34
7.3.290.0000.00716.33
7.3.280.0080.00916.33
7.3.270.0060.01117.40
7.3.260.0150.00316.44
7.3.250.0110.01116.48
7.3.240.0100.00716.45
7.3.230.0090.01516.49
7.3.210.0130.00316.41
7.3.200.0100.00616.69
7.3.190.0100.00716.36
7.3.180.0090.00916.71
7.3.170.0100.01016.28
7.3.160.0080.00816.21
7.2.330.0060.01216.67
7.2.320.0030.01216.79
7.2.310.0140.01016.75
7.2.300.0150.00316.79
7.2.290.0110.00616.63
7.2.00.0000.01219.16
7.1.70.0000.01117.36
7.1.60.0080.00619.75
7.1.00.0030.07322.54
7.0.200.0040.00416.87
7.0.90.0170.07719.94
7.0.80.0100.06320.09
7.0.70.0170.05320.02
7.0.60.0230.05320.09
7.0.50.0030.06720.25
7.0.40.0130.05720.25
7.0.30.0070.06320.37
7.0.20.0100.07020.45
7.0.10.0070.06320.43
7.0.00.0230.05320.28
5.6.240.0200.05320.73
5.6.230.0170.05720.70
5.6.220.0200.05020.65
5.6.210.0170.05320.71
5.6.200.0030.07021.11
5.6.190.0100.06321.08
5.6.180.0130.05720.97
5.6.170.0130.05721.13
5.6.160.0100.06321.02
5.6.150.0100.06321.09
5.6.140.0170.05321.19
5.6.130.0100.06321.19
5.6.120.0130.06021.16
5.6.110.0370.04021.05
5.6.100.0170.05721.07
5.6.90.0100.06721.00
5.6.80.0200.07020.45
5.6.70.0200.05320.45
5.6.60.0200.04720.44
5.6.50.0030.07020.58
5.6.40.0100.06720.45
5.6.30.0170.05720.55
5.6.20.0270.05020.48
5.6.10.0170.07320.46
5.6.00.0170.06320.41

preferences:
61.13 ms | 401 KiB | 5 Q