3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Created by PhpStorm. * User: efik * Date: 21.09.15 * Time: 13:28 */ $podcasts = []; foreach (range(1, 150) as $index) { $podcasts[] = [ "id" => $index * mt_rand(1, 4), "title" => "Song - " . $index, "time" => $index, "License" => "MIT", ]; } arsort($podcasts); print_r( $podcasts);

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)
7.4.00.0080.00815.30
7.3.120.0030.01715.16
7.3.110.0040.01514.71
7.3.100.0070.00715.19
7.3.90.0070.01014.80
7.3.80.0100.00714.84
7.3.70.0060.00914.63
7.3.60.0000.01614.96
7.3.50.0100.00714.92
7.3.40.0060.01114.86
7.3.30.0000.01514.75
7.3.20.0040.01416.73
7.3.10.0100.00616.42
7.3.00.0060.00616.82
7.2.250.0200.00015.13
7.2.240.0130.01014.97
7.2.230.0060.01315.12
7.2.220.0120.00615.06
7.2.210.0030.01615.03
7.2.200.0070.00715.01
7.2.190.0030.01015.25
7.2.180.0100.00615.03
7.2.170.0040.01515.34
7.2.00.0030.01319.16
7.1.330.0030.01115.79
7.1.320.0060.00915.91
7.1.310.0100.00715.89
7.1.300.0070.00715.48
7.1.290.0100.00715.77
7.1.280.0040.01415.92
7.1.270.0030.01215.63
7.1.260.0090.00615.91
7.1.70.0000.00917.33
7.1.60.0130.00919.17
7.1.50.0070.01617.09
7.1.00.0100.07022.30
7.0.200.0120.00916.69
7.0.60.0230.08019.98
7.0.50.0130.07317.91
7.0.40.0100.07320.09
7.0.30.0330.04020.10
7.0.20.0270.09320.28
7.0.10.0170.08020.20
7.0.00.0070.05720.20
5.6.280.0230.02321.05
5.6.210.0230.07020.59
5.6.200.0070.05718.27
5.6.190.0100.05020.39
5.6.180.0270.05020.48
5.6.170.0330.06320.55
5.6.160.0170.08720.50
5.6.150.0130.08718.15
5.6.140.0130.04318.16
5.6.130.0170.08318.25
5.6.120.0100.07021.05
5.6.110.0170.07721.04
5.6.100.0200.07721.02
5.6.90.0100.04721.03
5.6.80.0200.07320.50
5.5.350.0430.06720.31
5.5.340.0230.06018.09
5.5.330.0230.06320.58
5.5.320.0130.07720.20
5.5.310.0470.03720.26
5.5.300.0170.04717.96
5.5.290.0170.08018.02
5.5.280.0100.05020.80
5.5.270.0100.08320.80
5.5.260.0170.06320.77
5.5.250.0230.08320.78
5.5.240.0430.06720.22
5.4.450.0800.06319.48
5.4.440.0830.06019.43
5.4.430.0870.05019.58
5.4.420.0800.06019.46
5.4.410.1000.06319.50
5.4.400.1000.05019.26
5.4.390.0800.05019.25
5.4.380.0770.05719.05
5.4.370.0930.04018.98
5.4.360.0870.06019.14
5.4.350.0800.06319.31
5.4.340.0900.04019.27
5.4.320.1000.05019.26
5.4.310.0970.05019.28
5.4.300.0900.05318.98
5.4.290.0930.05018.86
5.4.280.1100.05319.01
5.4.270.0970.06019.00
5.4.260.0800.06019.37
5.4.250.0970.05019.14
5.4.240.0900.05319.12
5.4.230.0730.05719.12
5.4.220.0900.05319.14
5.4.210.1000.04319.12
5.4.200.0770.05319.29
5.4.190.0900.05718.86
5.4.180.1000.05719.11
5.4.170.0970.04719.29
5.4.160.0970.05019.26
5.4.150.1000.06019.13
5.4.140.0900.04016.50
5.4.130.0730.06016.58
5.4.120.0770.06016.52
5.4.110.0770.05716.50
5.4.100.0930.05016.62
5.4.90.0800.06316.52
5.4.80.0830.05016.22
5.4.70.0330.03716.31
5.4.60.0430.06716.48
5.4.50.0070.05716.54
5.4.40.0070.04016.42
5.4.30.0170.07316.39
5.4.20.0230.03716.43

preferences:
38.49 ms | 401 KiB | 5 Q