3v4l.org

run code in 300+ PHP versions simultaneously
<?php $end = "Wed Oct 22 2014 05:30:00 GMT+0530 (IST)"; $start = "Tue Oct 14 2014 05:30:00 GMT+0530 (IST)"; //$date = new DateTime("Wed Oct 22 2014 05:30:00 GMT+0530 (IST)"); //echo $date->format('Ymd H:i:s'); //$start = date_create(date('Y-m-d H:i:s', strtotime($start))); //$end = date_create(date('Y-m-d H:i:s', strtotime($end))); $start = new DateTime($start); $end = new DateTime($end); $interval = $start->diff($end); $j = $interval->format('%a'); echo $j; for($i=0; $i < $interval->format('%a')+1; $i++){ echo $start->format('d/m/Y#'); echo "\n"; echo $start->format('Y-m-d#'); $start = $start->add(new DateInterval('P1D')); } //echo $interval->format('%R%a days');

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.0090.00618.39
8.3.50.0090.00922.01
8.3.40.0090.00619.05
8.3.30.0040.01419.07
8.3.20.0040.00420.30
8.3.10.0060.00320.72
8.3.00.0080.00019.80
8.2.180.0070.01416.50
8.2.170.0140.00722.96
8.2.160.0030.01022.25
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00322.19
8.2.110.0150.00020.65
8.2.100.0030.01018.09
8.2.90.0050.00319.30
8.2.80.0060.00317.97
8.2.70.0000.00817.88
8.2.60.0000.00817.91
8.2.50.0060.00318.07
8.2.40.0000.00718.22
8.2.30.0050.00319.33
8.2.20.0000.00818.04
8.2.10.0040.00418.27
8.2.00.0050.00318.00
8.1.280.0040.01125.92
8.1.270.0040.00422.06
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00020.70
8.1.230.0100.00019.09
8.1.220.0050.00317.88
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0050.00317.35
8.1.180.0030.00518.10
8.1.170.0080.00018.62
8.1.160.0040.00422.07
8.1.150.0070.00018.97
8.1.140.0000.00717.71
8.1.130.0000.00717.88
8.1.120.0030.00617.69
8.1.110.0020.00517.55
8.1.100.0020.00517.63
8.1.90.0030.00617.63
8.1.80.0030.00317.56
8.1.70.0030.00317.56
8.1.60.0000.00817.71
8.1.50.0000.00817.70
8.1.40.0000.00817.70
8.1.30.0040.00417.64
8.1.20.0000.00817.68
8.1.10.0000.00817.84
8.1.00.0000.00817.77
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.55
8.0.270.0070.00017.40
8.0.260.0000.00617.31
8.0.250.0070.00017.18
8.0.240.0040.00417.18
8.0.230.0030.00317.20
8.0.220.0040.00417.09
8.0.210.0030.00317.13
8.0.200.0000.00717.11
8.0.190.0080.00017.26
8.0.180.0000.00717.24
8.0.170.0030.00517.07
8.0.160.0040.00417.29
8.0.150.0000.00717.03
8.0.140.0070.00017.09
8.0.130.0000.00613.57
8.0.120.0000.00817.14
8.0.110.0000.00717.11
8.0.100.0040.00417.22
8.0.90.0000.00717.14
8.0.80.0090.00617.18
8.0.70.0040.00417.14
8.0.60.0000.00717.15
8.0.50.0070.00017.20
8.0.30.0130.00617.41
8.0.20.0120.00817.47
8.0.10.0040.00417.12
8.0.00.0060.01317.04
7.4.330.0020.00215.18
7.4.320.0000.00716.74
7.4.300.0080.00016.73
7.4.290.0040.00416.52
7.4.280.0000.00716.61
7.4.270.0000.00716.76
7.4.260.0000.00716.62
7.4.250.0000.00816.61
7.4.240.0050.00216.68
7.4.230.0030.00316.63
7.4.220.0000.01716.61
7.4.210.0090.00616.65
7.4.200.0030.00316.56
7.4.160.0160.00316.51
7.4.150.0060.01217.40
7.4.140.0100.00817.86
7.4.130.0100.00816.63
7.4.120.0070.01116.61
7.4.110.0110.00716.58
7.4.100.0090.01216.54
7.4.90.0150.00416.76
7.4.80.0170.00616.47
7.4.70.0110.00816.85
7.4.60.0070.01116.64
7.4.50.0040.00416.54
7.4.40.0110.01116.73
7.4.30.0120.00416.57
7.4.00.0070.01115.25
7.3.330.0080.00013.29
7.3.320.0030.00313.35
7.3.310.0040.00416.39
7.3.300.0000.00716.37
7.3.290.0120.00316.50
7.3.280.0070.00916.49
7.3.270.0100.00717.40
7.3.260.0160.00916.73
7.3.250.0100.00816.91
7.3.240.0030.01316.56
7.3.230.0060.01516.64
7.3.210.0070.01016.54
7.3.200.0030.01819.39
7.3.190.0100.00716.88
7.3.180.0110.00716.76
7.3.170.0090.01316.73
7.3.160.0130.01016.52
7.2.330.0000.01717.01
7.2.320.0080.01116.92
7.2.310.0040.01217.05
7.2.300.0100.00716.84
7.2.290.0060.01216.78
7.2.60.0030.01217.08
7.1.200.0040.00715.95
7.1.100.0060.00918.02
7.1.70.0060.01617.09
7.1.60.0090.00319.32
7.1.50.0100.01417.10
7.1.00.0070.07322.57
7.0.200.0030.00616.96
7.0.140.0000.07721.97
7.0.60.0130.07320.10
7.0.50.0100.07717.84
7.0.40.0070.04020.20
7.0.30.0430.04020.13
7.0.20.0230.04720.20
7.0.10.0070.08720.16
7.0.00.0100.06320.30
5.6.280.0100.06721.04
5.6.210.0070.03720.69
5.6.200.0070.08018.21
5.6.190.0030.05320.61
5.6.180.0400.03720.33
5.6.170.0270.03720.47
5.6.160.0100.08320.50
5.6.150.0000.04718.11
5.6.140.0030.06018.11
5.6.130.0070.08018.17
5.6.120.0030.05720.93
5.6.110.0300.07020.88
5.6.100.0170.06721.13
5.6.90.0100.08020.88
5.6.80.0100.08320.53
5.5.350.0200.07720.44
5.5.340.0070.04018.00
5.5.330.0100.06720.07
5.5.320.0430.07720.29
5.5.310.0200.04020.13
5.5.300.0100.07317.92
5.5.290.0100.06018.00
5.5.280.0100.07720.81
5.5.270.0230.06720.96
5.5.260.0070.08020.86
5.5.250.0070.05020.47
5.5.240.0070.04320.27
5.4.450.0230.06019.63
5.4.440.0970.05019.48
5.4.430.1170.04319.09
5.4.420.0830.06719.31
5.4.410.1070.04319.50
5.4.400.0930.05318.91
5.4.390.1230.04719.07
5.4.380.0300.06318.47
5.4.370.0300.05318.68
5.4.360.0330.05018.70
5.4.350.0400.07318.65
5.4.340.0370.05018.68
5.4.320.0050.04012.45
5.4.310.0100.04112.45
5.4.300.0050.03812.46
5.4.290.0080.03912.45
5.4.280.0050.03612.35
5.4.270.0050.03712.35
5.4.260.0050.03812.35
5.4.250.0070.03712.35
5.4.240.0100.03412.35
5.4.230.0100.03512.34
5.4.220.0090.03312.34
5.4.210.0070.03412.34
5.4.200.0040.03912.34
5.4.190.0090.03412.34
5.4.180.0100.03612.34
5.4.170.0010.04012.35
5.4.160.0050.03712.34
5.4.150.0080.03312.34
5.4.140.0080.03812.03
5.4.130.0040.03712.01
5.4.120.0060.03411.97
5.4.110.0060.03511.97
5.4.100.0100.03011.97
5.4.90.0040.03811.97
5.4.80.0040.03911.97
5.4.70.0060.03511.96
5.4.60.0070.03411.96
5.4.50.0070.03411.97
5.4.40.0070.03711.95
5.4.30.0030.03811.95
5.4.20.0060.03511.95
5.4.10.0050.03511.95
5.4.00.0050.03611.44
5.3.290.0080.03712.80
5.3.280.0070.03712.71
5.3.270.0100.03612.72
5.3.260.0070.03712.72
5.3.250.0050.03712.72
5.3.240.0060.03812.72
5.3.230.0060.03812.70
5.3.220.0080.03612.68
5.3.210.0040.04412.68
5.3.200.0100.03312.68
5.3.190.0080.03512.68
5.3.180.0070.03812.68
5.3.170.0090.03412.67
5.3.160.0070.03512.67
5.3.150.0100.03412.67
5.3.140.0070.03712.66
5.3.130.0100.03512.66
5.3.120.0060.03812.66
5.3.110.0070.03812.66
5.3.100.0070.03512.12
5.3.90.0070.03512.08
5.3.80.0040.03712.08
5.3.70.0060.03612.07
5.3.60.0050.03812.06
5.3.50.0100.03212.00
5.3.40.0090.03312.00
5.3.30.0080.03311.95
5.3.20.0090.03211.73
5.3.10.0050.03511.69
5.3.00.0060.03611.68
5.2.170.0060.0309.19
5.2.160.0040.0349.19
5.2.150.0080.0299.19
5.2.140.0030.0329.18
5.2.130.0060.0279.15
5.2.120.0050.0289.14
5.2.110.0040.0299.15
5.2.100.0060.0279.14
5.2.90.0050.0299.14
5.2.80.0040.0309.14
5.2.70.0040.0309.14
5.2.60.0020.0329.10
5.2.50.0050.0309.06
5.2.40.0080.0259.04
5.2.30.0050.0289.02
5.2.20.0060.0279.01
5.2.10.0070.0258.93
5.2.00.0050.0298.79
5.1.60.0070.0228.07
5.1.50.0050.0308.06
5.1.40.0040.0248.04
5.1.30.0070.0238.40
5.1.20.0040.0268.41
5.1.10.0030.0278.14
5.1.00.0030.0278.14
5.0.50.0050.0196.63
5.0.40.0050.0176.50
5.0.30.0060.0286.30
5.0.20.0030.0196.27
5.0.10.0070.0166.26
5.0.00.0030.0316.25
4.4.90.0020.0164.78
4.4.80.0050.0134.76
4.4.70.0030.0154.75
4.4.60.0010.0174.76
4.4.50.0020.0164.77
4.4.40.0060.0214.71
4.4.30.0020.0174.76
4.4.20.0030.0224.84
4.4.10.0050.0144.85
4.4.00.0060.0224.76
4.3.110.0020.0174.67
4.3.100.0030.0154.67
4.3.90.0030.0144.63
4.3.80.0050.0234.58
4.3.70.0050.0144.63
4.3.60.0050.0124.63
4.3.50.0050.0134.63
4.3.40.0030.0244.54
4.3.30.0040.0143.30
4.3.20.0020.0163.27
4.3.10.0020.0153.23
4.3.00.0070.0276.80

preferences:
38.93 ms | 401 KiB | 5 Q