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->setTimestamp(1412768637); 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.40.0100.00318.67
8.3.30.0160.00919.13
8.3.20.0040.00420.39
8.3.10.0000.00920.53
8.3.00.0060.00319.51
8.2.170.0060.00922.96
8.2.160.0070.01020.28
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00022.37
8.2.110.0030.00620.54
8.2.100.0130.00018.09
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0000.00817.88
8.2.60.0080.00018.05
8.2.50.0140.00018.07
8.2.40.0060.00318.06
8.2.30.0000.00719.36
8.2.20.0000.00818.01
8.2.10.0020.00518.15
8.2.00.0000.00717.74
8.1.270.0040.00423.95
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0000.00924.09
8.1.230.0070.00419.11
8.1.220.0080.00017.77
8.1.210.0080.00018.77
8.1.200.0080.00417.50
8.1.190.0040.00417.50
8.1.180.0040.00418.10
8.1.170.0030.00618.75
8.1.160.0040.00421.97
8.1.150.0040.00419.02
8.1.140.0040.00417.60
8.1.130.0000.00717.96
8.1.120.0050.00317.68
8.1.110.0030.00517.69
8.1.100.0000.00717.71
8.1.90.0000.00917.53
8.1.80.0060.00317.72
8.1.70.0000.00717.68
8.1.60.0000.00817.65
8.1.50.0030.00617.72
8.1.40.0030.00517.59
8.1.30.0000.00817.73
8.1.20.0040.00417.86
8.1.10.0000.00717.68
8.1.00.0050.00317.72
8.0.300.0020.00518.77
8.0.290.0050.00216.75
8.0.280.0000.00718.59
8.0.270.0000.00718.17
8.0.260.0030.00317.27
8.0.250.0000.00717.24
8.0.240.0030.00517.19
8.0.230.0070.00017.17
8.0.220.0030.00317.19
8.0.210.0060.00017.01
8.0.200.0040.00417.21
8.0.190.0070.00017.27
8.0.180.0000.00717.18
8.0.170.0030.00617.14
8.0.160.0040.00417.14
8.0.150.0000.00717.13
8.0.140.0040.00417.13
8.0.130.0000.00613.49
8.0.120.0030.00717.10
8.0.110.0050.00317.11
8.0.100.0000.00717.26
8.0.90.0040.00417.01
8.0.80.0090.01017.19
8.0.70.0040.00417.02
8.0.60.0000.00717.04
8.0.50.0040.00417.10
8.0.30.0100.01217.28
8.0.20.0060.01317.41
8.0.10.0040.00417.08
8.0.00.0070.00917.06
7.4.330.0020.00215.03
7.4.320.0040.00416.65
7.4.300.0040.00416.75
7.4.290.0070.00016.51
7.4.280.0040.00416.55
7.4.270.0030.00316.66
7.4.260.0070.00016.51
7.4.250.0050.00316.63
7.4.240.0020.00516.63
7.4.230.0000.00716.71
7.4.220.0060.01216.73
7.4.210.0100.01016.76
7.4.200.0000.00716.57
7.4.160.0120.00416.63
7.4.150.0030.01417.40
7.4.140.0070.01017.86
7.4.130.0080.01016.68
7.4.120.0050.01216.62
7.4.110.0100.01316.71
7.4.100.0080.00816.87
7.4.90.0120.01216.84
7.4.80.0060.01118.80
7.4.70.0100.00716.76
7.4.60.0120.00416.52
7.4.50.0030.00616.59
7.4.40.0060.01216.77
7.4.30.0030.01416.68
7.4.00.0110.00615.35
7.3.330.0000.00513.32
7.3.320.0000.00513.23
7.3.310.0030.00316.33
7.3.300.0040.00416.43
7.3.290.0040.01016.34
7.3.280.0120.00716.40
7.3.270.0080.00817.40
7.3.260.0110.00616.61
7.3.250.0110.01116.55
7.3.240.0040.01216.61
7.3.230.0030.01616.39
7.3.210.0100.00716.53
7.3.200.0100.01019.39
7.3.190.0070.01016.49
7.3.180.0100.00716.42
7.3.170.0100.00716.45
7.3.160.0110.00616.42
7.3.120.0120.00315.06
7.3.110.0060.01214.89
7.3.100.0060.00914.94
7.3.90.0030.01315.02
7.3.80.0000.01814.99
7.3.70.0040.00814.99
7.3.60.0060.00614.63
7.3.50.0040.01114.71
7.3.40.0130.00314.81
7.3.30.0000.01214.67
7.3.20.0110.00316.80
7.3.10.0030.01016.86
7.3.00.0080.00816.57
7.2.330.0000.01716.59
7.2.320.0140.00716.52
7.2.310.0000.01816.91
7.2.300.0070.01016.95
7.2.290.0100.00716.66
7.2.250.0090.00614.94
7.2.240.0120.00915.41
7.2.230.0030.01214.88
7.2.220.0070.01015.50
7.2.210.0110.00415.22
7.2.200.0060.01015.32
7.2.190.0030.00815.30
7.2.180.0040.01115.01
7.2.170.0030.01015.28
7.2.60.0110.00317.02
7.2.00.0070.00319.61
7.1.330.0120.00416.02
7.1.320.0000.01315.78
7.1.310.0070.00715.93
7.1.300.0070.00415.93
7.1.290.0110.00015.89
7.1.280.0070.00715.98
7.1.270.0090.00315.80
7.1.260.0070.00715.84
7.1.200.0030.00515.94
7.1.100.0060.00617.95
7.1.70.0070.00017.31
7.1.60.0090.01619.32
7.1.50.0040.00816.66
7.1.00.0030.07322.27
7.0.200.0050.00316.86
7.0.140.0000.06322.14
7.0.60.0070.05019.90
7.0.50.0130.08317.84
7.0.40.0070.04320.04
7.0.30.0230.03320.20
7.0.20.0430.06720.16
7.0.10.0170.08020.20
7.0.00.0070.06720.19
5.6.280.0100.06721.06
5.6.210.0100.07720.46
5.6.200.0100.08318.12
5.6.190.0170.07320.48
5.6.180.0430.05320.43
5.6.170.0370.07020.53
5.6.160.0070.04020.33
5.6.150.0100.05718.15
5.6.140.0070.05718.18
5.6.130.0000.07018.10
5.6.120.0070.09020.78
5.6.110.0100.05021.14
5.6.100.0100.08020.96
5.6.90.0100.08321.10
5.6.80.0030.04320.53
5.5.350.0100.03320.41
5.5.340.0030.04717.89
5.5.330.0070.04020.21
5.5.320.0400.06720.23
5.5.310.0370.06720.29
5.5.300.0070.05317.92
5.5.290.0100.07717.97
5.5.280.0130.05320.83
5.5.270.0170.08020.94
5.5.260.0030.04320.86
5.5.250.0070.07020.68
5.5.240.0200.06720.28
5.4.450.0100.02719.22
5.4.440.0730.06019.39
5.4.430.0800.05319.50
5.4.420.0830.00019.15
5.4.410.0630.00019.06
5.4.400.0630.00019.17
5.4.390.0630.00019.13
5.4.380.1200.05318.63
5.4.370.0800.06318.52
5.4.360.0930.06718.41
5.4.350.1030.05318.78
5.4.340.1100.05018.50
5.4.320.0080.03512.46
5.4.310.0070.03812.45
5.4.300.0060.03712.46
5.4.290.0120.03312.45
5.4.280.0040.03712.34
5.4.270.0040.03812.35
5.4.260.0070.03912.35
5.4.250.0070.03612.35
5.4.240.0090.03312.35
5.4.230.0050.03812.34
5.4.220.0050.03712.34
5.4.210.0080.03412.34
5.4.200.0060.03712.34
5.4.190.0060.03512.34
5.4.180.0060.03612.34
5.4.170.0020.04012.35
5.4.160.0040.03812.35
5.4.150.0070.03412.34
5.4.140.0100.03312.03
5.4.130.0040.03712.02
5.4.120.0050.03611.97
5.4.110.0050.03611.97
5.4.100.0030.03811.97
5.4.90.0050.03811.97
5.4.80.0040.03911.96
5.4.70.0040.03611.96
5.4.60.0070.03311.96
5.4.50.0050.03711.96
5.4.40.0040.03711.95
5.4.30.0080.03511.95
5.4.20.0080.03411.95
5.4.10.0070.03411.95
5.4.00.0060.03711.44
5.3.290.0060.03912.80
5.3.280.0070.03612.71
5.3.270.0060.03812.72
5.3.260.0090.03512.72
5.3.250.0060.03712.72
5.3.240.0070.03712.72
5.3.230.0070.03612.71
5.3.220.0040.03912.68
5.3.210.0050.04012.68
5.3.200.0060.03612.68
5.3.190.0060.04012.68
5.3.180.0070.03512.67
5.3.170.0060.03712.67
5.3.160.0070.03412.67
5.3.150.0050.03912.67
5.3.140.0050.03712.66
5.3.130.0080.03712.66
5.3.120.0060.04012.66
5.3.110.0040.04112.66
5.3.100.0060.03712.12
5.3.90.0060.03712.09
5.3.80.0050.03912.07
5.3.70.0090.03312.07
5.3.60.0050.03712.07
5.3.50.0040.03812.00
5.3.40.0070.03512.00
5.3.30.0070.03411.95
5.3.20.0080.03311.72
5.3.10.0050.03511.69
5.3.00.0080.03411.68
5.2.170.0060.0299.19
5.2.160.0070.0289.19
5.2.150.0070.0289.18
5.2.140.0040.0319.18
5.2.130.0010.0329.14
5.2.120.0050.0299.14
5.2.110.0070.0289.14
5.2.100.0040.0299.15
5.2.90.0030.0319.14
5.2.80.0010.0359.14
5.2.70.0040.0309.14
5.2.60.0030.0319.09
5.2.50.0020.0329.06
5.2.40.0050.0299.04
5.2.30.0090.0279.02
5.2.20.0050.0299.01
5.2.10.0070.0258.93
5.2.00.0030.0308.79
5.1.60.0070.0258.07
5.1.50.0060.0248.06
5.1.40.0040.0278.04
5.1.30.0070.0238.39
5.1.20.0050.0258.41
5.1.10.0040.0268.14
5.1.00.0060.0238.14
5.0.50.0020.0226.62
5.0.40.0040.0186.48
5.0.30.0040.0306.29
5.0.20.0040.0186.26
5.0.10.0040.0196.24
5.0.00.0080.0266.23
4.4.90.0010.0174.78
4.4.80.0040.0214.75
4.4.70.0030.0194.75
4.4.60.0020.0154.76
4.4.50.0030.0154.77
4.4.40.0050.0224.71
4.4.30.0020.0154.75
4.4.20.0000.0184.84
4.4.10.0040.0144.85
4.4.00.0060.0214.76
4.3.110.0030.0164.66
4.3.100.0040.0174.67
4.3.90.0030.0154.63
4.3.80.0050.0234.59
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0050.0214.54
4.3.30.0020.0153.28
4.3.20.0010.0163.25
4.3.10.0000.0173.22
4.3.00.0000.01716.39

preferences:
37.62 ms | 400 KiB | 5 Q