3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userTimezone = new \DateTimeZone('Europe/Helsinki'); $time_start = new DateTime('2014-10-02', $userTimezone); echo $time_start->format('r') . "\n"; $time_start->modify('first day of this month'); echo $time_start->format('r') . "\n"; $time_start->getTimestamp(); echo $time_start->format('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.0110.00418.56
8.3.50.0170.00322.09
8.3.40.0140.00318.96
8.3.30.0090.00919.17
8.3.20.0040.00420.35
8.3.10.0040.00420.61
8.3.00.0040.00419.69
8.2.180.0170.00017.00
8.2.170.0100.00322.96
8.2.160.0100.00320.47
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0040.00422.30
8.2.110.0050.00522.23
8.2.100.0040.00818.16
8.2.90.0000.00819.15
8.2.80.0040.00417.97
8.2.70.0000.00917.75
8.2.60.0030.00617.90
8.2.50.0060.00318.07
8.2.40.0030.00618.28
8.2.30.0000.01119.38
8.2.20.0040.00417.93
8.2.10.0040.00418.21
8.2.00.0000.00717.93
8.1.280.0120.00625.92
8.1.270.0000.00823.83
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00423.97
8.1.230.0090.00318.95
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0000.00917.60
8.1.190.0040.00417.60
8.1.180.0000.00818.10
8.1.170.0120.00018.74
8.1.160.0000.00722.12
8.1.150.0040.00419.08
8.1.140.0040.00417.73
8.1.130.0050.00317.84
8.1.120.0000.00717.76
8.1.110.0000.00817.78
8.1.100.0000.00717.71
8.1.90.0040.00417.61
8.1.80.0030.00417.69
8.1.70.0080.00017.68
8.1.60.0030.00617.80
8.1.50.0040.00417.65
8.1.40.0070.00417.63
8.1.30.0030.00517.71
8.1.20.0050.00217.77
8.1.10.0040.00417.69
8.1.00.0000.00817.60
8.0.300.0040.00419.33
8.0.290.0000.00816.88
8.0.280.0070.00018.59
8.0.270.0030.00517.32
8.0.260.0030.00317.33
8.0.250.0070.00017.20
8.0.240.0040.00417.13
8.0.230.0030.00317.25
8.0.220.0000.00817.24
8.0.210.0050.00317.13
8.0.200.0000.00717.20
8.0.190.0060.00617.27
8.0.180.0000.00717.22
8.0.170.0080.00017.18
8.0.160.0000.00817.11
8.0.150.0080.00016.92
8.0.140.0070.00417.03
8.0.130.0030.00313.57
8.0.120.0000.00817.14
8.0.110.0040.00417.13
8.0.100.0030.00317.18
8.0.90.0040.00417.08
8.0.80.0090.00617.18
8.0.70.0000.00817.11
8.0.60.0070.00017.05
8.0.50.0040.00416.91
8.0.30.0170.00617.24
8.0.20.0080.01017.50
8.0.10.0040.00417.29
8.0.00.0070.01017.12
7.4.330.0000.00515.13
7.4.320.0060.00016.76
7.4.300.0000.00616.75
7.4.290.0000.00716.63
7.4.280.0040.00416.75
7.4.270.0030.00616.74
7.4.260.0030.00316.64
7.4.250.0000.00716.63
7.4.240.0060.00216.67
7.4.230.0000.00716.86
7.4.220.0060.01216.73
7.4.210.0100.00516.79
7.4.200.0030.00316.46
7.4.160.0120.00816.71
7.4.150.0060.01217.40
7.4.140.0050.01517.86
7.4.130.0090.00816.69
7.4.120.0070.01116.78
7.4.110.0080.00816.68
7.4.100.0070.01016.68
7.4.90.0070.01116.74
7.4.80.0140.00716.69
7.4.70.0100.00716.51
7.4.60.0060.01016.78
7.4.50.0020.00516.69
7.4.40.0090.00616.55
7.4.30.0070.01016.84
7.4.00.0070.00714.91
7.3.330.0000.00613.29
7.3.320.0000.00713.35
7.3.310.0070.00016.34
7.3.300.0030.00316.46
7.3.290.0100.01016.44
7.3.280.0110.00416.37
7.3.270.0090.00917.40
7.3.260.0150.00916.64
7.3.250.0090.00816.63
7.3.240.0060.01116.58
7.3.230.0120.00916.63
7.3.210.0000.01616.43
7.3.200.0070.01519.39
7.3.190.0060.01116.62
7.3.180.0140.00716.67
7.3.170.0030.01516.64
7.3.160.0150.00616.47
7.2.330.0130.00317.01
7.2.320.0090.00916.73
7.2.310.0120.00916.58
7.2.300.0070.01016.97
7.2.290.0100.01016.84
7.2.00.0030.00919.51
7.1.100.0060.01018.22
7.1.70.0000.00717.41
7.1.60.0070.01719.32
7.1.50.0070.01517.05
7.1.00.0030.07722.54
7.0.200.0000.01016.88
7.0.140.0030.07322.11
7.0.60.0030.05719.93
7.0.50.0030.04317.79
7.0.40.0130.06320.40
7.0.30.0200.05320.09
7.0.20.0270.05320.17
7.0.10.0270.07020.20
7.0.00.0030.07720.21
5.6.280.0030.07321.06
5.6.210.0100.08320.72
5.6.200.0030.05018.19
5.6.190.0130.06020.43
5.6.180.0530.07320.77
5.6.170.0300.05020.50
5.6.160.0000.05320.50
5.6.150.0070.08318.18
5.6.140.0070.05718.07
5.6.130.0030.08318.09
5.6.120.0100.07320.93
5.6.110.0130.07721.00
5.6.100.0200.06721.11
5.6.90.0130.07321.12
5.6.80.0130.07720.42
5.5.350.0170.08720.44
5.5.340.0030.06717.92
5.5.330.0030.05320.47
5.5.320.0370.07720.41
5.5.310.0270.08720.33
5.5.300.0100.08017.95
5.5.290.0000.08717.99
5.5.280.0070.04020.66
5.5.270.0030.04020.64
5.5.260.0130.07720.86
5.5.250.0070.07720.69
5.5.240.0100.03020.07
5.4.450.1670.04019.11
5.4.440.1770.05019.49
5.4.430.1430.04319.42
5.4.420.1530.04019.48
5.4.410.1700.02719.00
5.4.400.1530.03319.16
5.4.390.1670.04019.08
5.4.380.1400.04019.16
5.4.370.2030.03718.92
5.4.360.1500.04018.80
5.4.350.1600.04019.09
5.4.340.1200.04319.21
5.4.320.1530.03018.81
5.4.310.1630.03719.24
5.4.300.1570.04019.24
5.4.290.2100.03019.21
5.4.280.1600.03719.13
5.4.270.1830.04019.24
5.4.260.1830.04719.24
5.4.250.1670.03319.20
5.4.240.1670.04719.06
5.4.230.1600.03718.90
5.4.220.1830.04319.15
5.4.210.1700.03318.79
5.4.200.1870.05018.88
5.4.190.2200.03319.15
5.4.180.1870.03719.02
5.4.170.2130.03719.20
5.4.160.1800.04018.75
5.4.150.1830.03318.86
5.4.140.2130.04016.34
5.4.130.1930.03016.31
5.4.120.2030.03016.50
5.4.110.2100.04716.55
5.4.100.1870.03716.45
5.4.90.1830.03016.48
5.4.80.1870.04316.27
5.4.70.2300.03316.46
5.4.60.1770.03716.47
5.4.50.1730.03716.36
5.4.40.2100.04316.16
5.4.30.1770.03716.36
5.4.20.2000.04716.40
5.4.10.2030.04716.20
5.4.00.1870.02715.64
5.3.290.1970.03714.63
5.3.280.1970.03014.54
5.3.270.2130.03714.55
5.3.260.2170.04014.55
5.3.250.2030.04314.62
5.3.240.1800.04014.45
5.3.230.1830.03314.69
5.3.220.2130.04014.39
5.3.210.2000.04014.46
5.3.200.2000.04314.61
5.3.190.1930.04714.43
5.3.180.1970.03314.57
5.3.170.1900.04314.61
5.3.160.1770.04714.40
5.3.150.1930.04014.40
5.3.140.2030.04014.39
5.3.130.1770.03314.40
5.3.120.2070.04714.59
5.3.110.2030.04314.38
5.3.100.1970.04713.99
5.3.90.1830.04713.85
5.3.80.2000.04313.96
5.3.70.2000.04013.92
5.3.60.2030.03013.99
5.3.50.1970.04013.80
5.3.40.1970.04314.04
5.3.30.2030.04013.84
5.3.20.2000.03713.55
5.3.10.1700.03313.59
5.3.00.2030.04013.51
5.2.170.1600.03711.21
5.2.160.1700.03711.10
5.2.150.1700.03711.16
5.2.140.1630.03311.05
5.2.130.1530.03710.95
5.2.120.1430.02711.15
5.2.110.1600.03311.18
5.2.100.1600.03711.18
5.2.90.1330.03011.01
5.2.80.1600.03710.94
5.2.70.1500.03311.14
5.2.60.1730.03311.06
5.2.50.1700.03010.86
5.2.40.1130.03310.88
5.2.30.1430.03311.05
5.2.20.1430.03711.05
5.2.10.1400.03310.92
5.2.00.1200.03010.80
5.1.60.1470.02010.04
5.1.50.1330.0279.96
5.1.40.1470.0409.87
5.1.30.1270.03010.28
5.1.20.1270.02710.42
5.1.10.1330.03010.23
5.1.00.1230.02310.05
5.0.50.0730.0238.43
5.0.40.0830.0308.50
5.0.30.0400.0338.30
5.0.20.0600.0208.32
5.0.10.0770.0278.09
5.0.00.0730.0278.14
4.4.90.0630.0138.04
4.4.80.0600.0178.04
4.4.70.0600.0178.04
4.4.60.0600.0178.04
4.4.50.0570.0178.04
4.4.40.0630.0308.04
4.4.30.0630.0108.04
4.4.20.0670.0178.04
4.4.10.0600.0178.04
4.4.00.0600.0238.04
4.3.110.0600.0178.04
4.3.100.0670.0178.04
4.3.90.0700.0138.04
4.3.80.0600.0238.04
4.3.70.0570.0178.04
4.3.60.0600.0138.04
4.3.50.0630.0138.04
4.3.40.0570.0278.04
4.3.30.0170.0178.04
4.3.20.0030.0178.04
4.3.10.0000.0178.04
4.3.00.0000.0178.04

preferences:
53.39 ms | 401 KiB | 5 Q