3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 0 => '2014-06-01 12:45:02' ,1 => '2014-06-01 12:45:03' ,2 => '2014-06-01 12:48:52' ,3 => '2014-06-01 12:50:31' ,4 => '2014-06-01 13:18:49' ,10 => '2014-06-01 13:33:16' ,11 => '2014-06-01 14:20:48' ,12 => '2014-06-01 14:24:44' ,13 => '2014-06-01 15:28:16' ,14 => '2014-06-02 10:50:56' ,15 => '2014-06-02 10:51:07' ,16 => '2014-06-02 18:16:13' ,17 => '2014-06-03 11:20:20' ,18 => '2014-06-03 11:58:46' ,19 => '2014-06-03 11:59:03' ,20 => '2014-06-03 12:00:51' ,21 => '2014-06-03 12:01:21' ,22 => '2014-06-04 19:03:17' ,23 => '2014-06-04 19:06:03' ,24 => '2014-06-04 19:12:03' ,25 => '2014-06-04 21:18:03' ); $new_array = array_map(function($x){return date('Y-m-d', strtotime($x));}, $array); print_r(array_count_values($new_array));

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.4.20.0080.01117.68
8.4.10.0160.00317.73
8.3.150.0110.00820.64
8.3.140.0090.00616.93
8.3.130.0030.00718.71
8.3.120.0060.00318.98
8.3.110.0000.00920.94
8.3.100.0050.00516.69
8.3.90.0080.00026.77
8.3.80.0090.00016.88
8.3.70.0060.01218.36
8.3.60.0110.01116.63
8.3.50.0140.00722.11
8.3.40.0120.00318.93
8.3.30.0120.00618.96
8.3.20.0110.00820.16
8.3.10.0040.00421.77
8.3.00.0070.00717.91
8.2.270.0110.00717.02
8.2.260.0160.00318.34
8.2.250.0060.00318.38
8.2.240.0060.00317.11
8.2.230.0100.00022.58
8.2.220.0150.00024.06
8.2.210.0040.00426.77
8.2.200.0090.00016.88
8.2.190.0120.00316.58
8.2.180.0120.00916.73
8.2.170.0170.00322.96
8.2.160.0110.00420.89
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0030.00619.04
8.2.110.0060.00319.29
8.2.100.0050.00517.72
8.2.90.0040.00417.88
8.2.80.0030.00618.96
8.2.70.0040.00417.75
8.2.60.0050.00317.75
8.2.50.0030.00517.63
8.2.40.0050.00319.60
8.2.30.0000.00817.92
8.2.20.0050.00317.88
8.2.10.0080.00018.19
8.2.00.0040.00418.04
8.1.310.0080.00018.64
8.1.300.0060.01318.44
8.1.290.0080.00330.84
8.1.280.0070.00725.92
8.1.270.0040.00423.97
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00023.76
8.1.230.0060.00617.77
8.1.220.0040.00417.91
8.1.210.0030.00518.77
8.1.200.0040.00417.60
8.1.190.0050.00317.54
8.1.180.0030.00518.10
8.1.170.0030.00620.45
8.1.160.0000.00718.88
8.1.150.0040.00418.95
8.1.140.0040.00417.55
8.1.130.0030.00317.80
8.1.120.0040.00417.67
8.1.110.0050.00317.54
8.1.100.0000.00717.54
8.1.90.0070.00017.54
8.1.80.0000.00717.64
8.1.70.0000.00717.63
8.1.60.0080.00017.64
8.1.50.0030.00617.61
8.1.40.0040.00417.61
8.1.30.0000.00817.70
8.1.20.0080.00017.84
8.1.10.0040.00417.54
8.1.00.0050.00317.43
8.0.300.0040.00418.84
8.0.290.0070.00016.75
8.0.280.0070.00018.07
8.0.270.0030.00318.05
8.0.260.0060.00018.48
8.0.250.0000.00717.09
8.0.240.0000.00817.00
8.0.230.0000.00717.00
8.0.220.0070.00016.93
8.0.210.0030.00316.93
8.0.200.0040.00417.05
8.0.190.0030.00717.21
8.0.180.0000.00717.16
8.0.170.0000.00817.16
8.0.160.0030.00517.07
8.0.150.0080.00017.06
8.0.140.0000.00817.06
8.0.130.0000.00613.45
8.0.120.0030.00517.05
8.0.110.0040.00417.01
8.0.100.0000.00716.98
8.0.90.0040.00417.14
8.0.80.0060.00917.11
8.0.70.0000.00717.07
8.0.60.0000.00716.95
8.0.50.0050.00317.05
8.0.30.0120.00717.25
8.0.20.0160.01217.40
8.0.10.0080.00017.10
8.0.00.0100.00716.80
7.4.330.0020.00215.21
7.4.320.0040.00416.63
7.4.300.0000.00716.66
7.4.290.0050.00216.65
7.4.280.0030.00616.74
7.4.270.0030.00316.61
7.4.260.0050.00216.66
7.4.250.0040.00416.61
7.4.240.0020.00516.66
7.4.230.0070.00016.55
7.4.220.0110.00716.76
7.4.210.0030.01016.66
7.4.200.0000.00816.74
7.4.160.0130.00316.67
7.4.150.0080.01217.40
7.4.140.0080.01017.86
7.4.130.0080.00916.59
7.4.120.0050.01216.70
7.4.110.0060.01516.63
7.4.100.0140.00316.76
7.4.90.0030.01416.54
7.4.80.0070.01319.39
7.4.70.0150.00616.69
7.4.60.0100.00716.64
7.4.50.0040.00416.64
7.4.40.0070.01016.58
7.4.30.0060.01016.65
7.4.00.0120.00315.23
7.3.330.0060.00013.23
7.3.320.0000.00513.33
7.3.310.0000.00716.34
7.3.300.0030.00316.35
7.3.290.0120.00916.39
7.3.280.0080.00716.40
7.3.270.0100.00717.40
7.3.260.0140.00316.70
7.3.250.0100.00916.45
7.3.240.0160.00716.47
7.3.230.0060.01316.53
7.3.210.0100.01316.34
7.3.200.0090.01219.39
7.3.190.0030.01616.72
7.3.180.0000.01616.46
7.3.170.0070.01416.56
7.3.160.0210.00016.60
7.3.120.0090.00914.66
7.3.110.0060.01215.04
7.3.100.0040.01115.13
7.3.90.0070.01014.89
7.3.80.0030.01114.83
7.3.70.0170.00014.98
7.3.60.0040.01215.00
7.3.50.0080.00814.96
7.3.40.0090.00614.89
7.3.30.0130.00614.95
7.3.20.0060.00616.46
7.3.10.0000.00916.73
7.3.00.0060.00616.52
7.2.330.0140.00416.91
7.2.320.0030.01416.50
7.2.310.0040.01416.86
7.2.300.0030.01316.52
7.2.290.0060.01616.65
7.2.240.0070.01115.17
7.2.230.0100.01015.34
7.2.220.0090.00615.00
7.2.210.0030.01315.36
7.2.200.0040.00915.20
7.2.190.0030.01315.05
7.2.180.0120.00315.30
7.2.170.0040.01415.18
7.2.160.0070.01314.94
7.2.150.0040.00716.66
7.2.140.0130.00317.00
7.2.130.0030.00617.00
7.2.120.0000.01517.03
7.2.110.0050.00916.88
7.2.100.0100.00416.72
7.2.90.0130.00316.78
7.2.80.0080.00816.87
7.2.70.0060.01117.09
7.2.60.0120.00316.97
7.2.50.0120.00516.93
7.2.40.0100.00917.11
7.2.30.0080.00817.09
7.2.20.0090.00516.93
7.2.10.0090.00717.01
7.2.00.0080.00616.85
7.1.330.0070.01115.90
7.1.320.0110.00716.08
7.1.310.0100.00715.92
7.1.300.0070.00315.78
7.1.290.0060.00615.95
7.1.280.0030.01015.95
7.1.270.0090.00315.90
7.1.260.0080.00815.58
7.1.250.0040.00815.75
7.1.230.0000.01315.60
7.1.220.0140.00715.91
7.1.210.0080.00815.89
7.1.200.0060.00715.69
7.1.190.1220.01015.85
7.1.180.0090.00915.62
7.1.170.0150.00015.97
7.1.160.0560.00615.65
7.1.150.0130.00715.92
7.1.140.0150.00515.66
7.1.130.0240.01215.99
7.1.120.0040.01515.80
7.1.110.0350.00916.07
7.1.100.0070.01316.03
7.1.90.0150.00316.01
7.1.80.0160.00615.98
7.1.70.0060.00516.64
7.1.60.0090.00916.52
7.1.50.0360.00516.49
7.1.40.0040.01216.36
7.1.30.0080.00816.37
7.1.20.0110.00616.37
7.1.10.0050.00516.25
7.1.00.0050.00716.53
7.0.310.0150.00015.59
7.0.300.0130.00015.12
7.0.290.0100.00815.39
7.0.280.0570.01215.42
7.0.270.0070.01415.23
7.0.260.0110.00615.50
7.0.250.0170.00315.54
7.0.240.0070.00715.50
7.0.230.0290.00615.55
7.0.220.0150.00315.35
7.0.210.0090.00415.59
7.0.200.0070.00416.31
7.0.190.0100.00616.04
7.0.180.0050.00815.83
7.0.170.0050.00615.90
7.0.160.0170.00715.84
7.0.150.0040.00615.89
7.0.140.0060.00616.09
7.0.130.0080.00715.97
7.0.120.0320.00516.03
7.0.110.0040.00916.03
7.0.100.0070.00615.92
7.0.90.0070.00615.89
7.0.80.0010.01015.95
7.0.70.0050.00916.02
7.0.60.0080.00615.87
7.0.50.0110.00616.10
7.0.40.0100.00314.89
7.0.30.0070.00714.87
7.0.20.0050.01514.92
7.0.10.0050.01014.81
7.0.00.0020.00814.73
5.6.380.0110.00614.38
5.6.370.0080.00714.39
5.6.360.0120.00414.06
5.6.350.0140.00014.27
5.6.340.0140.00514.70
5.6.330.0050.01114.03
5.6.320.0120.00614.21
5.6.310.0080.00814.63
5.6.300.0060.02517.66
5.6.290.0040.02717.69
5.6.280.0090.02317.65
5.6.270.0050.02617.65
5.6.260.0050.03917.69
5.6.250.0060.02617.61
5.6.240.0040.02417.66
5.6.230.0060.02517.74
5.6.220.0070.02317.65
5.6.210.0060.02517.71
5.6.200.0080.02117.80
5.6.190.0060.02417.67
5.6.180.0020.02717.63
5.6.170.0110.04317.66
5.6.160.0070.02317.74
5.6.150.0050.02617.63
5.6.140.0100.03117.75
5.6.130.0060.03417.64
5.6.120.0060.02617.52
5.6.110.0060.02417.71
5.6.100.0120.03417.55
5.6.90.0110.01917.63
5.6.80.0120.01817.33
5.6.70.0050.02817.22
5.6.60.0080.02217.45
5.6.50.0100.02117.14
5.6.40.0130.03517.27
5.6.30.0080.02317.12
5.6.20.0100.02017.33
5.6.10.0050.02417.29
5.6.00.0080.02317.21
5.5.380.0070.02215.21
5.5.370.0090.02015.16
5.5.360.0050.03815.09
5.5.350.0050.03815.13
5.5.340.0040.02615.43
5.5.330.0030.04515.25
5.5.320.0080.02015.43
5.5.310.0080.03815.44
5.5.300.0070.02315.33
5.5.290.0060.02415.26
5.5.280.0020.02915.40
5.5.270.0030.02815.26
5.5.260.0020.05115.42
5.5.250.0090.02215.24
5.5.240.0050.02215.03
5.5.230.0120.01615.12
5.5.220.0070.02115.09
5.5.210.0100.01815.10
5.5.200.0080.03815.16
5.5.190.0050.02315.14
5.5.180.0080.01915.12
5.5.170.0070.00714.35
5.5.160.0020.03014.92
5.5.150.0090.04215.00
5.5.140.0050.02214.99
5.5.130.0050.02315.07
5.5.120.0020.02315.08
5.5.110.0020.02415.11
5.5.100.0040.03015.03
5.5.90.0030.04315.00
5.5.80.0040.02815.07
5.5.70.0080.01915.08
5.5.60.0030.04214.94
5.5.50.0040.02315.02
5.5.40.0050.02315.01
5.5.30.0070.02015.08
5.5.20.0090.02015.05
5.5.10.0040.02315.04
5.5.00.0070.02215.02
5.4.450.0050.02716.13
5.4.440.0250.01816.12
5.4.430.0120.02316.17
5.4.420.0100.04216.04
5.4.410.0050.02115.96
5.4.400.0030.02315.93
5.4.390.0090.01815.89
5.4.380.0070.02015.88
5.4.370.0040.02315.95
5.4.360.0090.02215.87
5.4.350.0040.02215.92
5.4.340.0030.02415.92
5.4.330.0050.00512.79
5.4.320.0060.03015.85
5.4.310.0050.02515.93
5.4.300.0090.01816.02
5.4.290.0030.02415.88
5.4.280.0060.02515.88
5.4.270.0060.02115.88
5.4.260.0070.02015.88
5.4.250.0060.02715.99
5.4.240.0060.02015.96
5.4.230.0090.01816.00
5.4.220.0090.02715.88
5.4.210.0060.02015.92
5.4.200.0060.02115.95
5.4.190.0070.01815.98
5.4.180.0100.01715.95
5.4.170.0050.02215.96
5.4.160.0080.02115.84
5.4.150.0020.02615.91
5.4.140.0070.01914.76
5.4.130.0070.01814.62
5.4.120.0040.02314.69
5.4.110.0040.02214.71
5.4.100.0060.02414.75
5.4.90.0060.02114.74
5.4.80.0050.02214.63
5.4.70.0030.02314.63
5.4.60.0070.02414.74
5.4.50.0090.01814.62
5.4.40.0090.02214.76
5.4.30.0020.02214.69
5.4.20.0050.02514.62
5.4.10.0030.02314.62
5.4.00.0060.02214.49
5.3.290.0080.02414.48
5.3.280.0080.03614.48
5.3.270.0080.01714.48
5.3.260.0040.02614.48
5.3.250.0070.01914.48
5.3.240.0080.01714.48
5.3.230.0060.02114.48
5.3.220.0050.02114.48
5.3.210.0070.02214.48
5.3.200.0050.01914.48
5.3.190.0060.01914.48
5.3.180.0050.02314.48
5.3.170.0030.02614.48
5.3.160.0070.02214.48
5.3.150.0070.02114.48
5.3.140.0040.02114.48
5.3.130.0060.02514.48
5.3.120.0000.02814.48
5.3.110.0050.02214.48
5.3.100.0040.02114.48
5.3.90.0070.01714.48
5.3.80.0070.02014.48
5.3.70.0060.02014.48
5.3.60.0030.02214.48
5.3.50.0030.02314.48
5.3.40.0060.02114.48
5.3.30.0050.02414.48
5.3.20.0000.02614.48
5.3.10.0060.02014.48
5.3.00.0070.01814.48
5.2.170.0130.01614.48
5.2.160.0070.01414.48
5.2.150.0030.01814.48
5.2.140.0160.01514.48
5.2.130.0040.01814.48
5.2.120.0020.01814.48
5.2.110.0030.01814.48
5.2.100.0030.02014.48
5.2.90.0080.01914.48
5.2.80.0030.02014.48
5.2.70.0040.01914.48
5.2.60.0040.01714.48
5.2.50.0020.01814.48
5.2.40.0030.01814.48
5.2.30.0030.01814.48
5.2.20.0050.01514.48
5.2.10.0030.01814.48
5.2.00.0060.01214.48
5.1.60.0040.01314.48
5.1.50.0070.01414.48
5.1.40.0020.01514.48
5.1.30.0070.01514.48
5.1.20.0050.01414.48
5.1.10.0020.01714.48
5.1.00.0040.01714.48
5.0.50.0020.01514.48
5.0.40.0060.02114.48
5.0.30.0040.01514.48
5.0.20.0050.01114.48
5.0.10.0040.01214.48
5.0.00.0040.01614.48
4.4.90.0050.00814.48
4.4.80.0040.01014.48
4.4.70.0020.00914.48
4.4.60.0030.00814.48
4.4.50.0000.01314.48
4.4.40.0050.01614.48
4.4.30.0020.01114.48
4.4.20.0020.01014.48
4.4.10.0040.00814.48
4.4.00.0010.02214.48
4.3.110.0010.01614.48
4.3.100.0070.01314.48
4.3.90.0080.00814.48
4.3.80.0020.01614.48
4.3.70.0030.00914.48
4.3.60.0040.01314.48
4.3.50.0050.01414.48
4.3.40.0020.01714.48
4.3.30.0000.01614.48
4.3.20.0010.01114.48
4.3.10.0030.00914.48
4.3.00.0050.00814.48

preferences:
31.98 ms | 403 KiB | 5 Q