3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_start = new DateTime('2014-10-02'); 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.43
8.3.50.0080.01422.10
8.3.40.0140.00318.76
8.3.30.0150.00019.13
8.3.20.0000.00820.36
8.3.10.0000.00820.65
8.3.00.0050.00319.69
8.2.180.0070.01016.75
8.2.170.0070.00722.96
8.2.160.0040.01420.56
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00422.23
8.2.110.0030.00722.11
8.2.100.0000.01218.34
8.2.90.0030.00519.22
8.2.80.0000.00817.97
8.2.70.0080.00017.88
8.2.60.0100.00317.68
8.2.50.0030.00518.07
8.2.40.0040.00418.45
8.2.30.0030.00519.22
8.2.20.0040.00417.80
8.2.10.0070.00018.11
8.2.00.0000.00717.92
8.1.280.0120.00925.92
8.1.270.0060.00323.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0070.00319.15
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0100.00517.47
8.1.190.0050.00317.50
8.1.180.0030.00518.10
8.1.170.0060.00318.61
8.1.160.0070.00022.07
8.1.150.0000.01019.00
8.1.140.0040.00417.71
8.1.130.0030.00317.94
8.1.120.0040.00417.71
8.1.110.0050.00317.61
8.1.100.0040.00417.79
8.1.90.0000.00717.59
8.1.80.0000.00817.67
8.1.70.0000.00717.69
8.1.60.0030.00617.67
8.1.50.0000.00717.56
8.1.40.0060.00517.59
8.1.30.0060.00317.86
8.1.20.0050.00217.89
8.1.10.0000.00817.77
8.1.00.0000.00717.75
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0000.00718.65
8.0.270.0030.00517.41
8.0.260.0030.00317.31
8.0.250.0000.00717.18
8.0.240.0050.00217.19
8.0.230.0040.00417.25
8.0.220.0000.00717.13
8.0.210.0030.00317.03
8.0.200.0080.00017.14
8.0.190.0070.00417.20
8.0.180.0030.00517.23
8.0.170.0000.00717.21
8.0.160.0040.00417.20
8.0.150.0000.00817.00
8.0.140.0070.00317.14
8.0.130.0000.00513.52
8.0.120.0060.00317.12
8.0.110.0070.00017.04
8.0.100.0000.00717.03
8.0.90.0070.00017.13
8.0.80.0120.00317.15
8.0.70.0040.00417.21
8.0.60.0050.00216.90
8.0.50.0050.00316.98
8.0.30.0090.01017.25
8.0.20.0110.00817.40
8.0.10.0040.00417.24
8.0.00.0090.00816.92
7.4.330.0000.00515.03
7.4.320.0030.00316.57
7.4.300.0060.00016.50
7.4.290.0030.00316.68
7.4.280.0050.00216.63
7.4.270.0000.00916.64
7.4.260.0030.00316.48
7.4.250.0040.00416.75
7.4.240.0000.00816.66
7.4.230.0030.00316.63
7.4.220.0130.01316.58
7.4.210.0030.01016.63
7.4.200.0070.00016.80
7.4.160.0110.00516.64
7.4.150.0030.01417.40
7.4.140.0100.00817.86
7.4.130.0120.00516.67
7.4.120.0110.00616.76
7.4.110.0120.00416.81
7.4.100.0130.00316.72
7.4.90.0120.00416.79
7.4.80.0070.01016.76
7.4.70.0000.02116.68
7.4.60.0020.01516.54
7.4.50.0030.00516.67
7.4.40.0090.00916.78
7.4.30.0060.01016.84
7.4.00.0100.00714.92
7.3.330.0030.00313.36
7.3.320.0030.00313.18
7.3.310.0000.00716.44
7.3.300.0040.00416.48
7.3.290.0050.00816.36
7.3.280.0100.00716.41
7.3.270.0130.00317.40
7.3.260.0160.00816.44
7.3.250.0100.00716.52
7.3.240.0110.00616.73
7.3.230.0080.00816.46
7.3.210.0170.00016.66
7.3.200.0130.00619.39
7.3.190.0000.01916.35
7.3.180.0070.01116.61
7.3.170.0030.01416.41
7.3.160.0130.00316.42
7.3.120.0130.00615.20
7.3.110.0000.01814.71
7.3.100.0030.00914.91
7.3.90.0090.00914.76
7.3.80.0100.00315.09
7.3.70.0020.01314.88
7.3.60.0030.01014.91
7.3.50.0100.00314.98
7.3.40.0070.00714.79
7.3.30.0030.00714.96
7.3.20.0000.01616.99
7.3.10.0120.00316.65
7.3.00.0110.00316.91
7.2.330.0160.00316.73
7.2.320.0170.00016.91
7.2.310.0090.00916.96
7.2.300.0030.01316.77
7.2.290.0110.00716.98
7.2.250.0050.00915.42
7.2.240.0070.01115.19
7.2.230.0040.01115.20
7.2.220.0060.00914.93
7.2.210.0110.00815.29
7.2.200.0030.01014.83
7.2.190.0140.00415.24
7.2.180.0060.00915.00
7.2.170.0060.00315.07
7.1.330.0060.01016.02
7.1.320.0080.00415.68
7.1.310.0060.00915.67
7.1.300.0030.01315.94
7.1.290.0060.00315.78
7.1.280.0030.00616.06
7.1.270.0080.00615.77
7.1.260.0030.01016.04
7.1.200.0030.01015.67
7.1.100.0130.00518.27
7.1.70.0070.00317.16
7.1.60.0130.01019.32
7.1.50.0070.01816.71
7.1.00.0100.06722.50
7.0.200.0050.00316.79
7.0.140.0000.07722.21
7.0.60.0000.06720.02
7.0.50.0100.07317.84
7.0.40.0030.08020.06
7.0.30.0230.04020.02
7.0.20.0230.04320.13
7.0.10.0170.07320.16
7.0.00.0070.05320.11
5.6.280.0000.07721.14
5.6.210.0130.08020.69
5.6.200.0100.03318.11
5.6.190.0030.04720.41
5.6.180.0500.07020.59
5.6.170.0370.07720.49
5.6.160.0030.07020.61
5.6.150.0070.08018.12
5.6.140.0070.06318.21
5.6.130.0100.08018.08
5.6.120.0100.08320.88
5.6.110.0100.07021.11
5.6.100.0070.06320.98
5.6.90.0130.08321.07
5.6.80.0070.05020.50
5.5.350.0170.05720.44
5.5.340.0100.04717.98
5.5.330.0100.08720.43
5.5.320.0100.07320.21
5.5.310.0200.07020.32
5.5.300.0070.08318.02
5.5.290.0070.05017.87
5.5.280.0070.04020.88
5.5.270.0070.08320.78
5.5.260.0130.07720.62
5.5.250.0170.06720.68
5.5.240.0170.07020.14
5.4.450.0630.06019.30
5.4.440.0900.05019.24
5.4.430.0730.06019.58
5.4.420.0570.05719.48
5.4.410.0600.05019.47
5.4.400.0670.06019.14
5.4.390.0230.06319.14
5.4.380.0530.04318.56
5.4.370.0330.05318.72
5.4.360.0330.08318.66
5.4.350.0370.06718.68
5.4.340.0400.07018.71
5.4.320.0110.03612.45
5.4.310.0110.04412.45
5.4.300.0090.04312.46
5.4.290.0050.03812.45
5.4.280.0030.03712.35
5.4.270.0060.03512.35
5.4.260.0040.03912.35
5.4.250.0060.03712.35
5.4.240.0020.03812.35
5.4.230.0080.03512.34
5.4.220.0070.03612.34
5.4.210.0100.03712.34
5.4.200.0100.04712.34
5.4.190.0030.04112.34
5.4.180.0040.03612.34
5.4.170.0060.03512.35
5.4.160.0050.04612.35
5.4.150.0050.05012.34
5.4.140.0070.03512.03
5.4.130.0070.03512.02
5.4.120.0030.04111.97
5.4.110.0090.03211.97
5.4.100.0070.03411.97
5.4.90.0100.03311.97
5.4.80.0080.03511.97
5.4.70.0030.03911.97
5.4.60.0060.03511.96
5.4.50.0090.03211.96
5.4.40.0060.03411.95
5.4.30.0030.03811.95
5.4.20.0080.03411.95
5.4.10.0040.03611.95
5.4.00.0080.03411.44
5.3.290.0060.03912.80
5.3.280.0060.03812.71
5.3.270.0060.04012.72
5.3.260.0100.03612.72
5.3.250.0080.03912.72
5.3.240.0100.04012.72
5.3.230.0130.03112.71
5.3.220.0040.03912.68
5.3.210.0070.05012.68
5.3.200.0040.03712.68
5.3.190.0070.03712.68
5.3.180.0050.04212.67
5.3.170.0060.03612.67
5.3.160.0060.03512.68
5.3.150.0050.04412.67
5.3.140.0040.03812.66
5.3.130.0070.05012.66
5.3.120.0070.03712.66
5.3.110.0080.04112.66
5.3.100.0070.03512.12
5.3.90.0150.03112.08
5.3.80.0060.03712.07
5.3.70.0080.05012.08
5.3.60.0050.03812.06
5.3.50.0070.03712.00
5.3.40.0040.03812.00
5.3.30.0060.03411.95
5.3.20.0090.04011.72
5.3.10.0100.03611.69
5.3.00.0060.04111.68
5.2.170.0020.0329.19
5.2.160.0030.0309.18
5.2.150.0100.0359.18
5.2.140.0030.0329.18
5.2.130.0040.0379.14
5.2.120.0050.0299.14
5.2.110.0040.0319.15
5.2.100.0070.0269.14
5.2.90.0060.0329.15
5.2.80.0060.0289.14
5.2.70.0050.0299.14
5.2.60.0040.0399.10
5.2.50.0040.0479.06
5.2.40.0040.0289.04
5.2.30.0050.0299.02
5.2.20.0040.0299.01
5.2.10.0050.0288.93
5.2.00.0060.0288.79
5.1.60.0060.0268.06
5.1.50.0020.0278.06
5.1.40.0070.0228.04
5.1.30.0050.0268.39
5.1.20.0070.0248.41
5.1.10.0050.0258.14
5.1.00.0040.0278.14
5.0.50.0070.0256.62
5.0.40.0030.0216.48
5.0.30.0050.0306.29
5.0.20.0050.0206.27
5.0.10.0010.0236.24
5.0.00.0050.0296.23
4.4.90.0010.0164.78
4.4.80.0060.0184.75
4.4.70.0020.0194.75
4.4.60.0040.0174.76
4.4.50.0030.0214.77
4.4.40.0020.0264.71
4.4.30.0020.0224.76
4.4.20.0030.0254.84
4.4.10.0030.0154.85
4.4.00.0050.0324.76
4.3.110.0020.0164.67
4.3.100.0020.0244.66
4.3.90.0020.0204.63
4.3.80.0070.0254.59
4.3.70.0060.0164.63
4.3.60.0030.0184.62
4.3.50.0030.0194.63
4.3.40.0030.0344.54
4.3.30.0030.0203.28
4.3.20.0040.0153.25
4.3.10.0010.0193.22
4.3.00.0070.0236.98

preferences:
49.29 ms | 401 KiB | 5 Q