3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data[] = array('volume' => 67, 'edition' => 2); $data[] = array('volume' => 86, 'edition' => 1); $data[] = array('volume' => 85, 'edition' => 6); $data[] = array('volume' => 98, 'edition' => 2); $data[] = array('volume' => 86, 'edition' => 6); $data[] = array('volume' => 67, 'edition' => 7); // Obtain a list of columns foreach ($data as $key => $row) { $volume[$key] = $row['volume']; $edition[$key] = $row['edition']; } // Sort the data with volume descending, edition ascending // Add $data as the last parameter, to sort by the common key array_multisort($volume, SORT_DESC, $edition, SORT_ASC, $data); var_dump($data);

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.130.0070.00517.77
8.4.120.0120.00923.96
8.4.110.0050.00422.54
8.4.100.0120.00617.61
8.4.90.0120.01018.91
8.4.80.0060.00217.77
8.4.70.0150.00517.85
8.4.60.0050.00519.14
8.4.50.0090.01220.34
8.4.40.0030.00619.59
8.4.30.0080.00020.51
8.4.20.0150.00620.63
8.4.10.0030.00619.38
8.3.260.0130.00716.55
8.3.250.0140.00816.56
8.3.240.0130.00617.41
8.3.230.0040.00616.60
8.3.220.0060.00617.17
8.3.210.0100.00918.68
8.3.200.0040.00516.68
8.3.190.0050.00516.95
8.3.180.0090.00618.88
8.3.170.0040.00422.40
8.3.160.0140.00417.17
8.3.150.0080.00019.18
8.3.140.0090.00020.68
8.3.130.0000.01016.67
8.3.120.0040.00420.65
8.3.110.0030.00620.94
8.3.100.0070.00716.54
8.3.90.0080.00026.77
8.3.80.0030.00716.75
8.3.70.0110.00716.63
8.3.60.0120.00618.28
8.3.50.0110.00716.50
8.3.40.0110.00718.79
8.3.30.0070.00718.70
8.3.20.0040.00421.60
8.3.10.0080.00019.15
8.3.00.0040.00421.74
8.2.290.0110.00720.72
8.2.280.0090.01018.31
8.2.270.0100.00716.66
8.2.260.0030.00617.23
8.2.250.0090.00018.47
8.2.240.0060.00318.86
8.2.230.0030.00622.58
8.2.220.0000.00924.06
8.2.210.0080.00026.77
8.2.200.0130.00018.12
8.2.190.0120.00916.58
8.2.180.0180.00425.92
8.2.170.0040.01118.77
8.2.160.0090.00622.96
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0060.00320.87
8.2.100.0060.00617.72
8.2.90.0030.00520.42
8.2.80.0050.00317.97
8.2.70.0030.00617.91
8.2.60.0050.00318.16
8.2.50.0080.00018.10
8.2.40.0070.00019.32
8.2.30.0000.00719.20
8.2.20.0030.00518.13
8.2.10.0040.00418.90
8.2.00.0000.00819.49
8.1.330.0090.01023.80
8.1.320.0090.01117.73
8.1.310.0120.00616.64
8.1.300.0090.00019.57
8.1.290.0090.00030.84
8.1.280.0210.00025.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.96
8.1.230.0000.01120.81
8.1.220.0030.00617.74
8.1.210.0000.01018.77
8.1.200.0040.00717.35
8.1.190.0000.00917.22
8.1.180.0030.00618.10
8.1.170.0030.00618.59
8.1.160.0000.00718.94
8.1.150.0040.00418.89
8.1.140.0050.00318.91
8.1.130.0030.00320.14
8.1.120.0000.00817.49
8.1.110.0000.00817.38
8.1.100.0040.00417.47
8.1.90.0000.00717.48
8.1.80.0050.00317.47
8.1.70.0070.00017.43
8.1.60.0000.00817.46
8.1.50.0040.00417.45
8.1.40.0000.00817.41
8.1.30.0040.00417.57
8.1.20.0000.00917.56
8.1.10.0000.00817.48
8.1.00.0030.00817.38
8.0.300.0000.00719.92
8.0.290.0080.00016.75
8.0.280.0040.00418.52
8.0.270.0070.00017.27
8.0.260.0000.00718.50
8.0.250.0070.00016.97
8.0.240.0070.00016.93
8.0.230.0040.00416.98
8.0.220.0030.00316.89
8.0.210.0050.00316.89
8.0.200.0000.00716.98
8.0.190.0060.00316.96
8.0.180.0000.00716.94
8.0.170.0050.00316.88
8.0.160.0000.00816.96
8.0.150.0030.00516.85
8.0.140.0050.00316.88
8.0.130.0030.00313.39
8.0.120.0040.00416.88
8.0.110.0000.00716.86
8.0.100.0040.00416.73
8.0.90.0000.00816.77
8.0.80.0090.00916.88
8.0.70.0050.00316.94
8.0.60.0000.00816.98
8.0.50.0000.00716.93
8.0.30.0130.00617.13
8.0.20.0060.01317.29
8.0.10.0070.00017.00
8.0.00.0100.00816.71
7.4.330.0060.00015.55
7.4.320.0000.00616.52
7.4.300.0030.00316.46
7.4.290.0030.00316.44
7.4.280.0050.00316.50
7.4.270.0030.00316.44
7.4.260.0040.00416.55
7.4.250.0000.00716.51
7.4.240.0030.00316.59
7.4.230.0070.00016.42
7.4.220.0040.00416.35
7.4.210.0060.00816.58
7.4.200.0030.00316.46
7.4.140.0130.00517.86
7.4.130.0090.00916.61
7.4.120.0030.01316.61
7.4.110.0100.00716.43
7.4.100.0210.00316.67
7.4.90.0140.00316.39
7.4.80.0130.00319.39
7.4.70.0170.01016.59
7.4.60.0150.00616.50
7.4.50.0100.00316.35
7.4.40.0110.00816.35
7.4.00.0090.00614.92
7.3.330.0030.00213.22
7.3.320.0000.00713.04
7.3.310.0030.00316.34
7.3.300.0000.00716.24
7.3.290.0060.01016.36
7.3.280.0080.00816.29
7.3.260.0100.00916.45
7.3.240.0110.00816.57
7.3.230.0170.00016.38
7.3.210.0090.01216.42
7.3.200.0060.01216.33
7.3.190.0030.01716.41
7.3.180.0110.00516.43
7.3.170.0090.00616.51
7.3.160.0100.00716.48
7.3.120.0110.00814.93
7.3.110.0130.00314.70
7.3.100.0100.01014.82
7.3.90.0030.01514.73
7.3.80.0030.01015.00
7.3.70.0060.00614.41
7.3.60.0080.00314.88
7.3.50.0060.00514.69
7.3.40.0040.00814.87
7.3.30.0080.01214.83
7.3.20.0080.00616.67
7.3.10.0060.00816.61
7.3.00.0040.00816.75
7.2.330.0130.00516.49
7.2.320.0160.00316.66
7.2.310.0170.00016.66
7.2.300.0060.01616.57
7.2.290.0090.01216.50
7.2.250.0080.01114.67
7.2.240.0100.00715.08
7.2.230.0000.01615.02
7.2.220.0140.00314.95
7.2.210.0070.00314.76
7.2.200.0090.00915.05
7.2.190.0060.00615.12
7.2.180.0080.00914.94
7.2.170.0030.00914.89
7.2.160.0120.00515.02
7.2.150.0040.01116.66
7.2.140.0050.01016.77
7.2.130.0060.00916.96
7.2.120.0040.01316.79
7.2.110.0110.00316.80
7.2.100.0060.00716.91
7.2.90.0040.00716.77
7.2.80.0050.00716.83
7.2.70.0040.01016.89
7.2.60.0080.00616.98
7.2.50.0110.00316.72
7.2.40.0070.00416.98
7.2.30.0110.00616.87
7.2.20.0090.00916.87
7.2.10.0080.00716.77
7.2.00.0060.00716.89
7.1.330.0060.00915.78
7.1.320.0040.01115.85
7.1.310.0000.01215.66
7.1.300.0030.00615.95
7.1.290.0070.00315.89
7.1.280.0050.00915.59
7.1.270.0050.01015.73
7.1.260.0050.00715.78
7.1.250.0080.01015.88
7.1.240.0080.00615.82
7.1.230.0040.01115.75
7.1.220.0000.00815.81
7.1.210.0000.01415.78
7.1.200.0030.01015.66
7.1.190.0060.00915.94
7.1.180.0030.01015.84
7.1.170.0070.00715.77
7.1.160.0100.00315.93
7.1.150.0070.00715.61
7.1.140.0000.01315.91
7.1.130.0060.00915.75
7.1.120.0040.01215.70
7.1.110.0040.00815.89
7.1.100.0060.00315.85
7.1.90.0000.01515.72
7.1.80.0090.00315.52
7.1.70.0070.00715.69
7.1.60.0100.00515.91
7.1.50.0080.00815.57
7.1.40.0000.01515.99
7.1.30.0120.00315.80
7.1.20.0090.00615.63
7.1.10.0060.00915.78
7.1.00.0030.01015.78

preferences:
27.12 ms | 403 KiB | 5 Q