3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newsArray = array(); $item_title = 'Hello World'; $media = 'Prothom Alo'; $pubDate = 'Sun, 18 Mar 2018 05:51:28 GMT'; //echo (new DateTime('Sun, 18 Mar 2018 05:51:28 GMT'))->format('l, d F Y'); $newsArray[0] = array( 'title' => (string)$item_title, 'media' => (string)$media, 'pubdate' => new DateTime($pubDate) ); $item_title = 'Hello World 2'; $media = 'Prothom Alo 2'; $pubDate = 'Sun, 19 Mar 2018 05:51:28 GMT'; $newsArray[1] = array( 'title' => (string)$item_title, 'media' => (string)$media, 'pubdate' => new DateTime($pubDate) ); usort($newsArray,'date_compare'); function date_compare($a, $b) { $t1 = $a['pubDate']; $t2 = $b['pubDate']; return $t1 - $t2; } ?>

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.0150.00718.68
8.3.50.0110.00418.20
8.3.40.0040.01118.78
8.3.30.0080.00618.97
8.3.20.0000.00721.91
8.3.10.0080.00023.62
8.3.00.0030.00521.39
8.2.180.0120.00616.75
8.2.170.0140.00722.96
8.2.160.0100.00320.24
8.2.150.0040.00425.66
8.2.140.0090.00024.66
8.2.130.0090.00026.16
8.2.120.0060.00319.76
8.2.110.0030.00621.19
8.2.100.0000.01218.09
8.2.90.0050.00318.34
8.2.80.0030.00618.22
8.2.70.0030.00518.00
8.2.60.0040.00417.88
8.2.50.0060.00318.34
8.2.40.0000.00722.27
8.2.30.0000.00719.70
8.2.20.0080.00018.14
8.2.10.0000.00717.99
8.2.00.0030.00618.27
8.1.280.0090.00525.92
8.1.270.0060.00323.95
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00422.60
8.1.230.0040.00720.94
8.1.220.0030.00517.80
8.1.210.0030.00618.77
8.1.200.0050.00317.47
8.1.190.0080.00017.47
8.1.180.0030.00618.10
8.1.170.0040.00418.71
8.1.160.0000.00718.98
8.1.150.0030.00320.29
8.1.140.0080.00017.69
8.1.130.0070.00019.21
8.1.120.0070.00017.63
8.1.110.0000.00717.62
8.1.100.0020.00517.61
8.1.90.0080.00317.72
8.1.80.0000.00717.71
8.1.70.0060.00617.77
8.1.60.0000.00817.70
8.1.50.0040.00417.79
8.1.40.0030.00617.70
8.1.30.0040.00417.84
8.1.20.0040.00417.77
8.1.10.0080.00017.82
8.1.00.0030.00517.76
8.0.300.0070.00020.03
8.0.290.0060.00317.00
8.0.280.0030.00318.53
8.0.270.0030.00517.10
8.0.260.0000.00617.08
8.0.250.0030.00617.20
8.0.240.0050.00317.27
8.0.230.0040.00417.14
8.0.220.0000.00817.20
8.0.210.0070.00017.21
8.0.200.0030.00317.24
8.0.190.0040.00417.22
8.0.180.0000.00717.15
8.0.170.0000.00917.17
8.0.160.0040.00417.15
8.0.150.0040.00417.11
8.0.140.0000.00717.14
8.0.130.0030.00313.57
8.0.120.0060.00317.09
8.0.110.0040.00417.17
8.0.100.0070.00017.17
8.0.90.0000.00716.95
8.0.80.0090.00617.12
8.0.70.0070.00017.18
8.0.60.0050.00217.01
8.0.50.0040.00417.15
8.0.30.0130.00617.20
8.0.20.0110.01017.42
8.0.10.0050.00317.28
8.0.00.0080.01116.99
7.4.330.0050.00015.55
7.4.320.0040.00416.72
7.4.300.0030.00316.81
7.4.290.0000.00716.80
7.4.280.0040.00416.69
7.4.270.0000.00716.80
7.4.260.0070.00016.72
7.4.250.0080.00016.66
7.4.240.0020.00516.62
7.4.230.0040.00416.52
7.4.220.0040.00416.84
7.4.210.0030.01316.76
7.4.200.0040.00416.76
7.4.160.0090.00916.79
7.4.140.0110.00917.86
7.4.130.0160.00316.72
7.4.120.0100.00916.78
7.4.110.0070.01116.78
7.4.100.0100.00716.78
7.4.90.0100.00716.59
7.4.80.0130.01019.39
7.4.70.0140.00316.81
7.4.60.0140.00716.48
7.4.50.0070.01116.75
7.4.40.0130.01016.46
7.4.10.0070.01114.98
7.4.00.0110.00615.16
7.3.330.0030.00313.61
7.3.320.0030.00313.64
7.3.310.0000.00716.62
7.3.300.0000.00716.58
7.3.290.0040.00416.58
7.3.280.0100.00916.62
7.3.260.0130.00616.75
7.3.240.0070.01016.74
7.3.230.0060.01216.98
7.3.210.0100.00716.85
7.3.200.0100.00716.89
7.3.190.0160.00016.77
7.3.180.0110.00516.77
7.3.170.0070.01016.57
7.3.160.0070.01116.77
7.3.130.0070.01115.28
7.3.120.0070.01115.04
7.3.110.0130.00615.27
7.3.100.0040.00814.98
7.3.90.0120.00615.27
7.3.80.0070.00715.23
7.3.70.0000.01515.27
7.3.60.0080.00414.97
7.3.50.0090.00615.15
7.3.40.0070.00815.06
7.3.30.0030.01015.08
7.3.20.0060.00616.87
7.3.10.0060.00616.97
7.3.00.0000.01616.99
7.2.330.0110.00716.70
7.2.320.0120.00916.88
7.2.310.0120.00616.84
7.2.300.0100.01316.77
7.2.290.0060.01217.08
7.2.260.0060.01215.57
7.2.250.0030.01515.25
7.2.240.0060.00315.13
7.2.230.0160.00315.56
7.2.220.0060.01315.06
7.2.210.0030.01215.20
7.2.200.0070.00715.15
7.2.190.0100.00314.99
7.2.180.0080.00615.39
7.2.170.0070.00715.32
7.2.160.0070.00815.29
7.2.150.0060.01016.97
7.2.140.0040.00817.17
7.2.130.0100.00317.32
7.2.120.0030.01717.04
7.2.110.0100.00717.12
7.2.100.0040.01517.17
7.2.90.0030.01317.26
7.2.80.0030.01317.16
7.2.70.0060.00917.19
7.2.60.0080.00717.05
7.2.50.0040.01517.26
7.2.40.0090.00917.18
7.2.30.0140.01317.70
7.2.20.0110.01317.76
7.2.10.0110.01117.75
7.2.00.0080.01217.70
7.1.330.0000.00915.93
7.1.320.0030.01015.80
7.1.310.0100.00015.88
7.1.300.0030.00916.00
7.1.290.0060.00316.14
7.1.280.0060.00615.89
7.1.270.0090.00616.09
7.1.260.0040.00815.92
7.1.250.0000.01515.96
7.1.240.0030.01316.19
7.1.230.0070.00715.85
7.1.220.0060.00915.89
7.1.210.0030.01015.93
7.1.200.0080.00615.98
7.1.190.0040.01116.21
7.1.180.0070.00715.86
7.1.170.0030.01315.89
7.1.160.0130.00315.82
7.1.150.0120.01016.65
7.1.140.0130.01016.60
7.1.130.0080.01016.66
7.1.120.0080.01116.28
7.1.110.0110.01016.40
7.1.100.0230.00816.16
7.1.90.0130.01116.12
7.1.80.0130.01116.12
7.1.70.0110.01015.88
7.1.60.0270.01024.73
7.1.50.0220.01524.49
7.1.40.0210.01524.43
7.1.30.0230.01124.52
7.1.20.0180.01524.51
7.1.10.0070.01215.52
7.1.00.0070.01115.60
7.0.330.0040.00715.56
7.0.320.0000.01315.39
7.0.310.0040.00715.57
7.0.300.0040.01115.73
7.0.290.0040.00815.60
7.0.280.0060.00615.68
7.0.270.0070.01015.50
7.0.260.0070.00715.33
7.0.250.0080.00015.74
7.0.240.0100.00315.46
7.0.230.0060.00615.55
7.0.220.0110.00415.54
7.0.210.0080.00315.60
7.0.200.0080.00415.60
7.0.190.0060.00615.57
7.0.180.0030.01015.67
7.0.170.0070.00715.48
7.0.160.0070.01015.52
7.0.150.0070.00715.53
7.0.140.0060.01015.45
7.0.130.0040.00815.75
7.0.120.0080.00415.73
7.0.110.0000.01315.46
7.0.100.0070.00715.55
7.0.90.0030.00615.75
7.0.80.0060.00915.61
7.0.70.0000.01215.68
7.0.60.0000.01215.49
7.0.50.0070.01115.42
7.0.40.0070.00713.75
7.0.30.0030.00913.62
7.0.20.0070.00413.72
7.0.10.0100.00713.55
7.0.00.0070.01013.65
5.6.400.0070.00714.77
5.6.390.0000.01214.55
5.6.380.0040.01114.77
5.6.370.0120.00414.89
5.6.360.0110.00414.55
5.6.350.0000.01514.79
5.6.340.0110.00814.70
5.6.330.0040.01114.75
5.6.320.0060.00914.90
5.6.310.0040.01114.78
5.6.300.0120.00014.51
5.6.290.0070.00714.72
5.6.280.0060.00914.51
5.6.270.0090.00914.65
5.6.260.0180.00014.53
5.6.250.0090.00914.61
5.6.240.0030.00914.94
5.6.230.0030.01214.88
5.6.220.0030.01014.65
5.6.210.0040.01114.71
5.6.200.0040.00714.60
5.6.190.0120.00414.63
5.6.180.0040.00714.70
5.6.170.0060.00614.71
5.6.160.0060.00914.80
5.6.150.0080.00414.71
5.6.140.0030.01014.69
5.6.130.0090.00014.49
5.6.120.0030.00714.66
5.6.110.0000.01014.71
5.6.100.0110.00414.38
5.6.90.0000.00914.41
5.6.80.0080.00814.45
5.6.70.0040.00714.42
5.6.60.0000.01514.52
5.6.50.0040.01114.54
5.6.40.0080.00414.51
5.6.30.0030.00614.41
5.6.20.0090.00314.34
5.6.10.0040.01114.37
5.6.00.0030.00814.55

preferences:
35.69 ms | 400 KiB | 5 Q