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); foreach ($data as $key => $row) { $volume[$key] = $row['volume']; $edition[$key] = $row['edition']; } print_r($volume); // 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); print_r($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.3.60.0100.01016.63
8.3.50.0110.00716.65
8.3.40.0110.00718.67
8.3.30.0140.00318.64
8.3.20.0080.00018.81
8.3.10.0090.00020.53
8.3.00.0040.00419.38
8.2.180.0040.01218.54
8.2.170.0120.00922.96
8.2.160.0110.00418.97
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00620.63
8.2.110.0080.00019.27
8.2.100.0060.00617.72
8.2.90.0040.00420.89
8.2.80.0000.00719.34
8.2.70.0060.00317.50
8.2.60.0060.00318.05
8.2.50.0080.00018.07
8.2.40.0050.00318.34
8.2.30.0000.00818.12
8.2.20.0060.00319.52
8.2.10.0050.00217.67
8.2.00.0060.00617.68
8.1.280.0100.00725.92
8.1.270.0000.00723.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00322.54
8.1.230.0050.00520.85
8.1.220.0040.00418.77
8.1.210.0060.00318.98
8.1.200.0030.00617.35
8.1.190.0000.00817.53
8.1.180.0000.01018.10
8.1.170.0000.00818.79
8.1.160.0040.00418.83
8.1.150.0040.00418.66
8.1.140.0040.00417.42
8.1.130.0000.00717.88
8.1.120.0000.00717.41
8.1.110.0000.00817.37
8.1.100.0040.00417.51
8.1.90.0050.00317.38
8.1.80.0000.00717.48
8.1.70.0070.00017.46
8.1.60.0030.00517.48
8.1.50.0000.00717.35
8.1.40.0030.00517.60
8.1.30.0000.00717.49
8.1.20.0040.00417.60
8.1.10.0050.00317.58
8.1.00.0030.00617.42
8.0.300.0090.00019.95
8.0.290.0040.00416.75
8.0.280.0040.00418.46
8.0.270.0000.00817.27
8.0.260.0000.00616.89
8.0.250.0050.00316.93
8.0.240.0070.00016.98
8.0.230.0000.00716.87
8.0.220.0070.00016.96
8.0.210.0030.00316.96
8.0.200.0080.00016.89
8.0.190.0070.00016.84
8.0.180.0000.00716.99
8.0.170.0090.00016.72
8.0.160.0030.00317.01
8.0.150.0040.00416.87
8.0.140.0070.00416.86
8.0.130.0000.00513.29
8.0.120.0050.00316.73
8.0.110.0000.00716.91
8.0.100.0000.00816.84
8.0.90.0040.00416.82
8.0.80.0100.01016.83
8.0.70.0000.00716.75
8.0.60.0000.00716.80
8.0.50.0070.00016.86
8.0.30.0090.01316.98
8.0.20.0130.00917.06
8.0.10.0040.00416.91
8.0.00.0120.01016.87
7.4.330.0050.00013.01
7.4.320.0060.00016.66
7.4.300.0030.00316.52
7.4.290.0000.00616.57
7.4.280.0050.00216.62
7.4.270.0070.00016.59
7.4.260.0050.00013.15
7.4.250.0040.00416.61
7.4.240.0030.00316.57
7.4.230.0070.00016.64
7.4.220.0140.00816.51
7.4.210.0000.01416.53
7.4.200.0050.00216.67
7.4.190.0050.00216.70
7.4.160.0090.00716.44
7.4.150.0070.01016.63
7.4.140.0100.01316.29
7.4.130.0100.00716.46
7.4.120.0090.00916.41
7.4.110.0170.00316.63
7.4.100.0200.00016.50
7.4.90.0130.00616.44
7.4.80.0060.01616.54
7.4.70.0000.01616.42
7.4.60.0150.00916.48
7.4.50.0000.00916.30
7.4.40.0030.01016.36
7.4.30.0060.01216.48
7.4.00.0090.00614.89
7.3.330.0030.00313.03
7.3.320.0070.00013.07
7.3.310.0000.00716.38
7.3.300.0040.00416.22
7.3.290.0080.00716.32
7.3.280.0100.01016.28
7.3.270.0090.00916.24
7.3.260.0030.01316.46
7.3.250.0090.01116.35
7.3.240.0140.00716.46
7.3.230.0100.01416.34
7.3.210.0190.00316.57
7.3.200.0090.01419.39
7.3.190.0070.01016.44
7.3.180.0040.01116.34
7.3.170.0130.00316.38
7.3.160.0090.00616.49
7.3.120.0100.00714.83
7.3.10.0040.01116.57
7.3.00.0000.01216.42
7.2.330.0110.00716.43
7.2.320.0120.00616.68
7.2.310.0030.01516.68
7.2.300.0030.01416.64
7.2.290.0120.00916.77
7.2.130.0030.01316.80
7.2.120.0090.00616.97
7.2.110.0110.00716.74
7.2.100.0070.00316.85
7.2.90.0030.00616.93
7.2.80.0060.00616.77
7.2.70.0090.00616.96
7.2.60.0060.00717.00
7.2.50.0070.01017.00
7.2.40.0140.00316.75
7.2.30.0070.00417.05
7.2.20.0070.00417.11
7.2.10.0040.01116.74
7.2.00.0080.00718.33
7.1.250.0030.01315.99
7.1.200.0030.01015.77
7.1.100.0030.00717.82
7.1.70.0030.00317.20
7.1.60.0070.01017.25
7.1.50.0060.00617.03
7.1.40.0040.01116.54
7.1.30.0030.00716.66
7.1.20.0040.00716.98
7.1.10.0060.00316.60
7.1.00.0000.00816.69
7.0.200.0000.00716.97
7.0.190.0000.00716.66
7.0.180.0050.00316.19
7.0.170.0050.00216.18
7.0.160.0000.00716.16
7.0.150.0050.00516.41
7.0.140.0000.00716.43
7.0.130.0000.00716.65
7.0.120.0040.00716.86
7.0.110.0000.00816.35
7.0.100.0000.01116.40
7.0.90.0040.00416.42
7.0.80.0090.00016.20
7.0.70.0030.00516.37
7.0.60.0050.00316.19
7.0.50.0000.00816.34
7.0.40.0070.00415.20
7.0.30.0030.00815.20
7.0.20.0000.00815.20
7.0.10.0050.00315.20
7.0.00.0050.00215.20
5.6.300.0030.05721.00
5.6.290.0000.04721.00
5.6.280.0030.06921.02
5.6.270.0070.04020.86
5.6.260.0000.04520.88
5.6.250.0070.03820.86
5.6.240.0030.05320.95
5.6.230.0000.05220.97
5.6.220.0100.03620.77
5.6.210.0100.06520.79
5.6.200.0030.04620.84
5.6.190.0070.05020.76
5.6.180.0030.04520.95
5.6.170.0000.04420.82
5.6.160.0030.05320.72
5.6.150.0030.05021.02
5.6.140.0030.04721.00
5.6.130.0030.05020.75
5.6.120.0030.05120.76
5.6.110.0030.04720.84
5.6.100.0100.03820.97
5.6.90.0030.05221.01
5.6.80.0130.04120.36
5.6.70.0070.03720.41
5.6.60.0030.03920.10
5.6.50.0000.04820.41
5.6.40.0030.04320.18
5.6.30.0060.04520.39
5.6.20.0030.04220.36
5.6.10.0000.04920.15
5.6.00.0060.03820.07
5.5.380.0070.06017.58
5.5.370.0000.04617.55
5.5.360.0070.03817.45
5.5.350.0030.04317.47
5.5.340.0000.04417.84
5.5.330.0030.04517.86
5.5.320.0170.03518.00
5.5.310.0030.03818.04
5.5.300.0000.04518.09
5.5.290.0030.04118.09
5.5.280.0000.04518.17
5.5.270.0070.03918.12
5.5.260.0000.05417.73
5.5.250.0030.03917.84
5.5.240.0030.03817.39
5.5.230.0000.04217.46
5.5.220.0030.08617.55
5.5.210.0030.04517.08
5.5.200.0190.03917.44
5.5.190.0030.04517.36
5.5.180.0070.03717.18
5.5.160.0100.03317.48
5.5.150.0000.04017.09
5.5.140.0030.03717.52
5.5.130.0030.03617.34
5.5.120.0030.04017.09
5.5.110.0000.03917.43
5.5.100.0030.03617.36
5.5.90.0100.03217.30
5.5.80.0000.04117.34
5.5.70.0000.04017.41
5.5.60.0000.04217.34
5.5.50.0060.03517.32
5.5.40.0070.03617.33
5.5.30.0070.03317.07
5.5.20.0040.04217.34
5.5.10.0100.03817.09
5.5.00.0000.04717.32
5.4.450.0000.04919.40
5.4.440.0030.04419.41
5.4.430.0030.04019.39
5.4.420.0070.03919.44
5.4.410.0000.04019.40
5.4.400.0030.03818.98
5.4.390.0070.03719.11
5.4.380.0030.03618.95
5.4.370.0130.02919.20
5.4.360.0030.04119.16
5.4.350.0000.04619.08
5.4.340.0030.03719.21
5.4.320.0030.05619.14
5.4.310.0060.03519.07
5.4.300.0030.04419.02
5.4.290.0030.03819.16
5.4.280.0030.03718.94
5.4.270.0200.04119.08
5.4.260.0030.03618.98
5.4.250.0070.03719.07
5.4.240.0030.04219.06
5.4.230.0000.04519.12
5.4.220.0030.04918.97
5.4.210.0170.03119.10
5.4.200.0000.04218.97
5.4.190.0000.03918.86
5.4.180.0000.04219.08
5.4.170.0070.04019.21
5.4.160.0070.03318.96
5.4.150.0130.03719.18
5.4.140.0030.04016.47
5.4.130.0060.03616.87
5.4.120.0030.04016.66
5.4.110.0000.04016.73
5.4.100.0030.03416.75
5.4.90.0030.03616.65
5.4.80.0030.03616.73
5.4.70.0000.03616.61
5.4.60.0030.03816.68
5.4.50.0030.03316.68
5.4.40.0000.04016.64
5.4.30.0030.03416.45
5.4.20.0070.03116.73
5.4.10.0070.03716.45
5.4.00.0070.03015.89
5.3.290.0000.04415.20
5.3.280.0070.04015.20
5.3.270.0000.04815.20
5.3.260.0070.03615.20
5.3.250.0070.04715.20
5.3.240.0070.03315.20
5.3.230.0000.04115.20
5.3.220.0000.04215.20
5.3.210.0030.04315.20
5.3.200.0000.03815.20
5.3.190.0030.03515.20
5.3.180.0100.03215.20
5.3.170.0000.03915.20
5.3.160.0100.02915.20
5.3.150.0030.03415.20
5.3.140.0000.04115.20
5.3.130.0030.04415.20
5.3.120.0000.04015.20
5.3.110.0030.04015.20
5.3.100.0030.04015.20
5.3.90.0060.03515.20
5.3.80.0000.04015.20
5.3.70.0070.03615.20
5.3.60.0030.03815.20
5.3.50.0030.03415.20
5.3.40.0030.03415.20
5.3.30.0030.03515.20
5.3.20.0030.03215.20
5.3.10.0000.03815.20
5.3.00.0000.03915.20
5.2.170.0060.03515.20
5.2.160.0000.03015.20
5.2.150.0000.03315.20
5.2.140.0030.03015.20
5.2.130.0070.03015.20
5.2.120.0000.03715.20
5.2.110.0130.02615.20
5.2.100.0090.02115.20
5.2.90.0070.02315.20
5.2.80.0100.03315.20
5.2.70.0000.03115.20
5.2.60.0000.03315.20
5.2.50.0100.03215.20
5.2.40.0000.03215.20
5.2.30.0030.04315.20
5.2.20.0070.03415.20
5.2.10.0030.02815.20
5.2.00.0000.03115.20
5.1.60.0030.02615.20
5.1.50.0030.02415.20
5.1.40.0030.03015.20
5.1.30.0030.02515.20
5.1.20.0000.02815.20
5.1.10.0060.02215.20
5.1.00.0000.02915.20
5.0.50.0040.02115.20
5.0.40.0030.02315.20
5.0.30.0000.03215.20
5.0.20.0040.01815.20
5.0.10.0000.04615.20
5.0.00.0070.02415.20
4.4.90.0000.01615.20
4.4.80.0040.01515.20
4.4.70.0030.01315.20
4.4.60.0000.01615.20
4.4.50.0000.01615.20
4.4.40.0090.01815.20
4.4.30.0000.02015.20
4.4.20.0030.01515.20
4.4.10.0030.01415.20
4.4.00.0000.02615.20
4.3.110.0000.01815.20
4.3.100.0030.01815.20
4.3.90.0060.02515.20
4.3.80.0000.05815.20
4.3.70.0030.02215.20
4.3.60.0000.01815.20
4.3.50.0030.01415.20
4.3.40.0000.02615.20
4.3.30.0030.01615.20
4.3.20.0030.02015.20
4.3.10.0000.03715.20
4.3.00.0030.01615.20

preferences:
46.03 ms | 401 KiB | 5 Q