3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startdate = '2014-05-05 10:00:00'; echo "Start: " . $startdate ."<br/>"; $tzone = new DateTimeZone('Europe/London'); echo "Tzone: " . print_r($tzone, true) ."<br/>"; $dateobj = new DateTime($startdate, $tzone); echo "Date Obj: " . print_r($dateobj, true) ."<br/>"; $formatted = $dateobj->format("c"); echo "Formatted: " . print_r($formatted, true) ."<br/>"; $utzone = new DateTimeZone('UTC'); echo "UTzone: " . print_r($utzone, true) ."<br/>"; $utc = $dateobj->setTimeZone($utzone); echo "UTC: " . print_r($utc, true) ."<br/>"; $formatted2 = $utc->format("c"); echo "Formatted UTC: " . print_r($formatted2, true) ."<br/>";

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.00018.43
8.3.50.0160.00722.88
8.3.40.0070.00718.82
8.3.30.0090.00618.91
8.3.20.0050.00320.09
8.3.10.0080.00023.70
8.3.00.0030.00619.38
8.2.180.0160.00616.38
8.2.170.0130.00722.96
8.2.160.0160.00420.44
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0000.01026.16
8.2.120.0030.00521.09
8.2.110.0050.00522.22
8.2.100.0100.00318.16
8.2.90.0070.00319.22
8.2.80.0000.00817.97
8.2.70.0050.00317.75
8.2.60.0030.00518.15
8.2.50.0000.00918.07
8.2.40.0000.00819.89
8.2.30.0000.00818.20
8.2.20.0080.00017.93
8.2.10.0000.00818.16
8.2.00.0000.00717.91
8.1.280.0180.00425.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.82
8.1.230.0000.01119.18
8.1.220.0030.00617.77
8.1.210.0000.00818.77
8.1.200.0060.00317.47
8.1.190.0080.00017.38
8.1.180.0000.00818.10
8.1.170.0030.00618.77
8.1.160.0040.00421.95
8.1.150.0000.00818.89
8.1.140.0000.00817.55
8.1.130.0000.00718.02
8.1.120.0030.00517.64
8.1.110.0070.00017.70
8.1.100.0040.00417.55
8.1.90.0040.00417.65
8.1.80.0000.00817.63
8.1.70.0030.00317.50
8.1.60.0060.00317.69
8.1.50.0080.00017.69
8.1.40.0040.00417.64
8.1.30.0040.00417.79
8.1.20.0000.00717.70
8.1.10.0040.00417.70
8.1.00.0030.00617.57
8.0.300.0030.00618.77
8.0.290.0030.00616.88
8.0.280.0040.00418.46
8.0.270.0050.00317.36
8.0.260.0030.00317.31
8.0.250.0000.00717.13
8.0.240.0000.00717.13
8.0.230.0050.00217.07
8.0.220.0040.00417.09
8.0.210.0050.00317.09
8.0.200.0000.00717.17
8.0.190.0080.00017.24
8.0.180.0030.00517.08
8.0.170.0000.00717.16
8.0.160.0040.00417.06
8.0.150.0080.00017.00
8.0.140.0040.00416.99
8.0.130.0030.00313.50
8.0.120.0040.00417.09
8.0.110.0050.00217.15
8.0.100.0030.00517.16
8.0.90.0000.00817.14
8.0.80.0030.01416.98
8.0.70.0000.00716.93
8.0.60.0030.00517.01
8.0.50.0040.00417.05
8.0.30.0150.00517.23
8.0.20.0110.00817.40
8.0.10.0040.00417.03
8.0.00.0090.00916.86
7.4.330.0050.00015.14
7.4.320.0000.00616.57
7.4.300.0000.00716.75
7.4.290.0050.00316.51
7.4.280.0050.00216.69
7.4.270.0000.00716.52
7.4.260.0080.00016.57
7.4.250.0000.00716.57
7.4.240.0080.00016.59
7.4.230.0040.00416.66
7.4.220.0030.01316.54
7.4.210.0110.00516.64
7.4.200.0030.00316.58
7.4.160.0140.00716.80
7.4.150.0120.01217.40
7.4.140.0120.00617.86
7.4.130.0080.00916.76
7.4.120.0070.01116.67
7.4.110.0060.01216.54
7.4.100.0090.00916.56
7.4.90.0070.01016.61
7.4.80.0070.01119.39
7.4.70.0070.01016.67
7.4.60.0100.00716.52
7.4.50.0050.00016.82
7.4.40.0090.00916.47
7.4.30.0110.00516.66
7.4.00.0100.00714.92
7.3.330.0000.00513.41
7.3.320.0040.00413.41
7.3.310.0070.00016.41
7.3.300.0030.00516.39
7.3.290.0100.00416.47
7.3.280.0130.00516.46
7.3.270.0170.01417.40
7.3.260.0120.00816.58
7.3.250.0140.00416.56
7.3.240.0160.00716.52
7.3.230.0100.00716.52
7.3.210.0130.00316.55
7.3.200.0120.00619.39
7.3.190.0120.00416.71
7.3.180.0150.00716.70
7.3.170.0030.01316.71
7.3.160.0090.00616.54
7.3.120.0060.00915.06
7.3.110.0090.00915.06
7.3.100.0030.01314.82
7.3.90.0060.00614.94
7.3.80.0070.01015.05
7.3.70.0070.00714.89
7.3.60.0030.01215.14
7.3.50.0060.00914.97
7.3.40.0060.00615.00
7.3.30.0030.01015.05
7.3.20.0050.00716.63
7.3.10.0090.00316.68
7.3.00.0030.00916.86
7.2.330.0150.00716.67
7.2.320.0030.01417.00
7.2.310.0100.01316.63
7.2.300.0070.01416.57
7.2.290.0080.00816.91
7.2.250.0040.01515.28
7.2.240.0120.00815.26
7.2.230.0050.01015.13
7.2.220.0080.00315.24
7.2.210.0080.00315.51
7.2.200.0040.00815.25
7.2.190.0070.00715.11
7.2.180.0060.01015.17
7.2.170.0030.01215.25
7.2.160.0080.00815.22
7.2.150.0030.01417.19
7.2.140.0030.01317.13
7.2.130.0050.01117.13
7.2.120.0070.00917.05
7.2.110.0100.00817.00
7.2.100.0050.00617.09
7.2.90.0050.00616.97
7.2.80.0060.00917.20
7.2.70.0090.00516.88
7.2.60.0050.01216.99
7.2.50.0050.00917.10
7.2.40.0100.00517.13
7.2.30.0050.00517.12
7.2.20.0050.00916.83
7.2.10.0050.01117.08
7.2.00.0070.00917.93
7.1.330.0070.01015.98
7.1.320.0070.00515.79
7.1.310.0030.00915.74
7.1.300.0060.00915.98
7.1.290.0070.00615.76
7.1.280.0090.00515.99
7.1.270.0080.00915.97
7.1.260.0080.00315.85
7.1.250.0030.01015.85
7.1.200.0040.01215.96
7.1.100.0190.00618.07
7.1.70.0000.00717.34
7.1.60.0110.01119.40
7.1.50.0060.00817.04
7.1.00.0070.07022.28
7.0.200.0050.00216.93
7.0.140.0070.09322.09
7.0.60.0100.07319.91
7.0.50.0000.04317.92
7.0.40.0100.08319.90
7.0.30.0330.07020.30
7.0.20.0230.04020.20
7.0.10.0070.09020.12
7.0.00.0100.08720.16
5.6.280.0130.06021.07
5.6.210.0100.06720.68
5.6.200.0100.06318.18
5.6.190.0100.08320.43
5.6.180.0400.07720.45
5.6.170.0230.08020.48
5.6.160.0000.07320.61
5.6.150.0070.08318.20
5.6.140.0130.07318.21
5.6.130.0000.05018.20
5.6.120.0200.07320.86
5.6.110.0070.08020.97
5.6.100.0130.07721.12
5.6.90.0070.09321.00
5.6.80.0030.04320.53
5.5.350.0170.03020.33
5.5.340.0030.05317.91
5.5.330.0070.06020.57
5.5.320.0200.04720.17
5.5.310.0270.07720.32
5.5.300.0000.04318.00
5.5.290.0130.04717.90
5.5.280.0070.08320.81
5.5.270.0030.04320.79
5.5.260.0070.08020.88
5.5.250.0070.04320.67
5.5.240.0130.08320.24
5.4.450.0330.05019.46
5.4.440.0230.04719.38
5.4.430.0470.04319.23
5.4.420.0300.04019.42
5.4.410.0370.04019.36
5.4.400.0170.03719.07
5.4.390.0300.04719.16
5.4.380.0600.05718.64
5.4.370.1100.04718.68
5.4.360.0500.03718.77
5.4.350.0330.04718.57
5.4.340.0300.05718.76
5.4.320.0080.03512.47
5.4.310.0050.04012.47
5.4.300.0040.03712.47
5.4.290.0050.03812.46
5.4.280.0050.03512.36
5.4.270.0100.03212.36
5.4.260.0070.04412.36
5.4.250.0070.03812.36
5.4.240.0070.03712.36
5.4.230.0070.03912.36
5.4.220.0050.03712.35
5.4.210.0060.03512.35
5.4.200.0060.03712.36
5.4.190.0070.03412.35
5.4.180.0050.04212.35
5.4.170.0050.03612.36
5.4.160.0060.03512.36
5.4.150.0080.03412.35
5.4.140.0080.03412.04
5.4.130.0070.03412.02
5.4.120.0050.04311.98
5.4.110.0050.03511.98
5.4.100.0050.03611.98
5.4.90.0100.03811.97
5.4.80.0100.04211.98
5.4.70.0060.04111.97
5.4.60.0110.04511.97
5.4.50.0060.03511.97
5.4.40.0100.04111.96
5.4.30.0090.04411.96
5.4.20.0070.03911.96
5.4.10.0030.03711.96
5.4.00.0060.03511.45
5.3.290.0090.04112.80
5.3.280.0040.04012.71
5.3.270.0070.03812.73
5.3.260.0050.04012.72
5.3.250.0040.03912.71
5.3.240.0040.03912.72
5.3.230.0060.03712.70
5.3.220.0040.03712.68
5.3.210.0030.04612.68
5.3.200.0050.03712.68
5.3.190.0060.04412.68
5.3.180.0100.03712.67
5.3.170.0060.04112.67
5.3.160.0090.03612.68
5.3.150.0040.04112.68
5.3.140.0050.03612.66
5.3.130.0070.03712.66
5.3.120.0060.03812.66
5.3.110.0070.03712.65
5.3.100.0060.04312.12
5.3.90.0050.04112.08
5.3.80.0070.03612.07
5.3.70.0080.04312.07
5.3.60.0080.03712.06
5.3.50.0070.03512.00
5.3.40.0040.03912.00
5.3.30.0050.03611.96
5.3.20.0050.03611.74
5.3.10.0050.03411.71
5.3.00.0030.03811.70
5.2.170.0060.0299.20
5.2.160.0050.0289.20
5.2.150.0040.0309.21
5.2.140.0060.0299.20
5.2.130.0050.0299.16
5.2.120.0050.0279.16
5.2.110.0040.0419.17
5.2.100.0040.0299.16
5.2.90.0060.0349.16
5.2.80.0080.0309.16
5.2.70.0040.0339.16
5.2.60.0060.0349.11
5.2.50.0040.0309.09
5.2.40.0030.0309.06
5.2.30.0050.0299.03
5.2.20.0030.0319.02
5.2.10.0060.0278.95
5.2.00.0060.0268.80
5.1.60.0060.0278.08
5.1.50.0050.0288.08
5.1.40.0080.0218.06
5.1.30.0060.0298.41
5.1.20.0040.0268.43
5.1.10.0030.0278.16
5.1.00.0030.0268.16
5.0.50.0040.0206.64
5.0.40.0040.0196.50
5.0.30.0050.0346.30
5.0.20.0040.0216.28
5.0.10.0030.0246.25
5.0.00.0030.0316.25
4.4.90.0060.0124.78
4.4.80.0030.0164.75
4.4.70.0040.0144.75
4.4.60.0020.0164.76
4.4.50.0050.0174.77
4.4.40.0020.0264.71
4.4.30.0040.0144.76
4.4.20.0010.0174.84
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0030.0164.67
4.3.100.0000.0194.67
4.3.90.0020.0164.64
4.3.80.0010.0264.59
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0040.0224.54
4.3.30.0030.0143.30
4.3.20.0020.0153.28
4.3.10.0020.0153.23
4.3.00.0000.02015.65

preferences:
41.56 ms | 400 KiB | 5 Q