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.0120.00918.52
8.3.50.0100.00718.20
8.3.40.0060.01018.93
8.3.30.0110.00318.93
8.3.20.0040.00421.77
8.3.10.0040.00423.48
8.3.00.0000.00821.25
8.2.180.0000.01516.62
8.2.170.0180.00322.96
8.2.160.0080.00620.50
8.2.150.0000.00825.66
8.2.140.0030.00524.66
8.2.130.0040.00420.52
8.2.120.0040.00426.35
8.2.110.0080.00321.08
8.2.100.0080.00418.09
8.2.90.0000.00918.34
8.2.80.0030.00618.16
8.2.70.0000.00817.93
8.2.60.0060.00317.88
8.2.50.0040.00418.22
8.2.40.0050.00322.36
8.2.30.0070.00019.64
8.2.20.0060.00318.08
8.2.10.0080.00017.90
8.2.00.0000.00818.19
8.1.280.0120.00325.92
8.1.270.0080.00023.79
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0090.00022.84
8.1.230.0080.00320.97
8.1.220.0050.00317.88
8.1.210.0000.00818.77
8.1.200.0000.00817.61
8.1.190.0060.00317.47
8.1.180.0000.00818.10
8.1.170.0090.00018.68
8.1.160.0000.00818.98
8.1.150.0040.00420.42
8.1.140.0040.00417.79
8.1.130.0040.00420.85
8.1.120.0040.00417.75
8.1.110.0070.00017.66
8.1.100.0030.00517.73
8.1.90.0030.00717.71
8.1.80.0000.00817.66
8.1.70.0030.00717.77
8.1.60.0000.00017.73
8.1.50.0080.00017.70
8.1.40.0030.00517.61
8.1.30.0000.00817.91
8.1.20.0000.00817.89
8.1.10.0000.00917.70
8.1.00.0040.00417.77
8.0.300.0070.00020.11
8.0.290.0000.00816.88
8.0.280.0030.00318.53
8.0.270.0050.00317.35
8.0.260.0000.00617.03
8.0.250.0040.00417.13
8.0.240.0030.00317.09
8.0.230.0020.00517.22
8.0.220.0000.00717.14
8.0.210.0040.00417.06
8.0.200.0030.00317.27
8.0.190.0000.00717.25
8.0.180.0070.00017.20
8.0.170.0040.00417.20
8.0.160.0040.00417.18
8.0.150.0000.00717.21
8.0.140.0040.00417.02
8.0.130.0000.00613.61
8.0.120.0000.00817.20
8.0.110.0080.00017.00
8.0.100.0050.00317.17
8.0.90.0000.00717.04
8.0.80.0080.00917.12
8.0.70.0040.00417.00
8.0.60.0040.00417.20
8.0.50.0000.00717.03
8.0.30.0070.01117.41
8.0.20.0110.00717.40
8.0.10.0000.00717.23
8.0.00.0090.00817.00
7.4.330.0060.00015.55
7.4.320.0030.00316.72
7.4.300.0000.00616.71
7.4.290.0040.00416.83
7.4.280.0040.00416.79
7.4.270.0030.00316.80
7.4.260.0000.00716.79
7.4.250.0070.00016.67
7.4.240.0030.00516.74
7.4.230.0080.00016.79
7.4.220.0030.00416.55
7.4.210.0090.00816.68
7.4.200.0000.00716.75
7.4.160.0110.00616.68
7.4.140.0080.01017.86
7.4.130.0060.01616.79
7.4.120.0110.00716.75
7.4.110.0060.01016.58
7.4.100.0170.00016.68
7.4.90.0050.01316.54
7.4.80.0090.00819.39
7.4.70.0150.00316.71
7.4.60.0030.01316.75
7.4.50.0060.00616.66
7.4.40.0130.00316.73
7.4.00.0050.01215.17
7.3.330.0000.00513.64
7.3.320.0060.00013.63
7.3.310.0040.00416.66
7.3.300.0070.00016.60
7.3.290.0050.00216.50
7.3.280.0100.00516.60
7.3.260.0110.00816.69
7.3.240.0100.00616.69
7.3.230.0110.00716.66
7.3.210.0100.00616.82
7.3.200.0110.00616.62
7.3.190.0110.00616.77
7.3.180.0110.00416.74
7.3.170.0080.00916.76
7.3.160.0000.01716.63
7.3.120.0120.00615.20
7.3.110.0090.00914.93
7.3.100.0040.01515.34
7.3.90.0070.00715.00
7.3.80.0000.00915.21
7.3.70.0030.01015.07
7.3.60.0060.00615.09
7.3.50.0060.00315.14
7.3.40.0030.01015.02
7.3.30.0040.00814.85
7.3.20.0080.00417.02
7.3.10.0050.00516.93
7.3.00.0050.00717.03
7.2.330.0080.01117.05
7.2.320.0090.00916.93
7.2.310.0100.00716.64
7.2.300.0100.00716.91
7.2.290.0070.01017.02
7.2.250.0060.00915.52
7.2.240.0060.01315.16
7.2.230.0060.01015.24
7.2.220.0100.00315.31
7.2.210.0090.00615.31
7.2.200.0030.00915.45
7.2.190.0070.00715.14
7.2.180.0090.00315.14
7.2.170.0060.00915.29
7.2.160.0000.01314.97
7.2.150.0040.00816.91
7.2.140.0070.00717.16
7.2.130.0040.00916.92
7.2.120.0050.00717.21
7.2.110.0040.00717.15
7.2.100.0020.01217.20
7.2.90.0060.00617.15
7.2.80.0080.00617.24
7.2.70.0050.00517.19
7.2.60.0060.00617.11
7.2.50.0080.00617.24
7.2.40.0040.01117.35
7.2.30.0080.01217.59
7.2.20.0110.01017.50
7.2.10.0070.01217.61
7.2.00.0070.01117.48
7.1.330.0130.00316.14
7.1.320.0110.00316.13
7.1.310.0070.01016.00
7.1.300.0070.01015.86
7.1.290.0040.00815.88
7.1.280.0100.00716.13
7.1.270.0030.00815.91
7.1.260.0070.00716.06
7.1.250.0040.00716.14
7.1.240.0030.01216.02
7.1.230.0030.01015.89
7.1.220.0060.00916.05
7.1.210.0110.00015.97
7.1.200.0040.01015.86
7.1.190.0040.00716.09
7.1.180.0000.01416.12
7.1.170.0040.01116.09
7.1.160.0060.00616.14
7.1.150.0070.01416.54
7.1.140.0240.01016.58
7.1.130.0140.00616.57
7.1.120.0090.00916.54
7.1.110.0100.01016.36
7.1.100.0130.00416.36
7.1.90.0110.01116.18
7.1.80.0090.00716.21
7.1.70.0130.00615.81
7.1.60.0210.01024.71
7.1.50.0160.00924.73
7.1.40.0200.01524.59
7.1.30.0150.01124.37
7.1.20.0220.01424.48
7.1.10.0110.00915.40
7.1.00.0080.01015.44
7.0.330.0030.00715.55
7.0.320.0090.00615.68
7.0.310.0070.00715.45
7.0.300.0030.01015.61
7.0.290.0030.00915.47
7.0.280.0090.00315.65
7.0.270.0030.00615.64
7.0.260.0070.00715.37
7.0.250.0000.01415.79
7.0.240.0060.00615.46
7.0.230.0030.00615.63
7.0.220.0060.00615.69
7.0.210.0060.00315.40
7.0.200.0120.00315.58
7.0.190.0100.00315.67
7.0.180.0070.00715.63
7.0.170.0070.00315.59
7.0.160.0030.01015.65
7.0.150.0060.00615.50
7.0.140.0080.00015.74
7.0.130.0100.00315.39
7.0.120.0070.00415.69
7.0.110.0070.00715.62
7.0.100.0090.00015.57
7.0.90.0030.01015.73
7.0.80.0080.00315.64
7.0.70.0000.00815.64
7.0.60.0070.00715.63
7.0.50.0000.01215.45
7.0.40.0030.00613.78
7.0.30.0100.00313.70
7.0.20.0090.00613.67
7.0.10.0000.01413.63
7.0.00.0030.01013.55
5.6.400.0060.01014.80
5.6.390.0060.00314.62
5.6.380.0030.00914.73
5.6.370.0030.01014.71
5.6.360.0110.00314.46
5.6.350.0080.00514.69
5.6.340.0070.00714.42
5.6.330.0080.00014.93
5.6.320.0000.01014.93
5.6.310.0100.00714.43
5.6.300.0000.00914.38
5.6.290.0030.01014.83
5.6.280.0070.00714.68
5.6.270.0040.01114.87
5.6.260.0000.01114.66
5.6.250.0060.00614.41
5.6.240.0040.00714.78
5.6.230.0060.00314.59
5.6.220.0000.00814.70
5.6.210.0030.01014.48
5.6.200.0070.00314.83
5.6.190.0060.00614.43
5.6.180.0060.00614.88
5.6.170.0120.00414.57
5.6.160.0030.01014.50
5.6.150.0000.00914.41
5.6.140.0060.00914.63
5.6.130.0030.01314.64
5.6.120.0070.01114.63
5.6.110.0070.01014.50
5.6.100.0030.01314.70
5.6.90.0160.00014.73
5.6.80.0070.00414.29
5.6.70.0090.00014.41
5.6.60.0070.00714.55
5.6.50.0000.01214.70
5.6.40.0060.00614.39
5.6.30.0030.00714.37
5.6.20.0060.00614.80
5.6.10.0070.00714.33
5.6.00.0060.00714.54

preferences:
59.4 ms | 401 KiB | 5 Q