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_pas_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.60.0160.00016.75
8.3.50.0090.00921.34
8.3.40.0090.00619.04
8.3.30.0090.00918.92
8.3.20.0040.00420.30
8.3.10.0040.00421.95
8.3.00.0040.00423.52
8.2.180.0140.00718.79
8.2.170.0120.00922.96
8.2.160.0100.00320.28
8.2.150.0030.01324.18
8.2.140.0070.00724.66
8.2.130.0000.00926.16
8.2.120.0080.00620.72
8.2.110.0000.00920.99
8.2.100.0080.01218.03
8.2.90.0040.00418.00
8.2.80.0080.00019.02
8.2.70.0030.00617.75
8.2.60.0040.00418.05
8.2.50.0060.00318.09
8.2.40.0040.00422.14
8.2.30.0030.00519.62
8.2.20.0040.00417.89
8.2.10.0030.00718.04
8.2.00.0040.00418.20
8.1.280.0120.00325.92
8.1.270.0120.00622.09
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0030.00724.02
8.1.230.0080.00317.83
8.1.220.0080.00017.77
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0090.00017.48
8.1.180.0080.00018.10
8.1.170.0000.00918.68
8.1.160.0000.00720.84
8.1.150.0040.00418.94
8.1.140.0000.00819.76
8.1.130.0050.00217.80
8.1.120.0030.00517.72
8.1.110.0030.00517.86
8.1.100.0040.00317.68
8.1.90.0000.00717.63
8.1.80.0000.00717.77
8.1.70.0000.00717.72
8.1.60.0000.00717.74
8.1.50.0000.00817.79
8.1.40.0040.00417.62
8.1.30.0030.00517.83
8.1.20.0090.00017.78
8.1.10.0000.00717.81
8.1.00.0040.00417.72
8.0.300.0050.00318.77
8.0.290.0040.00417.00
8.0.280.0040.00418.54
8.0.270.0000.00717.39
8.0.260.0030.00317.37
8.0.250.0030.00317.17
8.0.240.0050.00317.16
8.0.230.0030.00317.13
8.0.220.0080.00017.18
8.0.210.0000.00717.02
8.0.200.0130.00317.12
8.0.190.0040.00717.17
8.0.180.0030.00717.02
8.0.170.0050.00217.06
8.0.160.0030.00317.14
8.0.150.0040.00417.15
8.0.140.0000.00717.07
8.0.130.0030.00313.57
8.0.120.0080.00017.02
8.0.110.0070.00017.18
8.0.100.0080.00017.19
8.0.90.0000.00817.07
8.0.80.0130.00317.21
8.0.70.0040.00417.14
8.0.60.0030.00517.28
8.0.50.0050.00317.23
8.0.30.0170.00017.52
8.0.20.0080.01017.42
8.0.10.0030.00517.27
8.0.00.0050.01317.08
7.4.330.0020.00216.78
7.4.320.0030.00316.68
7.4.300.0030.00316.65
7.4.290.0050.00816.61
7.4.280.0050.00216.80
7.4.270.0070.00016.69
7.4.260.0030.00316.68
7.4.250.0040.00416.68
7.4.240.0070.00016.79
7.4.230.0000.00716.72
7.4.220.0060.01316.82
7.4.210.0080.01116.86
7.4.200.0040.00416.82
7.4.160.0060.00916.75
7.4.150.0180.00017.40
7.4.140.0160.00917.86
7.4.130.0120.00516.82
7.4.120.0160.00516.84
7.4.110.0030.01316.86
7.4.100.0090.01216.89
7.4.90.0130.00416.85
7.4.80.0040.01419.39
7.4.70.0060.01016.86
7.4.60.0100.01316.59
7.4.50.0070.00716.80
7.4.40.0160.00616.56
7.4.30.0100.01316.84
7.4.00.0130.00315.16
7.3.330.0070.00013.35
7.3.320.0000.00513.38
7.3.310.0070.00016.57
7.3.300.0030.00316.61
7.3.290.0000.00716.55
7.3.280.0070.00916.59
7.3.270.0090.00917.40
7.3.260.0150.00916.66
7.3.250.0130.00416.62
7.3.240.0100.00516.53
7.3.230.0050.01116.57
7.3.210.0080.01516.55
7.3.200.0140.00419.39
7.3.190.0110.00916.57
7.3.180.0080.00816.45
7.3.170.0060.01216.45
7.3.160.0030.01316.55
7.2.330.0060.01216.88
7.2.320.0000.01616.72
7.2.310.0070.01016.62
7.2.300.0110.00716.77
7.2.290.0050.01116.82
7.2.00.0030.01019.57
7.1.100.0130.00318.22
7.1.70.0000.00817.22
7.1.60.0160.00919.40
7.1.50.0170.00717.11
7.1.00.0070.07322.48
7.0.200.0500.00714.45
7.0.100.0270.04719.93
7.0.90.0030.04020.00
7.0.80.0070.03719.85
7.0.70.0100.03319.89
7.0.60.0100.04020.10
7.0.50.0130.03320.32
7.0.40.0070.03320.19
7.0.30.0000.05320.08
7.0.20.0070.03720.06
7.0.10.0070.04020.12
7.0.00.0100.04719.95
5.6.280.0030.03721.11
5.6.250.0030.04720.75
5.6.240.0070.04020.64
5.6.230.0030.04320.68
5.6.220.0000.03720.67
5.6.210.0100.03720.58
5.6.200.0030.04321.00
5.6.190.0100.03021.04
5.6.180.0170.03021.07
5.6.170.0000.04721.03
5.6.160.0100.04320.89
5.6.150.0100.03721.10
5.6.140.0130.03721.13
5.6.130.0000.04721.13
5.6.120.0100.03021.02
5.6.110.0030.04321.04
5.6.100.0100.04321.07
5.6.90.0100.07021.11
5.6.80.0100.04020.52
5.6.70.0100.04020.45
5.6.60.0130.07020.50
5.6.50.0070.05320.51
5.6.40.0100.07720.49
5.6.30.0100.07720.39
5.6.20.0030.06020.42
5.6.10.0130.05320.38
5.6.00.0070.08720.38
5.5.380.0100.03720.42
5.5.370.0070.03020.36
5.5.360.0070.05320.36
5.5.350.0000.04320.40
5.5.340.0070.04020.79
5.5.330.0100.03320.64
5.5.320.0070.04020.82
5.5.310.0070.03320.82
5.5.300.0030.04720.87
5.5.290.0030.05020.89
5.5.280.0030.04320.82
5.5.270.0030.04020.82
5.5.260.0000.05020.90
5.5.250.0030.04320.68
5.5.240.0070.03720.21
5.5.230.0030.05020.15
5.5.220.0070.07320.18
5.5.210.0030.08320.14
5.5.200.0030.07020.26
5.5.190.0200.06720.19
5.5.180.0100.08320.15
5.5.160.0100.07020.23
5.5.150.0070.08020.18
5.5.140.0070.05720.18
5.5.130.0100.07719.98
5.5.120.0030.08319.95
5.5.110.0070.07020.17
5.5.100.0170.07020.10
5.5.90.0100.05020.15
5.5.80.0130.05019.97
5.5.70.0070.06320.14
5.5.60.0070.07720.05
5.5.50.0100.07720.02
5.5.40.0030.08320.04
5.5.30.0100.07320.08
5.5.20.0100.07020.04
5.5.10.0070.07019.95
5.5.00.0100.04320.01

preferences:
87.81 ms | 401 KiB | 5 Q