3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTime('2010-01-01 08:45:00', new DateTimeZone('UTC')); $str = $a->format(DateTime::ISO8601); $b = new DateTime($str, new DateTimeZone('UTC')); echo "\n"; echo "a->timezone_type: " . $a->timezone_type . "\n"; echo "b->timezone_type: " . $b->timezone_type . "\n"; echo "\na: " . print_r($a, true) . "\n"; echo "\nstr: $str\n"; echo "b: " . print_r($b, true) . "\n"; echo "a->timezone_type: " . $a->timezone_type . "\n"; echo "b->timezone_type: " . $b->timezone_type . "\n"; $eq = ($a == $b); echo "\na == b: $eq\n";

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.0110.00418.41
8.3.50.0130.00321.92
8.3.40.0070.00718.96
8.3.30.0070.00718.91
8.3.20.0070.00020.33
8.3.10.0040.00423.65
8.3.00.0080.00319.38
8.2.180.0030.01616.88
8.2.170.0200.00022.96
8.2.160.0100.00320.53
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00422.25
8.2.110.0090.00022.08
8.2.100.0060.00617.76
8.2.90.0000.00819.07
8.2.80.0030.00517.97
8.2.70.0080.00017.63
8.2.60.0030.00617.93
8.2.50.0080.00018.07
8.2.40.0030.00518.16
8.2.30.0050.00318.02
8.2.20.0030.00517.75
8.2.10.0080.00017.96
8.2.00.0090.00317.95
8.1.280.0120.00325.92
8.1.270.0040.00423.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.93
8.1.230.0080.00319.15
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0090.00017.50
8.1.190.0050.00317.39
8.1.180.0070.00418.10
8.1.170.0000.00818.79
8.1.160.0070.00021.95
8.1.150.0040.00418.89
8.1.140.0000.00717.53
8.1.130.0030.00317.75
8.1.120.0040.00417.57
8.1.110.0070.00417.52
8.1.100.0020.00517.50
8.1.90.0000.00717.48
8.1.80.0080.00017.51
8.1.70.0000.00817.48
8.1.60.0000.00717.64
8.1.50.0050.00217.58
8.1.40.0090.00017.51
8.1.30.0050.00317.64
8.1.20.0050.00217.76
8.1.10.0000.00717.51
8.1.00.0030.00517.64
8.0.300.0060.00318.77
8.0.290.0060.00317.18
8.0.280.0000.00718.56
8.0.270.0030.00417.19
8.0.260.0030.00317.29
8.0.250.0000.00617.14
8.0.240.0030.00317.04
8.0.230.0000.00717.00
8.0.220.0040.00417.14
8.0.210.0050.00316.99
8.0.200.0030.00317.13
8.0.190.0000.00817.05
8.0.180.0030.00517.11
8.0.170.0000.00817.12
8.0.160.0070.00017.07
8.0.150.0040.00417.07
8.0.140.0000.00717.05
8.0.130.0030.00313.53
8.0.120.0000.00816.96
8.0.110.0040.00417.09
8.0.100.0040.00417.05
8.0.90.0000.00717.16
8.0.80.0030.01317.10
8.0.70.0040.00416.96
8.0.60.0030.00517.14
8.0.50.0040.00416.96
8.0.30.0130.00617.36
8.0.20.0080.01117.40
8.0.10.0000.00717.21
8.0.00.0060.01616.94
7.4.330.0000.00615.07
7.4.320.0060.00016.71
7.4.300.0030.00316.50
7.4.290.0030.00316.53
7.4.280.0070.00016.68
7.4.270.0040.00416.57
7.4.260.0000.00716.66
7.4.250.0040.00416.69
7.4.240.0020.00516.63
7.4.230.0030.00316.79
7.4.220.0030.01416.54
7.4.210.0090.00716.68
7.4.200.0070.00016.51
7.4.190.0040.00416.81
7.4.160.0090.00916.82
7.4.150.0130.00617.40
7.4.140.0060.01217.86
7.4.130.0050.01216.58
7.4.120.0070.01316.60
7.4.110.0060.01216.64
7.4.100.0160.00616.57
7.4.90.0080.00816.54
7.4.80.0100.01219.39
7.4.70.0140.00416.75
7.4.60.0100.01016.75
7.4.50.0030.00616.39
7.4.40.0100.00522.77
7.4.30.0100.00716.63
7.4.00.0070.01015.27
7.3.330.0000.00513.38
7.3.320.0060.00013.37
7.3.310.0040.00416.59
7.3.300.0030.00316.42
7.3.290.0090.01216.53
7.3.280.0060.01016.50
7.3.270.0120.00617.40
7.3.260.0040.01316.50
7.3.250.0100.00816.58
7.3.240.0160.00616.45
7.3.230.0060.01316.46
7.3.210.0150.00716.67
7.3.200.0150.00619.39
7.3.190.0100.00716.59
7.3.180.0100.00616.50
7.3.170.0090.00616.52
7.3.160.0080.00816.55
7.3.120.0040.00815.20
7.2.330.0070.01016.82
7.2.320.0100.01316.92
7.2.310.0100.01316.99
7.2.300.0040.01216.66
7.2.290.0120.00416.86
7.2.00.0100.00719.48
7.1.200.0060.00615.71
7.1.100.0060.00618.36
7.1.70.0080.00817.12
7.1.60.0030.02019.33
7.1.50.0040.01816.82
7.1.00.0070.07322.45
7.0.200.0220.00714.49
7.0.140.0100.06722.00
7.0.70.0130.07321.72
7.0.60.0030.07021.69
7.0.50.0070.07022.12
7.0.40.0070.05020.18
7.0.30.0170.07020.16
7.0.20.0070.05320.15
7.0.10.0070.08720.07
7.0.00.0030.07320.02
5.6.280.0030.07320.82
5.6.220.0030.06320.54
5.6.210.0000.08320.77
5.6.200.0070.08021.10
5.6.190.0000.07320.94
5.6.180.0130.07021.14
5.6.170.0070.04321.01
5.6.160.0130.05721.06
5.6.150.0030.06321.02
5.6.140.0130.07021.02
5.6.130.0030.08321.06
5.6.120.0000.09020.96
5.6.110.0030.05320.95
5.6.100.0070.07321.01
5.6.90.0130.06721.02
5.6.80.0100.07720.44
5.6.70.0030.05320.46
5.6.60.0100.07320.40
5.6.50.0070.08320.34
5.6.40.0000.08320.41
5.6.30.0100.06720.39
5.6.20.0030.06720.43
5.6.10.0030.08320.30
5.6.00.0030.08020.40
5.5.360.0030.06720.42
5.5.350.0100.06020.35
5.5.340.0070.03720.78
5.5.330.0030.08320.92
5.5.320.0030.08320.84
5.5.310.0070.04720.90
5.5.300.0070.08020.80
5.5.290.0100.07720.92
5.5.280.0070.07320.93
5.5.270.0100.08320.85
5.5.260.0030.05720.92
5.5.250.0070.08020.66
5.5.240.0030.09020.18
5.5.230.0070.04720.16
5.5.220.0130.05320.29
5.5.210.0030.05020.14
5.5.200.0100.05720.14
5.5.190.0070.05720.26
5.5.180.0030.05320.08
5.5.160.0070.08020.29
5.5.150.0070.04020.23
5.5.140.0030.06720.21
5.5.130.0070.07720.24
5.5.120.0000.07720.18
5.5.110.0030.08019.97
5.5.100.0030.06720.02
5.5.90.0030.05319.95
5.5.80.0030.06020.05
5.5.70.0030.08319.99
5.5.60.0070.07020.16
5.5.50.0070.04320.00
5.5.40.0070.07320.03
5.5.30.0070.07720.06
5.5.20.0070.05019.99
5.5.10.0000.06320.08
5.5.00.0030.07720.03
5.4.450.0000.06019.45
5.4.440.0030.08319.47
5.4.430.0030.08719.46
5.4.420.0130.06719.30
5.4.410.0000.08019.16
5.4.400.0000.07718.98
5.4.390.0030.07319.13
5.4.380.0030.07719.07
5.4.370.0070.05019.04
5.4.360.0030.06019.09
5.4.350.0070.07719.02
5.4.340.0100.07018.95
5.4.320.0000.07319.10
5.4.310.0030.05719.09
5.4.300.0030.07319.12
5.4.290.0000.05718.96
5.4.280.0030.07019.07
5.4.270.0000.07318.96
5.4.260.0000.08319.10
5.4.250.0000.05718.77
5.4.240.0000.05319.02
5.4.230.0030.07718.89
5.4.220.0000.08019.22
5.4.210.0070.04019.02
5.4.200.0000.04718.80
5.4.190.0100.03019.11
5.4.180.0100.04319.02
5.4.170.0030.05319.03
5.4.160.0170.06718.94
5.4.150.0100.07319.08
5.4.140.0070.04016.42
5.4.130.0070.06716.33
5.4.120.0000.07316.41
5.4.110.0070.07016.31
5.4.100.0070.07016.36
5.4.90.0030.07016.26
5.4.80.0030.07016.46
5.4.70.0070.06716.25
5.4.60.0070.06316.28
5.4.50.0000.06016.35
5.4.40.0030.07316.38
5.4.30.0030.05016.18
5.4.20.0000.07716.37
5.4.10.0030.07016.23
5.4.00.0030.04715.85
5.3.290.0000.08015.85
5.3.280.0070.04715.85
5.3.270.0030.07715.85
5.3.260.0030.04715.85
5.3.250.0000.04315.85
5.3.240.0030.04715.85
5.3.230.0030.07015.85
5.3.220.0070.07015.85
5.3.210.0000.06715.85
5.3.200.0070.07015.85
5.3.190.0030.08015.85
5.3.180.0030.07315.85
5.3.170.0000.07315.85
5.3.160.0030.05315.85
5.3.150.0070.07715.85
5.3.140.0070.05715.85
5.3.130.0070.07715.85
5.3.120.0030.04715.85
5.3.110.0000.07315.85
5.3.100.0000.04315.85
5.3.90.0070.07315.85
5.3.80.0000.07715.85
5.3.70.0030.07315.85
5.3.60.0070.07015.85
5.3.50.0000.07315.85
5.3.40.0130.06715.85
5.3.30.0030.04315.85
5.3.20.0030.05315.85
5.3.10.0100.06715.85
5.3.00.0070.06315.85
5.2.170.0000.06315.85
5.2.160.0070.05715.85
5.2.150.0070.05715.85
5.2.140.0000.06315.85
5.2.130.0000.06315.85
5.2.120.0070.06015.85
5.2.110.0070.05715.85
5.2.100.0030.04315.85
5.2.90.0000.06315.85
5.2.80.0000.04015.85
5.2.70.0030.06315.85
5.2.60.0030.06315.85
5.2.50.0000.04715.85
5.2.40.0030.06315.85
5.2.30.0000.05015.85
5.2.20.0000.06315.85
5.2.10.0030.06015.85
5.2.00.0100.05715.85
5.1.60.0030.04715.85
5.1.50.0030.05315.85
5.1.40.0030.04315.85
5.1.30.0030.06015.85
5.1.20.0000.04315.85
5.1.10.0070.04015.85
5.1.00.0030.04315.85
5.0.50.0000.03015.85
5.0.40.0030.04715.85
5.0.30.0070.06315.85
5.0.20.0070.03715.85
5.0.10.0000.04715.85
5.0.00.0030.06315.85
4.4.90.0030.03315.85
4.4.80.0030.03715.85
4.4.70.0030.03315.85
4.4.60.0030.03315.85
4.4.50.0000.03315.85
4.4.40.0030.05715.85
4.4.30.0000.02315.85
4.4.20.0070.03315.85
4.4.10.0000.02015.85
4.4.00.0000.06015.85
4.3.110.0000.03715.85
4.3.100.0030.03015.85
4.3.90.0000.03715.85
4.3.80.0030.04315.85
4.3.70.0000.02315.85
4.3.60.0070.03015.85
4.3.50.0000.03015.85
4.3.40.0000.05315.85
4.3.30.0000.03715.85
4.3.20.0030.03015.85
4.3.10.0030.03315.85
4.3.00.0000.03015.85

preferences:
52.14 ms | 401 KiB | 5 Q