3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = new DateTime('2016-03-11 11:00:00', new DateTimeZone('UTC')); $d1->setTimezone(new DateTimeZone('-0400')); echo $d1->format('U'); echo "\n"; $t1 = $d1->getTimestamp(); echo $t1;

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.4.10.0130.00717.41
8.3.140.0110.00316.52
8.3.130.0060.01316.75
8.3.120.0120.00820.55
8.3.110.0040.00416.78
8.3.100.0040.00416.41
8.3.90.0030.00526.77
8.3.80.0060.00316.54
8.3.70.0040.01216.58
8.3.60.0090.00618.43
8.3.50.0040.00916.46
8.3.40.0120.00618.92
8.3.30.0170.00018.73
8.3.20.0040.00421.94
8.3.10.0080.00023.42
8.3.00.0040.00419.05
8.2.260.0040.00418.45
8.2.250.0100.00716.50
8.2.240.0030.00617.25
8.2.230.0040.00420.94
8.2.220.0030.00524.06
8.2.210.0000.00826.77
8.2.200.0060.00616.38
8.2.190.0150.00416.58
8.2.180.0120.00316.88
8.2.170.0160.00318.86
8.2.160.0120.00422.96
8.2.150.0080.00025.66
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0090.00021.10
8.2.110.0060.00321.13
8.2.100.0120.00017.91
8.2.90.0000.00817.75
8.2.80.0000.00918.78
8.2.70.0040.00417.75
8.2.60.0050.00317.63
8.2.50.0080.00017.73
8.2.40.0040.00417.93
8.2.30.0040.00419.34
8.2.20.0000.00718.11
8.2.10.0040.00418.08
8.2.00.0000.00718.02
8.1.310.0150.00016.55
8.1.300.0080.00316.68
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0040.00820.82
8.1.220.0090.00018.72
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00417.62
8.1.160.0000.00718.75
8.1.150.0000.00719.05
8.1.140.0000.00717.59
8.1.130.0070.00020.19
8.1.120.0050.00317.36
8.1.110.0040.00417.49
8.1.100.0060.00317.37
8.1.90.0000.00717.53
8.1.80.0000.00717.55
8.1.70.0000.00717.50
8.1.60.0050.00317.60
8.1.50.0000.00817.40
8.1.40.0050.00217.51
8.1.30.0030.00517.59
8.1.20.0030.00617.47
8.1.10.0080.00017.65
8.1.00.0060.00317.41
8.0.300.0070.00020.02
8.0.290.0000.00916.75
8.0.280.0030.00318.51
8.0.270.0000.00717.11
8.0.260.0050.00516.99
8.0.250.0030.00317.10
8.0.240.0050.00217.04
8.0.230.0070.00016.91
8.0.220.0080.00016.88
8.0.210.0000.00716.87
8.0.200.0100.00016.88
8.0.190.0100.00416.98
8.0.180.0050.00316.98
8.0.170.0080.00017.03
8.0.160.0030.00616.96
8.0.150.0000.00716.80
8.0.140.0030.00316.94
8.0.130.0000.00613.33
8.0.120.0040.00416.97
8.0.110.0000.00716.74
8.0.100.0000.00716.92
8.0.90.0000.00816.97
8.0.80.0000.02016.94
8.0.70.0000.00716.83
8.0.60.0070.00016.97
8.0.50.0030.00316.98
8.0.30.0130.00617.08
8.0.20.0120.00817.40
8.0.10.0040.00417.06
8.0.00.0110.00516.74
7.4.330.0020.00215.55
7.4.320.0040.00416.51
7.4.300.0050.00216.49
7.4.290.0000.00816.35
7.4.280.0000.00716.60
7.4.270.0000.00616.40
7.4.260.0030.00316.60
7.4.250.0030.00516.55
7.4.240.0000.00716.53
7.4.230.0070.00016.58
7.4.220.0000.00816.38
7.4.210.0140.00216.66
7.4.200.0030.00316.68
7.4.160.0120.00716.53
7.4.140.0110.00717.86
7.4.130.0120.00616.71
7.4.120.0120.01016.54
7.4.110.0070.01016.57
7.4.100.0070.01016.45
7.4.90.0130.00316.78
7.4.80.0100.01319.39
7.4.70.0000.01616.67
7.4.60.0080.00816.55
7.4.50.0120.00316.33
7.4.40.0120.00616.57
7.4.00.0000.01414.82
7.3.330.0070.00013.17
7.3.320.0000.00513.30
7.3.310.0070.00016.14
7.3.300.0040.00416.27
7.3.290.0000.00616.31
7.3.280.0100.00516.26
7.3.260.0080.01216.40
7.3.240.0080.00916.45
7.3.230.0130.00316.34
7.3.210.0100.00616.47
7.3.200.0120.00416.34
7.3.190.0070.01116.32
7.3.180.0040.01116.68
7.3.170.0090.01216.47
7.3.160.0030.01816.36
7.2.330.0110.01116.93
7.2.320.0070.01316.73
7.2.310.0070.01316.61
7.2.300.0110.00516.59
7.2.290.0030.01416.64
7.2.80.0120.00916.61
7.2.60.0080.00316.73
7.2.40.0260.01217.98
7.2.30.0290.01517.99
7.2.20.0360.01617.87
7.2.10.0230.01417.86
7.2.00.0270.01218.18
7.1.200.0000.01315.82
7.1.160.0250.01116.77
7.1.150.0260.01116.88
7.1.140.0260.01116.95
7.1.130.0270.01116.82
7.1.120.0370.01116.83
7.1.110.0270.01116.33
7.1.100.0290.01116.15
7.1.90.0240.01216.22
7.1.80.0220.00916.19
7.1.70.0230.01015.19
7.1.60.0890.01532.99
7.1.50.0460.01433.02
7.1.40.0380.01532.50
7.1.30.0380.01332.76
7.1.20.0500.02032.74
7.1.10.0190.00914.82
7.1.00.0330.01315.03

preferences:
27.56 ms | 403 KiB | 5 Q