3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = [ [1,3,5], [2,1,7], [3,5,9], [2,1,8] ]; $comparison = function ($a,$b) { // sort by index 1 first if($a[1] < $b[1]) return -1; if($a[1] > $b[1]) return 1; // if equal, sort by index 0 if($a[0] < $b[0]) return -1; if($a[0] > $b[0]) return 1; // otherwise sort by index 2 if($a[2] < $b[2]) return -1; if($a[2] > $b[2]) return 1; return 0; }; usort($test,$comparison); var_dump($test);

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.0150.00016.73
8.3.50.0100.00718.30
8.3.40.0110.00318.71
8.3.30.0120.00318.55
8.3.20.0100.00020.16
8.3.10.0000.00721.78
8.3.00.0040.00419.25
8.2.180.0140.00416.63
8.2.170.0070.00722.96
8.2.160.0070.00719.23
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00020.35
8.2.120.0040.00426.35
8.2.110.0040.00419.24
8.2.100.0110.00018.03
8.2.90.0060.00319.17
8.2.80.0030.00617.97
8.2.70.0030.00617.75
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0050.00322.34
8.2.30.0040.00419.34
8.2.20.0000.00718.13
8.2.10.0040.00418.23
8.2.00.0000.00718.33
8.1.280.0070.00725.92
8.1.270.0050.00323.84
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0000.01121.28
8.1.230.0090.00317.89
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0030.00617.47
8.1.190.0060.00317.35
8.1.180.0030.00618.10
8.1.170.0050.00518.59
8.1.160.0070.00018.98
8.1.150.0000.00720.17
8.1.140.0000.00819.49
8.1.130.0000.00719.03
8.1.120.0050.00317.38
8.1.110.0040.00417.33
8.1.100.0000.00717.48
8.1.90.0040.00417.39
8.1.80.0040.00417.43
8.1.70.0000.00717.49
8.1.60.0000.01117.63
8.1.50.0020.00517.50
8.1.40.0030.00617.54
8.1.30.0030.00517.60
8.1.20.0040.00417.66
8.1.10.0040.00417.64
8.1.00.0080.00017.57
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0070.00018.39
8.0.270.0030.00317.11
8.0.260.0000.00818.93
8.0.250.0040.00416.89
8.0.240.0040.00416.78
8.0.230.0070.00016.92
8.0.220.0040.00416.84
8.0.210.0000.00716.84
8.0.200.0000.00716.95
8.0.190.0020.01017.02
8.0.180.0040.00416.93
8.0.170.0000.00816.81
8.0.160.0000.00716.92
8.0.150.0050.00216.92
8.0.140.0050.00316.75
8.0.130.0000.00613.34
8.0.120.0070.00016.83
8.0.110.0040.00416.93
8.0.100.0000.00716.79
8.0.90.0040.00416.90
8.0.80.0070.00716.91
8.0.70.0040.00416.86
8.0.60.0070.00016.81
8.0.50.0000.00716.85
8.0.30.0090.00916.92
8.0.20.0090.01117.40
8.0.10.0070.00017.09
8.0.00.0070.01016.74
7.4.330.0080.00015.55
7.4.320.0000.00616.51
7.4.300.0060.00016.53
7.4.290.0070.00016.51
7.4.280.0070.00016.45
7.4.270.0000.00716.42
7.4.260.0030.00616.49
7.4.250.0050.00316.38
7.4.240.0000.00716.62
7.4.230.0000.00816.52
7.4.220.0070.01116.62
7.4.210.0070.00716.48
7.4.200.0070.00016.68
7.4.160.0110.00516.66
7.4.150.0140.00417.40
7.4.140.0070.01217.86
7.4.130.0060.01116.31
7.4.120.0090.01516.38
7.4.110.0070.01316.48
7.4.100.0090.00916.36
7.4.90.0140.00316.38
7.4.80.0110.01419.39
7.4.70.0100.00716.61
7.4.60.0080.00816.48
7.4.50.0030.01216.46
7.4.40.0100.00716.61
7.4.30.0030.01316.50
7.4.00.0050.01114.92
7.3.330.0030.00313.24
7.3.320.0050.00013.09
7.3.310.0000.00716.27
7.3.300.0070.00016.36
7.3.290.0050.01116.26
7.3.280.0090.01016.24
7.3.270.0090.01617.40
7.3.260.0070.01416.61
7.3.240.0090.01016.38
7.3.230.0100.00916.60
7.3.210.0110.00716.42
7.3.200.0130.00316.48
7.3.190.0100.01016.43
7.3.180.0110.00516.49
7.3.170.0040.01416.59
7.3.160.0060.01016.29
7.3.120.0060.01014.70
7.3.110.0070.01114.91
7.3.100.0120.00614.91
7.3.90.0030.01014.80
7.3.80.0030.00714.88
7.3.70.0090.00314.65
7.3.60.0110.00714.82
7.3.50.0030.00914.77
7.3.40.0030.00714.59
7.3.30.0070.00714.86
7.3.20.0060.00916.51
7.3.10.0060.01016.65
7.3.00.0100.00716.63
7.2.330.0070.01116.50
7.2.320.0110.00716.48
7.2.310.0070.01016.53
7.2.300.0090.00916.55
7.2.290.0120.00516.54
7.2.250.0070.01114.68
7.2.240.0100.01014.84
7.2.230.0090.01215.20
7.2.220.0070.00714.79
7.2.210.0060.00314.61
7.2.200.0040.00714.96
7.2.190.0060.00615.09
7.2.180.0100.00714.91
7.2.170.0060.00615.08
7.2.110.0160.00816.60
7.2.60.0000.01016.73
7.2.50.0260.00717.04
7.1.330.0070.00715.78
7.1.320.0000.01315.54
7.1.310.0070.01015.74
7.1.300.0090.00015.79
7.1.290.0040.00715.63
7.1.280.0060.00915.52
7.1.270.0040.00415.53
7.1.260.0090.00615.71
7.1.200.0040.00815.50
7.1.70.0090.00617.29
7.1.60.0070.00416.82
7.1.40.0230.01734.32
7.1.30.0300.00734.36
7.1.20.0200.00734.39
7.1.10.0070.00716.43
7.1.00.0030.01016.54
7.0.200.0090.00616.40
7.0.180.0000.01716.04
7.0.170.0030.01316.05
7.0.160.0000.01316.21
7.0.150.0070.00715.93
7.0.140.0000.01316.23
7.0.130.0030.01016.36
7.0.120.0100.00316.34
7.0.110.0100.00716.12
7.0.100.0000.01316.33
7.0.90.0000.01316.10
7.0.80.0030.01316.18
7.0.70.0000.01716.09
7.0.60.0100.00316.02
7.0.50.0000.01016.21
7.0.40.0070.01016.41
7.0.30.0070.00716.45
7.0.20.0030.01016.18
7.0.10.0030.01016.16
7.0.00.0030.01016.01

preferences:
59.97 ms | 400 KiB | 5 Q