3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('date.timezone', 'Europe/Prague'); $dt = new DateTime('2014-03-29 12:00:00', new DateTimeZone('Europe/Prague')); $dt_t = $dt->format('U'); echo 'DateTime: '.$dt->format('c').', [ts: '.$dt->format('U').']; time: '.date('c', $dt_t)."\r\n"; $dt = $dt->modify('+1 day'); $dt_t += 86400; echo 'DateTime: '.$dt->format('c').', [ts: '.$dt->format('U').']; time: '.date('c', $dt_t)."\r\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.0030.01716.75
8.3.50.0120.00522.12
8.3.40.0000.01418.86
8.3.30.0120.00919.25
8.3.20.0070.00020.32
8.3.10.0000.00823.47
8.3.00.0040.00420.68
8.2.180.0150.00018.46
8.2.170.0170.00322.96
8.2.160.0070.00722.12
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00720.75
8.2.110.0070.01420.41
8.2.100.0030.01017.96
8.2.90.0030.00519.38
8.2.80.0060.00317.97
8.2.70.0030.00517.63
8.2.60.0060.00618.01
8.2.50.0000.00818.07
8.2.40.0060.00320.13
8.2.30.0040.00418.37
8.2.20.0000.00817.99
8.2.10.0030.00518.16
8.2.00.0050.00317.95
8.1.280.0100.00325.92
8.1.270.0030.01023.95
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0130.00724.04
8.1.230.0040.00719.11
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0100.00017.50
8.1.190.0000.00817.38
8.1.180.0080.00218.10
8.1.170.0050.00318.76
8.1.160.0050.00222.13
8.1.150.0020.00518.81
8.1.140.0000.00717.76
8.1.130.0030.00317.96
8.1.120.0070.00017.63
8.1.110.0040.00417.72
8.1.100.0040.00417.69
8.1.90.0050.00217.63
8.1.80.0050.00317.73
8.1.70.0040.00417.66
8.1.60.0000.00817.73
8.1.50.0030.00517.58
8.1.40.0040.00417.63
8.1.30.0030.00717.83
8.1.20.0070.00017.78
8.1.10.0040.00417.76
8.1.00.0000.00717.72
8.0.300.0030.00518.77
8.0.290.0040.00417.00
8.0.280.0040.00418.57
8.0.270.0030.00317.39
8.0.260.0040.00417.43
8.0.250.0030.00317.23
8.0.240.0020.00517.22
8.0.230.0040.00417.16
8.0.220.0030.00317.02
8.0.210.0000.00717.20
8.0.200.0050.00217.15
8.0.190.0050.00317.08
8.0.180.0090.00017.23
8.0.170.0000.00817.10
8.0.160.0030.00517.04
8.0.150.0040.00417.15
8.0.140.0000.00817.14
8.0.130.0060.00013.55
8.0.120.0050.00317.20
8.0.110.0000.00717.11
8.0.100.0030.00617.18
8.0.90.0050.00217.00
8.0.80.0100.01317.13
8.0.70.0000.00817.02
8.0.60.0000.00717.25
8.0.50.0000.00717.07
8.0.30.0110.00917.27
8.0.20.0060.01217.40
8.0.10.0000.00717.07
8.0.00.0080.01216.99
7.4.330.0000.00615.27
7.4.320.0070.00016.73
7.4.300.0080.00016.81
7.4.290.0030.00316.78
7.4.280.0040.00416.68
7.4.270.0000.00816.70
7.4.260.0000.00716.70
7.4.250.0040.00416.69
7.4.240.0050.00216.73
7.4.230.0070.00016.76
7.4.220.0090.00916.71
7.4.210.0090.00916.75
7.4.200.0030.00316.64
7.4.190.0000.00716.71
7.4.160.0160.00616.53
7.4.150.0080.00917.40
7.4.140.0110.00717.86
7.4.130.0110.00616.79
7.4.120.0100.00716.67
7.4.110.0070.01116.57
7.4.100.0060.01216.61
7.4.90.0130.00316.63
7.4.80.0000.01919.39
7.4.70.0110.00716.75
7.4.60.0090.01116.61
7.4.50.0030.00616.52
7.4.40.0000.02016.81
7.4.30.0060.01016.61
7.4.00.0060.01015.11
7.3.330.0030.00313.34
7.3.320.0020.00313.19
7.3.310.0000.00716.30
7.3.300.0000.00716.30
7.3.290.0110.00416.46
7.3.280.0090.00816.41
7.3.270.0110.00617.40
7.3.260.0140.00316.59
7.3.250.0120.00816.43
7.3.240.0120.00416.50
7.3.230.0060.01116.63
7.3.210.0070.01016.47
7.3.200.0090.00919.39
7.3.190.0120.01116.84
7.3.180.0070.01016.69
7.3.170.0140.00416.84
7.3.160.0030.01316.62
7.3.120.0110.00615.12
7.2.330.0040.01416.80
7.2.320.0070.01017.13
7.2.310.0120.01216.87
7.2.300.0080.00817.12
7.2.290.0060.01216.68
7.1.100.0000.01118.09
7.1.70.0000.00717.24
7.1.60.0040.02219.46
7.1.50.0100.01317.14
7.1.00.0000.07722.37
7.0.200.0000.01016.90
7.0.140.0000.07721.95
7.0.100.0100.08019.96
7.0.90.0170.08319.94
7.0.80.0170.07019.89
7.0.70.0070.07720.03
7.0.60.0100.07319.94
7.0.50.0100.06020.32
7.0.40.0000.08720.02
7.0.30.0100.06320.19
7.0.20.0100.07320.13
7.0.10.0130.07320.14
7.0.00.0170.07320.10
5.6.280.0070.07021.12
5.6.250.0070.08720.62
5.6.240.0100.07720.63
5.6.230.0070.05020.63
5.6.220.0030.08320.64
5.6.210.0170.03320.74
5.6.200.0100.08021.14
5.6.190.0170.07720.94
5.6.180.0100.07321.04
5.6.170.0030.06321.01
5.6.160.0130.06721.10
5.6.150.0100.07321.01
5.6.140.0100.04721.05
5.6.130.0130.08720.94
5.6.120.0070.04320.94
5.6.110.0100.06720.93
5.6.100.0070.07320.97
5.6.90.0030.08721.04
5.6.80.0070.05320.55
5.6.70.0030.04320.40
5.6.60.0170.07020.33
5.6.50.0100.07720.34
5.6.40.0100.07720.43
5.6.30.0200.05320.44
5.6.20.0070.08020.36
5.6.10.0030.08720.43
5.6.00.0100.06020.36
5.5.380.0130.07020.43
5.5.370.0030.08020.35
5.5.360.0170.07320.49
5.5.350.0170.07020.45
5.5.340.0130.07320.76
5.5.330.0100.06720.77
5.5.320.0230.03320.83
5.5.310.0170.07720.92
5.5.300.0030.06320.75
5.5.290.0070.06320.72
5.5.280.0130.07720.82
5.5.270.0170.07720.88
5.5.260.0130.06320.74
5.5.250.0170.07320.57
5.5.240.0100.07320.16
5.5.230.0070.06720.17
5.5.220.0100.08020.27
5.5.210.0070.06720.13
5.5.200.0200.06720.24
5.5.190.0200.05020.14
5.5.180.0070.08320.14
5.5.160.0070.05720.25
5.5.150.0070.03720.10
5.5.140.0030.04720.21
5.5.130.0100.03720.11
5.5.120.0100.03720.07
5.5.110.0030.04020.25
5.5.100.0030.04020.10
5.5.90.0000.04020.17
5.5.80.0030.05320.00
5.5.70.0070.03320.03
5.5.60.0000.04320.05
5.5.50.0030.03320.05
5.5.40.0100.02720.04
5.5.30.0000.04320.11
5.5.20.0070.07320.04
5.5.10.0070.06319.95
5.5.00.0070.03020.02
5.4.450.0070.07719.31
5.4.440.0030.06319.44
5.4.430.0100.07719.43
5.4.420.0030.07019.11
5.4.410.0070.07719.09
5.4.400.0070.05719.15
5.4.390.0070.08019.22
5.4.380.0030.07019.07
5.4.370.0070.07319.05
5.4.360.0100.07319.09
5.4.350.0130.06719.13
5.4.340.0070.06018.96
5.4.320.0030.04318.92
5.4.310.0070.03319.07
5.4.300.0030.05018.78
5.4.290.0070.03718.94
5.4.280.0070.04318.82
5.4.270.0030.04719.09
5.4.260.0000.04318.81
5.4.250.0000.04319.22
5.4.240.0100.03019.05
5.4.230.0100.07319.05
5.4.220.0100.07019.04
5.4.210.0100.02719.04
5.4.200.0100.07318.80
5.4.190.0100.07319.04
5.4.180.0200.04719.02
5.4.170.0000.04719.21
5.4.160.0070.03318.96
5.4.150.0070.05319.03
5.4.140.0100.04016.44
5.4.130.0070.03316.32
5.4.120.0030.06716.32
5.4.110.0000.04016.29
5.4.100.0030.03716.39
5.4.90.0030.03716.36
5.4.80.0030.03716.42
5.4.70.0070.03016.45
5.4.60.0030.03316.21
5.4.50.0000.04016.23
5.4.40.0000.03716.40
5.4.30.0000.04716.22
5.4.20.0000.03716.20
5.4.10.0100.02716.19
5.4.00.0000.03715.81
5.3.290.0100.04014.63
5.3.280.0030.04014.57
5.3.270.0030.07014.61
5.3.260.0070.06714.61
5.3.250.0070.06714.51
5.3.240.0000.04014.56
5.3.230.0070.03714.46
5.3.220.0000.03714.52
5.3.210.0030.04014.56
5.3.200.0030.03314.55
5.3.190.0030.03714.55
5.3.180.0030.04014.42
5.3.170.0030.04014.40
5.3.160.0100.04714.52
5.3.150.0030.04014.42
5.3.140.0000.03714.51
5.3.130.0070.03314.48
5.3.120.0030.05714.50
5.3.110.0070.03314.54
5.3.100.0070.03314.00
5.3.90.0000.04013.96
5.3.80.0030.03713.87
5.3.70.0130.04314.03
5.3.60.0030.04013.97
5.3.50.0100.03013.94
5.3.40.0030.03713.81
5.3.30.0030.03713.89
5.3.20.0030.03313.47
5.3.10.0030.03313.42
5.3.00.0000.03713.59
5.2.170.0030.02711.60
5.2.160.0070.02311.60
5.2.150.0070.02311.60
5.2.140.0070.02711.60
5.2.130.0070.02311.60
5.2.120.0000.03011.60
5.2.110.0000.03011.60
5.2.100.0030.02711.60
5.2.90.0030.03011.60
5.2.80.0100.03711.60
5.2.70.0000.03311.60
5.2.60.0030.05011.60
5.2.50.0070.04711.60
5.2.40.0030.06311.60
5.2.30.0030.05711.60
5.2.20.0000.04311.60
5.2.10.0130.05011.60
5.2.00.0130.05311.60
5.1.60.0030.05311.60
5.1.50.0030.04311.60
5.1.40.0070.05311.60
5.1.30.0030.04311.60
5.1.20.0030.04711.60
5.1.10.0000.05311.60
5.1.00.0070.02711.60
5.0.50.0030.04311.60
5.0.40.0000.02711.60
5.0.30.0000.04711.60
5.0.20.0070.01711.60
5.0.10.0030.04011.60
5.0.00.0030.03711.60
4.4.90.0000.03311.60
4.4.80.0030.01711.60
4.4.70.0000.03011.60
4.4.60.0070.03311.60
4.4.50.0030.03311.60
4.4.40.0070.03311.60
4.4.30.0030.03711.60
4.4.20.0030.01711.60
4.4.10.0000.03311.60
4.4.00.0100.04011.60
4.3.110.0030.02711.60
4.3.100.0000.02311.60
4.3.90.0030.03711.60
4.3.80.0070.04711.60
4.3.70.0000.03711.60
4.3.60.0000.02011.60
4.3.50.0030.03011.60
4.3.40.0030.05311.60
4.3.30.0000.03711.60
4.3.20.0030.03011.60
4.3.10.0030.02711.60
4.3.00.0000.03011.60

preferences:
48.19 ms | 401 KiB | 5 Q