3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utc = new DateTimeZone('UTC'); $amla = new DateTimeZone('America/New_York'); $two_past_midnight = new DateTime('2016-03-12 19:00', $utc); if ( date('T',$two_past_midnight) == 'EST' ){ echo 'Easter Standard Time'; } else{ echo "Estern Daylight Time"; } $two_past_midnight->setTimeZone($amla); echo $two_past_midnight->format('T'); ?>

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.70.0150.00018.43
8.3.60.0110.00716.63
8.3.50.0120.00621.20
8.3.40.0150.00019.03
8.3.30.0140.00718.97
8.3.20.0040.00420.35
8.3.10.0140.00321.73
8.3.00.0090.00923.66
8.2.190.0190.00318.57
8.2.180.0040.01118.68
8.2.170.0100.01022.96
8.2.160.0160.00320.39
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00820.90
8.2.120.0180.00026.35
8.2.110.0060.00322.20
8.2.100.0080.00417.97
8.2.90.0030.00519.22
8.2.80.0040.00418.00
8.2.70.0090.00017.88
8.2.60.0000.00817.93
8.2.50.0000.00818.09
8.2.40.0030.00622.13
8.2.30.0070.00019.39
8.2.20.0060.00317.89
8.2.10.0050.00318.11
8.2.00.0040.00418.14
8.1.280.0150.00025.92
8.1.270.0060.01322.10
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0090.00023.76
8.1.230.0090.00320.97
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.38
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0080.00018.70
8.1.160.0030.00520.74
8.1.150.0000.00718.74
8.1.140.0040.00419.54
8.1.130.0070.00017.73
8.1.120.0070.00017.56
8.1.110.0000.00717.71
8.1.100.0000.00817.65
8.1.90.0000.00717.57
8.1.80.0000.00717.63
8.1.70.0030.00317.58
8.1.60.0040.00417.68
8.1.50.0000.00817.65
8.1.40.0040.00417.55
8.1.30.0030.00617.70
8.1.20.0030.00617.64
8.1.10.0000.00717.75
8.1.00.0040.00417.50
8.0.300.0080.00018.87
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0030.00317.24
8.0.260.0030.00317.25
8.0.250.0030.00317.14
8.0.240.0030.00317.07
8.0.230.0030.00317.00
8.0.220.0040.00417.02
8.0.210.0000.00717.11
8.0.200.0060.00317.12
8.0.190.0030.01017.04
8.0.180.0000.00717.07
8.0.170.0040.00417.12
8.0.160.0040.00417.13
8.0.150.0000.00717.08
8.0.140.0000.00716.92
8.0.130.0030.00313.47
8.0.120.0000.00817.04
8.0.110.0040.00417.05
8.0.100.0070.00017.10
8.0.90.0050.00217.08
8.0.80.0060.01017.12
8.0.70.0060.00317.10
8.0.60.0030.00617.04
8.0.50.0050.00317.04
8.0.30.0080.00917.16
8.0.20.0120.00817.40
8.0.10.0070.00017.23
8.0.00.0060.01216.85
7.4.330.0050.00016.78
7.4.320.0030.00316.52
7.4.300.0000.00816.63
7.4.290.0090.00016.62
7.4.280.0070.00016.54
7.4.270.0030.00316.70
7.4.260.0030.00316.61
7.4.250.0030.00516.57
7.4.240.0000.00716.77
7.4.230.0030.00316.75
7.4.220.0060.01316.84
7.4.210.0020.01216.56
7.4.200.0070.00016.80
7.4.160.0160.00616.70
7.4.150.0070.01317.40
7.4.140.0120.00917.86
7.4.130.0060.01216.57
7.4.120.0190.00316.75
7.4.110.0030.01316.71
7.4.100.0140.00316.85
7.4.90.0140.00416.54
7.4.80.0080.00919.39
7.4.70.0130.00516.77
7.4.60.0100.01016.64
7.4.50.0030.00816.70
7.4.40.0080.01016.76
7.4.30.0150.00816.85
7.4.00.0030.01015.33
7.3.330.0000.00613.34
7.3.320.0050.00013.35
7.3.310.0000.00716.35
7.3.300.0030.00616.54
7.3.290.0030.00316.54
7.3.280.0080.00916.55
7.3.270.0160.00317.40
7.3.260.0060.01016.59
7.3.250.0080.01116.48
7.3.240.0090.00816.54
7.3.230.0060.01016.39
7.3.210.0060.01216.46
7.3.200.0090.00919.39
7.3.190.0070.01416.34
7.3.180.0060.00916.57
7.3.170.0110.00816.43
7.3.160.0060.01016.55
7.2.330.0030.01516.69
7.2.320.0110.00616.66
7.2.310.0130.00316.71
7.2.300.0050.01116.57
7.2.290.0090.00616.68
7.2.60.0060.00917.09
7.2.00.0040.00819.63
7.1.200.0030.00715.83
7.1.100.0030.00618.02
7.1.70.0030.00317.25
7.1.60.0180.00719.40
7.1.50.0060.01317.00
7.1.00.0130.06722.28
7.0.200.0540.00714.86
7.0.80.0630.07319.93
7.0.70.0470.07719.86
7.0.60.0470.07319.92
7.0.50.0530.08720.30
7.0.40.0100.06320.10
7.0.30.0070.08720.18
7.0.20.0100.08720.10
7.0.10.0170.06320.16
7.0.00.0070.08020.18
5.6.280.0030.03020.86
5.6.230.0100.07020.48
5.6.220.0100.05320.49
5.6.210.0000.06320.45
5.6.200.0130.05321.11
5.6.190.0170.06021.08
5.6.180.0130.07721.17
5.6.170.0070.06021.04
5.6.160.0000.08721.11
5.6.150.0030.05021.07
5.6.140.0100.07321.07
5.6.130.0100.08021.03
5.6.120.0070.06020.95
5.6.110.0130.08321.02
5.6.100.0130.08021.07
5.6.90.0070.09021.05
5.6.80.0030.07320.38
5.6.70.0100.07320.39
5.6.60.0170.07720.40
5.6.50.0030.04020.48
5.6.40.0100.08020.52
5.6.30.0130.08020.43
5.6.20.0100.05020.40
5.6.10.0100.07020.37
5.6.00.0030.04320.35
5.5.370.0100.07720.36
5.5.360.0030.04320.44
5.5.350.0070.05320.39
5.5.340.0100.06720.82
5.5.330.0030.08020.82
5.5.320.0070.08320.80
5.5.310.0000.07020.64
5.5.300.0000.09320.93
5.5.290.0030.08320.83
5.5.280.0070.08320.82
5.5.270.0200.07020.90
5.5.260.0070.08020.72
5.5.250.0230.06720.56
5.5.240.0100.05020.02
5.5.230.0030.06320.16
5.5.220.0030.05020.14
5.5.210.0130.07320.09
5.5.200.0030.04019.99
5.5.190.0070.06320.07
5.5.180.0100.08020.25
5.5.160.0100.08020.17
5.5.150.0000.06020.24
5.5.140.0070.05020.07
5.5.130.0030.08720.10
5.5.120.0030.05020.07
5.5.110.0070.07320.14
5.5.100.0030.05020.07
5.5.90.0100.07020.15
5.5.80.0070.07719.90
5.5.70.0100.04720.09
5.5.60.0100.07720.00
5.5.50.0100.04020.15
5.5.40.0100.08020.14
5.5.30.0030.04319.95
5.5.20.0130.03720.07
5.5.10.0100.08019.95
5.5.00.0070.07019.96

preferences:
34.32 ms | 401 KiB | 5 Q