3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array(2, false), array(2, true), array(3, false), array(8, true), array(4, false), ); usort($arr, function ($a, $b){ if ($a[0] == $b[0]) { return 0; } return (intval($a[1]) > intval($b[1])) ? -1 : (($a[0] > $b[0]) ? -1 : 1); }); print_r($arr);

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.5.30.0080.01017.71
8.5.20.0130.00519.45
8.5.10.0110.00719.13
8.5.00.0130.01019.83
8.4.180.0060.00519.79
8.4.170.0150.00821.87
8.4.160.0130.01122.03
8.4.150.0060.00616.78
8.4.140.0190.00517.62
8.4.130.0060.00318.89
8.4.120.0120.00820.70
8.4.110.0140.00817.91
8.4.100.0140.00717.92
8.4.90.0140.00620.59
8.4.80.0040.00520.64
8.4.70.0120.00918.84
8.4.60.0150.00620.69
8.4.50.0040.00520.36
8.4.40.0120.00317.84
8.4.30.0090.00620.52
8.4.20.0160.00317.92
8.4.10.0000.00819.44
8.3.300.0120.00818.52
8.3.290.0120.00820.62
8.3.280.0130.00718.39
8.3.270.0140.00516.78
8.3.260.0140.00716.41
8.3.250.0130.00516.46
8.3.240.0130.00716.64
8.3.230.0040.00516.80
8.3.220.0090.01018.86
8.3.210.0100.00916.61
8.3.200.0040.00516.70
8.3.190.0040.00619.00
8.3.180.0140.00318.93
8.3.170.0110.00818.95
8.3.160.0120.00618.42
8.3.150.0070.00716.62
8.3.140.0000.00818.79
8.3.130.0040.00416.70
8.3.120.0000.00818.96
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0060.00319.36
8.3.70.0080.00818.43
8.3.60.0120.00616.63
8.3.50.0080.00923.67
8.3.40.0070.00718.80
8.3.30.0110.00318.73
8.3.20.0040.00421.89
8.3.10.0080.00021.73
8.3.00.0000.00821.77
8.2.300.0110.01022.17
8.2.290.0030.00616.79
8.2.280.0130.00818.43
8.2.270.0120.00318.34
8.2.260.0040.01117.29
8.2.250.0100.00616.84
8.2.240.0040.00416.97
8.2.230.0080.00022.58
8.2.220.0030.00637.54
8.2.210.0110.00326.77
8.2.200.0030.00718.88
8.2.190.0140.00716.85
8.2.180.0140.00418.54
8.2.170.0090.00922.96
8.2.160.0030.01020.52
8.2.150.0000.00824.18
8.2.140.0150.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0000.01022.26
8.2.100.0030.00919.45
8.2.90.0030.00618.22
8.2.80.0040.00419.39
8.2.70.0000.00817.71
8.2.60.0050.00317.50
8.2.50.0030.00518.05
8.2.40.0050.00318.34
8.2.30.0070.00019.36
8.2.20.0040.00418.24
8.2.10.0050.00319.30
8.2.00.0000.00719.38
8.1.340.0140.00819.55
8.1.330.0110.00715.98
8.1.320.0130.00617.85
8.1.310.0120.00316.55
8.1.300.0070.01120.33
8.1.290.0000.00830.84
8.1.280.0030.01025.92
8.1.270.0050.00321.96
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.46
8.1.230.0070.00420.92
8.1.220.0070.00017.76
8.1.210.0040.00418.96
8.1.200.0030.00517.66
8.1.190.0040.00417.23
8.1.180.0040.00718.10
8.1.170.0050.00317.62
8.1.160.0000.00718.90
8.1.150.0000.00818.89
8.1.140.0030.00320.65
8.1.130.0070.00020.33
8.1.120.0000.00717.48
8.1.110.0000.00817.45
8.1.100.0060.00317.50
8.1.90.0030.00317.38
8.1.80.0040.00417.45
8.1.70.0000.00717.38
8.1.60.0030.00617.56
8.1.50.0040.00417.50
8.1.40.0060.00317.54
8.1.30.0000.00817.66
8.1.20.0050.00317.64
8.1.10.0110.00017.61
8.1.00.0040.00417.52
8.0.300.0000.00819.82
8.0.290.0000.00716.75
8.0.280.0000.00718.41
8.0.270.0080.00017.96
8.0.260.0000.00619.93
8.0.250.0030.00316.93
8.0.240.0030.00316.86
8.0.230.0050.00216.94
8.0.220.0100.00016.78
8.0.210.0000.00716.97
8.0.200.0060.00016.92
8.0.190.0000.00716.88
8.0.180.0050.00316.82
8.0.170.0030.00616.80
8.0.160.0060.00316.86
8.0.150.0040.00416.77
8.0.140.0000.00716.91
8.0.130.0050.00013.30
8.0.120.0090.00016.86
8.0.110.0040.00416.89
8.0.100.0000.00816.86
8.0.90.0030.00616.86
8.0.80.0130.00616.87
8.0.70.0070.00016.89
8.0.60.0080.00016.79
8.0.50.0040.00416.77
8.0.30.0080.00817.27
8.0.20.0130.00917.38
8.0.10.0000.00716.83
8.0.00.0060.01216.64
7.4.330.0050.00016.77
7.4.320.0000.00616.61
7.4.300.0060.00016.54
7.4.290.0070.00016.52
7.4.280.0050.00316.36
7.4.270.0030.00316.62
7.4.260.0060.00013.31
7.4.250.0020.00516.48
7.4.240.0070.00016.52
7.4.230.0000.00716.61
7.4.220.0050.00216.51
7.4.210.0090.00616.71
7.4.200.0040.00416.63
7.4.140.0080.00917.86
7.4.130.0050.01816.51
7.4.120.0070.01016.42
7.4.110.0100.00716.51
7.4.100.0130.00316.54
7.4.90.0070.01016.43
7.4.80.0060.01419.39
7.4.70.0090.00716.42
7.4.60.0120.00916.47
7.4.50.0100.00416.55
7.4.40.0060.01116.47
7.4.20.0080.01116.55
7.4.10.0110.00816.34
7.4.00.0120.00616.43
7.3.330.0030.00316.19
7.3.320.0050.00013.09
7.3.310.0070.00016.17
7.3.300.0000.00716.29
7.3.290.0070.00816.31
7.3.260.0000.01716.35
7.3.240.0090.01116.47
7.3.230.0060.00916.32
7.3.210.0180.00516.45
7.3.200.0130.00316.56
7.3.190.0130.00316.38
7.3.180.0080.01216.45
7.3.170.0060.01316.44
7.3.160.0060.01716.62
7.3.130.0040.01616.16
7.3.120.0140.00716.30
7.3.110.0060.01216.30
7.3.100.0100.01316.14
7.3.90.0130.00416.27
7.3.80.0080.01416.37
7.3.70.0040.01516.34
7.3.60.0100.00716.32
7.3.50.0030.01416.31
7.3.40.0070.01016.29
7.3.30.0090.00616.46
7.3.20.0130.01016.31
7.3.10.0130.01016.25
7.3.00.0030.01716.27
7.2.330.0040.01416.82
7.2.320.0110.00716.54
7.2.310.0060.01016.74
7.2.300.0120.00916.56
7.2.290.0110.01116.53
7.2.260.0000.01816.50
7.2.250.0040.01316.60
7.2.240.0090.00916.37
7.2.230.0070.01016.56
7.2.220.0110.00716.27
7.2.210.0200.00416.52
7.2.200.0070.01016.56
7.2.190.0060.00916.42
7.2.180.0100.00716.44
7.2.170.0060.01116.52
7.2.160.0150.00616.54
7.2.150.0180.00616.50
7.2.140.0150.00316.76
7.2.130.0100.01016.71
7.2.120.0170.00016.73
7.2.110.0100.00716.73
7.2.100.0090.00816.54
7.2.90.0150.00616.40
7.2.80.0110.00816.66
7.2.70.0060.01216.48
7.2.60.0100.00716.52
7.2.50.0100.00716.71
7.2.40.0080.01516.71
7.2.30.0130.00616.61
7.2.20.0030.02116.58
7.2.10.0060.01216.68
7.2.00.0130.00616.58

preferences:
45.82 ms | 1563 KiB | 5 Q