3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '2018-01-11T15:36:16.000+01:00'; $date = new DateTime($string); $datetime = new DateTimeImmutable($string); $otherString = $date->format(DateTime::RFC3339_EXTENDED); $immutableString = $datetime->format(DateTime::RFC3339_EXTENDED); var_dump( $string == $otherString, $string == $immutableString, DateTimeImmutable::getLastErrors() );

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.0040.01217.13
8.3.60.0130.01318.70
8.3.50.0040.01116.71
8.3.40.0070.00719.17
8.3.30.0100.00518.86
8.3.20.0020.00520.66
8.3.10.0030.00523.94
8.3.00.0050.00319.75
8.2.180.0070.00716.75
8.2.170.0100.00322.96
8.2.160.0070.00720.60
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0070.00420.63
8.2.100.0060.00618.16
8.2.90.0000.00818.21
8.2.80.0060.00319.41
8.2.70.0050.00318.00
8.2.60.0060.00317.75
8.2.50.0040.00418.00
8.2.40.0000.00720.72
8.2.30.0050.00219.52
8.2.20.0040.00418.36
8.2.10.0050.00218.27
8.2.00.0030.00618.47
8.1.280.0070.00725.92
8.1.270.0080.00020.41
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0040.00421.21
8.1.230.0000.01221.15
8.1.220.0090.00018.01
8.1.210.0040.00418.89
8.1.200.0000.00817.60
8.1.190.0080.00017.60
8.1.180.0080.00018.10
8.1.170.0050.00318.89
8.1.160.0080.00019.24
8.1.150.0020.00519.11
8.1.140.0040.00419.30
8.1.130.0070.00019.68
8.1.120.0050.00217.93
8.1.110.0000.00717.81
8.1.100.0070.00017.74
8.1.90.0040.00417.85
8.1.80.0000.00817.93
8.1.70.0080.00017.93
8.1.60.0060.00317.92
8.1.50.0040.00417.86
8.1.40.0000.00817.95
8.1.30.0000.00717.95
8.1.20.0000.00818.09
8.1.10.0030.00517.70
8.1.00.0000.00817.86
8.0.300.0000.00720.37
8.0.290.0050.00317.13
8.0.280.0020.00518.79
8.0.270.0070.00017.43
8.0.260.0030.00317.25
8.0.250.0000.00817.42
8.0.240.0050.00217.38
8.0.230.0070.00017.15
8.0.220.0070.00017.27
8.0.210.0030.00317.31
8.0.200.0070.00017.32
8.0.190.0040.00417.40
8.0.180.0070.00017.34
8.0.170.0080.00017.22
8.0.160.0080.00017.37
8.0.150.0080.00017.25
8.0.140.0070.00017.27
8.0.130.0060.00013.72
8.0.120.0000.00817.18
8.0.110.0040.00417.22
8.0.100.0000.00817.25
8.0.90.0000.00817.26
8.0.80.0140.00317.09
8.0.70.0030.00517.23
8.0.60.0070.00017.25
8.0.50.0070.00017.39
8.0.30.0090.01017.28
8.0.20.0160.00517.54
8.0.10.0000.00717.35
8.0.00.0080.01017.10
7.4.330.0060.00017.01
7.4.320.0070.00016.95
7.4.300.0000.00616.87
7.4.290.0070.00017.06
7.4.280.0040.00416.96
7.4.270.0000.00716.92
7.4.260.0030.00317.02
7.4.250.0030.00316.91
7.4.240.0000.00816.97
7.4.230.0030.00316.63
7.4.220.0050.00317.10
7.4.210.0060.01116.79
7.4.200.0050.00216.86
7.4.160.0140.00316.80
7.4.150.0140.00417.40
7.4.140.0110.01017.86
7.4.130.0110.00716.74
7.4.120.0090.01216.78
7.4.110.0030.01616.72
7.4.100.0070.01016.63
7.4.90.0120.01216.93
7.4.80.0090.00919.39
7.4.70.0140.00916.92
7.4.60.0000.01516.73
7.4.50.0090.00916.91
7.4.40.0160.01616.66
7.4.00.0060.00815.32
7.3.330.0000.00513.61
7.3.320.0030.00313.55
7.3.310.0000.00716.71
7.3.300.0070.00016.48
7.3.290.0030.00316.53
7.3.280.0060.01216.58
7.3.270.0120.00917.40
7.3.260.0100.00816.62
7.3.250.0100.00816.58
7.3.240.0070.01216.53
7.3.230.0170.00016.70
7.3.210.0080.00816.42
7.3.200.0180.00016.78
7.3.190.0090.00616.52
7.3.180.0080.00916.71
7.3.170.0110.00716.52
7.3.160.0130.00316.49
7.3.120.0070.00715.23
7.3.110.0110.00315.23
7.3.100.0040.00815.37
7.3.90.0040.01115.12
7.3.80.0070.00414.97
7.3.70.0090.00615.21
7.3.60.0090.00315.04
7.3.50.0030.00714.84
7.3.40.0030.00914.73
7.3.30.0000.01315.20
7.3.20.0070.00716.84
7.3.10.0100.00716.86
7.3.00.0090.00617.07
7.2.330.0090.00916.76
7.2.320.0120.00816.66
7.2.310.0080.00916.64
7.2.300.0100.00716.76
7.2.290.0080.00817.00
7.2.240.0030.01015.30
7.2.230.0090.00615.05
7.2.220.0080.00615.29
7.2.210.0000.01515.21
7.2.200.0070.00715.34
7.2.190.0060.00615.27
7.2.180.0030.01515.39
7.2.170.0070.00715.04
7.2.160.0100.00715.36
7.2.150.0060.00617.21
7.2.140.0060.00617.18
7.2.130.0000.00917.07
7.2.120.0090.00616.87
7.2.110.0090.00617.20
7.2.100.0080.00417.26
7.2.90.0060.00617.40
7.2.80.0100.00317.40
7.2.70.0000.01317.17
7.2.60.0050.01217.02
7.2.50.0060.00617.25
7.2.40.0060.00917.37
7.2.30.0100.00317.02
7.2.20.0030.01317.02
7.2.10.0020.01418.48
7.2.00.0060.01018.58
7.1.330.0090.00016.07
7.1.320.0000.00915.80
7.1.310.0090.00615.86
7.1.300.0000.01615.96
7.1.290.0000.01515.95
7.1.280.0030.00715.86
7.1.270.0080.00416.07
7.1.260.0070.01015.98
7.1.250.0060.00615.86
7.1.200.0030.01015.66
7.1.130.0090.00318.75
7.1.120.0050.00818.74
7.1.110.0080.00518.24
7.1.100.0040.01118.27
7.1.90.0030.01018.37
7.1.80.0050.01018.38
7.1.70.0000.01217.28
7.1.60.0230.00635.31
7.1.50.0230.00734.84
7.1.40.0200.00734.47
7.1.30.0190.00934.68
7.1.20.0240.00334.74
7.1.10.0030.00916.61
7.1.00.0030.01016.73

preferences:
68.33 ms | 401 KiB | 5 Q