3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests[] = '0000-01-28 00:00:00 UTC'; $tests[] = '0000-01-29 00:00:00 UTC'; $tests[] = '0000-01-30 00:00:00 UTC'; $tests[] = '0000-01-31 00:00:00 UTC'; $tests[] = '0000-02-01 00:00:00 UTC'; $tests[] = '0000-02-27 00:00:00 UTC'; $tests[] = '0000-02-28 00:00:00 UTC'; $tests[] = '0000-02-29 00:00:00 UTC'; $tests[] = '0000-02-30 00:00:00 UTC'; // intentionally invalid day, should be the same as the next. $tests[] = '0000-03-01 00:00:00 UTC'; $tests[] = '0000-03-02 00:00:00 UTC'; foreach ($tests as $test) { $timestamp1 = strtotime($test); $date_time = new DateTime('@' . $timestamp1); $timestamp2 = $date_time->getTimestamp(); print $timestamp1 . "\n"; print $timestamp2 . "\n"; if ($timestamp1 != $timestamp2) { print "timestamps are not equal\n"; } print_r($date_time); print "\n"; }

Abusive script

This script was stopped while abusing our resources

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.110.0050.00316.60
8.3.100.0040.00424.06
8.3.90.0120.00326.77
8.3.80.0030.00719.36
8.3.70.0070.00716.88
8.3.60.0090.00916.88
8.3.50.0130.00524.63
8.3.40.0140.00718.74
8.3.30.0110.00418.98
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.230.0070.00420.94
8.2.220.0030.00637.54
8.2.210.0030.00526.77
8.2.200.0030.00618.88
8.2.190.0070.01316.75
8.2.180.0100.00625.92
8.2.170.0120.00419.04
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.12
8.2.110.0030.00719.61
8.1.290.0040.00430.84
8.1.280.0070.01525.92
8.1.270.0030.00623.99
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0100.00019.26
7.4.70.0090.01116.37
7.4.60.0090.01216.40
7.4.50.0060.01316.54
7.4.40.0110.00816.40
7.4.30.0150.00516.37
7.4.20.0090.00916.30
7.4.10.0070.01116.53
7.4.00.0140.00816.81
7.3.190.0120.01016.27
7.3.180.0100.01016.48
7.3.170.0120.00616.54
7.3.160.0160.00816.44
7.3.150.0120.00716.50
7.3.140.0080.00816.61
7.3.130.0100.00916.48
7.3.120.0090.01116.41
7.3.110.0100.00916.41
7.3.100.0120.00916.45
7.3.90.0070.01116.32
7.3.80.0100.00916.53
7.3.70.0130.00716.53
7.3.60.0090.00916.63
7.3.50.0060.01616.35
7.3.40.0120.00616.50
7.3.30.0110.00916.55
7.3.20.0110.01116.56
7.3.10.0070.01416.59
7.3.00.0100.01016.47
7.2.310.0100.01116.69
7.2.300.0140.00716.63
7.2.290.0130.00916.53
7.2.280.0110.00916.86
7.2.270.0130.00916.83
7.2.260.0070.01116.81
7.2.250.0070.01216.54
7.2.240.0170.00716.67
7.2.230.0090.00916.67
7.2.220.0090.01116.70
7.2.210.0070.01316.77
7.2.200.0060.01216.76
7.2.190.0090.00916.69
7.2.180.0150.00616.69
7.2.170.0070.01116.88
7.2.160.0150.01216.56
7.2.150.0120.00916.86
7.2.140.0090.01216.69
7.2.130.0100.01016.71
7.2.120.0090.01616.86
7.2.110.0120.01416.73
7.2.100.0040.01616.82
7.2.90.0110.01016.79
7.2.80.0110.01016.81
7.2.70.0090.01116.72
7.2.60.0140.00816.73
7.2.50.0130.00716.96
7.2.40.0120.00816.97
7.2.30.0430.01116.83
7.2.20.0100.01416.85
7.2.10.0100.01116.74
7.2.00.0050.01416.72
7.1.330.0180.00416.27
7.1.320.0180.00016.27
7.1.310.0120.00816.27
7.1.300.0050.01816.27
7.1.290.0050.01416.27
7.1.280.0160.00516.27
7.1.270.0160.00816.27
7.1.260.0120.01516.27
7.1.250.0110.00916.27
7.1.240.0110.01216.27
7.1.230.0070.01416.27
7.1.220.0090.01816.27
7.1.210.0240.01316.27
7.1.200.0240.00816.27
7.1.190.0260.00416.27
7.1.180.0190.01016.27
7.1.170.0290.00716.27
7.1.160.0210.00816.27
7.1.150.0190.01416.27
7.1.140.0220.00916.27
7.1.130.0240.01016.27
7.1.120.0060.01416.27
7.1.110.0280.01316.27
7.1.100.0240.00616.27
7.1.90.0210.01016.27
7.1.80.0250.01716.27
7.1.70.0270.00916.27
7.1.60.0220.00916.27
7.1.50.0180.01116.27
7.1.40.0140.01816.27
7.1.30.0200.01116.27
7.1.20.0090.01016.27
7.1.10.0250.00616.27
7.1.00.0090.01216.27
7.0.330.0190.01516.27
7.0.320.0160.01916.27
7.0.310.0230.00716.27
7.0.300.0250.01116.27
7.0.290.0280.00416.27
7.0.280.0260.00516.27
7.0.270.0300.00816.27
7.0.260.0260.00516.27
7.0.250.0290.00016.27
7.0.240.0200.01716.27
7.0.230.0240.01516.27
7.0.220.0200.01316.27
7.0.210.0220.01116.27
7.0.200.0150.01516.27
7.0.190.0210.00716.27
7.0.180.0260.00516.27
7.0.170.0300.00716.27
7.0.160.0340.01016.27
7.0.150.0230.00816.27
7.0.140.0230.00616.27
7.0.130.0140.01416.27
7.0.120.0200.00916.27
7.0.110.0190.00816.27
7.0.100.0170.00916.27
7.0.90.0240.00416.27
7.0.80.0500.00816.27
7.0.70.0160.01416.27
7.0.60.0180.01816.27
7.0.50.0220.00616.27
7.0.40.0380.00516.27
7.0.30.0330.00616.27
7.0.20.0220.00716.27
7.0.10.0290.00016.27
7.0.00.0120.01216.27
5.6.400.0200.01216.49
5.6.390.0210.01516.41
5.6.380.0170.01716.36
5.6.370.0180.01216.57
5.6.360.0180.01416.27
5.6.350.0140.02016.41
5.6.340.0120.01816.42
5.6.330.0230.00816.49
5.6.320.0220.00916.27
5.6.310.0200.02016.27
5.6.300.0160.01916.38
5.6.290.0220.01016.30
5.6.280.0210.00816.47
5.6.270.0230.00716.27
5.6.260.0260.00616.27
5.6.250.0230.00916.29
5.6.240.0070.02216.27
5.6.230.0150.01516.27
5.6.220.0220.01016.27
5.6.210.0190.01116.27
5.6.200.0180.01416.44
5.6.190.0260.01316.27
5.6.180.0420.02516.30
5.6.170.0220.01616.27
5.6.160.0160.01716.27
5.6.150.0230.00916.27
5.6.140.0300.00316.27
5.6.130.0250.01416.27
5.6.120.0230.01216.35
5.6.110.0250.01616.27
5.6.100.0220.00816.27
5.6.90.0190.01616.39
5.6.80.0200.01416.27
5.6.70.0170.01416.27
5.6.60.0260.00616.30
5.6.50.0260.00816.27
5.6.40.0210.01216.27
5.6.30.0190.01316.32
5.6.20.0160.02116.39
5.6.10.0230.00616.29
5.6.00.0230.01416.27
5.5.380.0230.00916.27
5.5.370.0200.01316.27
5.5.360.0160.01916.27
5.5.350.0130.02216.34
5.5.340.0240.01116.27
5.5.330.0270.00916.35
5.5.320.0250.00716.32
5.5.310.0330.00416.27
5.5.300.0150.01716.27
5.5.290.0110.02016.30
5.5.280.0260.01416.27
5.5.270.0230.01716.29
5.5.260.0250.01416.27
5.5.250.0280.00616.27
5.5.240.0260.01116.27
5.5.230.0190.01316.31
5.5.220.0270.01316.27
5.5.210.0210.01216.27
5.5.200.0170.01316.27
5.5.190.0180.01516.27
5.5.180.0170.01516.27
5.5.170.0150.01516.27
5.5.160.0140.01816.27
5.5.150.0170.01716.27
5.5.140.0090.02316.27
5.5.130.0180.01516.27
5.5.120.0220.01216.27
5.5.110.0280.00316.27
5.5.100.0280.00616.38
5.5.90.0180.01216.27
5.5.80.0160.01316.27
5.5.70.0170.01216.29
5.5.60.0190.01516.27
5.5.50.0080.02316.27
5.5.40.0190.01916.27
5.5.30.0210.01316.27
5.5.20.0160.01316.27
5.5.10.0150.01516.27
5.5.00.0190.00816.27
5.4.450.0230.00716.27
5.4.440.0190.00916.27
5.4.430.0200.00716.27
5.4.420.0220.01016.27
5.4.410.0110.01616.27
5.4.400.0240.00316.27
5.4.390.0120.01516.27
5.4.380.0090.01616.27
5.4.370.0200.01016.27
5.4.360.0190.00616.27
5.4.350.0200.00316.27
5.4.340.0150.00916.27
5.4.330.0220.00416.27
5.4.320.0160.00916.27
5.4.310.0140.01016.27
5.4.300.0170.00616.27
5.4.290.0180.00516.27
5.4.280.0150.01016.27
5.4.270.0180.00716.27
5.4.260.0180.00916.27
5.4.250.0080.01616.27
5.4.240.0190.00516.27
5.4.230.0180.00916.27
5.4.220.0180.00716.27
5.4.210.0160.01016.27
5.4.200.0170.01016.27
5.4.190.0150.00916.27
5.4.180.0140.00916.27
5.4.170.0180.00716.27
5.4.160.0130.01316.27
5.4.150.0160.00616.27
5.4.140.0160.01016.27
5.4.130.0170.00816.27
5.4.120.0130.01116.27
5.4.110.0210.01016.27
5.4.100.0170.01116.27
5.4.90.0210.00416.27
5.4.80.0170.00816.27
5.4.70.0230.00016.27
5.4.60.0110.01416.27
5.4.50.0140.00916.27
5.4.40.0100.01316.27
5.4.30.0160.00616.27
5.4.20.0180.00916.27
5.4.10.0160.01016.27
5.4.00.0150.00716.27
5.3.290.0170.00816.27
5.3.280.0130.01316.27
5.3.270.0130.01316.27
5.3.260.0200.00716.27
5.3.250.0200.00416.27
5.3.240.0120.01416.27
5.3.230.0180.00716.27
5.3.220.0170.00816.27
5.3.210.0220.01216.27
5.3.200.0200.01016.27
5.3.190.0160.01316.27
5.3.180.0170.01016.27
5.3.170.0170.01116.27
5.3.160.0170.01316.27
5.3.150.0100.01516.27
5.3.140.0130.01316.27
5.3.130.0240.00816.27
5.3.120.0230.00816.27
5.3.110.0190.00816.27
5.3.100.0180.00716.27
5.3.90.0140.01016.27
5.3.80.0090.01516.27
5.3.70.0050.01916.27
5.3.60.0170.00616.27
5.3.50.0190.00616.27
5.3.40.0140.01416.27
5.3.30.0140.01416.27
5.3.20.0180.01416.27
5.3.10.0230.00816.27
5.3.00.0170.01416.27
5.2.170.0120.00816.27
5.2.160.0180.00016.27
5.2.150.0160.00316.27
5.2.140.0100.01116.27
5.2.130.0140.01216.27
5.2.120.0100.01816.27
5.2.110.0090.01316.27
5.2.100.0120.01216.27
5.2.90.0352.28416.27
5.2.80.0562.25416.27
5.2.70.0392.32216.27
5.2.60.0492.26716.27
5.2.50.0090.01316.27
5.2.40.0140.01016.27
5.2.30.0150.00416.27
5.2.20.0030.01416.27
5.2.10.0170.00416.27
5.2.00.0140.00916.27
5.1.60.0140.00516.27
5.1.50.0130.00716.27
5.1.40.0140.00316.27
5.1.30.0140.00616.27
5.1.20.0140.00516.27
5.1.10.0090.00816.27
5.1.00.0120.01016.27
5.0.50.0080.00516.27
5.0.40.0070.00716.27
5.0.30.0070.00716.27
5.0.20.0110.00216.27
5.0.10.0130.00016.27
5.0.00.0080.00516.27
4.4.90.0080.00416.27
4.4.80.0070.00316.27
4.4.70.0080.00316.27
4.4.60.0050.00516.27
4.4.50.0090.00016.27
4.4.40.0070.00416.27
4.4.30.0110.00016.27
4.4.20.0060.00316.27
4.4.10.0090.00316.27
4.4.00.0060.00316.27
4.3.110.0080.00016.27
4.3.100.0000.00916.27
4.3.90.0040.00416.27
4.3.80.0000.00816.27
4.3.70.0090.00016.27
4.3.60.0020.00716.27
4.3.50.0110.00016.27
4.3.40.0060.00316.27
4.3.30.0050.00516.27
4.3.20.0090.00016.27
4.3.10.0000.00916.27
4.3.00.0060.00316.27

preferences:
100.7 ms | 403 KiB | 5 Q