3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array( 'nome' => 'Alexandre', 'idade' => '65' ), array( 'nome' => 'Alex', 'idade' => '33' ), array( 'nome' => 'Zezinha', 'idade' => '29' ), array( 'nome' => 'Rosana', 'idade' => '64' ) ); function Ordena_Array ($array, $campo) { // Compara se $a é maior que $b $callback = function ($a, $b) use ($campo) { return $a[$campo] > $b[$campo]; }; // Ordena usort($array, $callback); return $array; } // Mostra os valores print_r( Ordena_Array ($array, "nome") );

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.10.0100.01019.49
8.3.140.0040.01116.75
8.3.130.0000.01018.59
8.3.120.0050.00320.88
8.3.110.0040.01220.94
8.3.100.0060.00316.84
8.3.90.0100.00026.77
8.3.80.0060.00316.88
8.3.70.0090.01218.41
8.3.60.0100.00718.31
8.3.50.0110.00818.35
8.3.40.0040.01218.82
8.3.30.0120.00318.88
8.3.20.0040.00418.90
8.3.10.0040.00423.71
8.3.00.0040.00421.89
8.2.250.0050.00318.40
8.2.240.0110.00718.99
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0110.00826.77
8.2.200.0060.00316.50
8.2.190.0000.01516.58
8.2.180.0090.00625.92
8.2.170.0070.00722.96
8.2.160.0110.00719.29
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00321.13
8.2.120.0040.00426.35
8.2.110.0070.00319.45
8.2.100.0070.00418.03
8.2.90.0050.00220.58
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0050.00318.22
8.2.50.0030.00518.10
8.2.40.0030.00519.33
8.2.30.0000.00720.54
8.2.20.0000.00718.23
8.2.10.0040.00418.37
8.2.00.0080.00019.50
8.1.300.0090.00918.11
8.1.290.0080.00430.84
8.1.280.0070.00725.92
8.1.270.0000.00820.82
8.1.260.0110.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00619.20
8.1.230.0040.00720.92
8.1.220.0030.00517.79
8.1.210.0000.00719.05
8.1.200.0030.00617.25
8.1.190.0000.00917.23
8.1.180.0100.00018.10
8.1.170.0000.00818.71
8.1.160.0060.00318.81
8.1.150.0030.00618.89
8.1.140.0090.00020.70
8.1.130.0050.00220.26
8.1.120.0020.00517.36
8.1.110.0000.00817.50
8.1.100.0040.00417.43
8.1.90.0000.00717.42
8.1.80.0000.00717.45
8.1.70.0050.00317.33
8.1.60.0060.00317.57
8.1.50.0000.00817.49
8.1.40.0040.00417.54
8.1.30.0070.00317.48
8.1.20.0040.00417.51
8.1.10.0050.00317.45
8.1.00.0030.00517.40
8.0.300.0030.00620.02
8.0.290.0000.00816.63
8.0.280.0030.00318.45
8.0.270.0070.00017.28
8.0.260.0030.00720.20
8.0.250.0080.00016.99
8.0.240.0030.00317.06
8.0.230.0030.00317.06
8.0.220.0000.00716.96
8.0.210.0030.00316.87
8.0.200.0040.00417.07
8.0.190.0040.00417.04
8.0.180.0000.00716.96
8.0.170.0090.00016.91
8.0.160.0030.00516.96
8.0.150.0040.00416.91
8.0.140.0000.01216.88
8.0.130.0030.00313.44
8.0.120.0030.00516.82
8.0.110.0090.00016.93
8.0.100.0040.00416.99
8.0.90.0030.00316.98
8.0.80.0040.01016.94
8.0.70.0080.00016.90
8.0.60.0000.00716.91
8.0.50.0040.00416.82
8.0.30.0140.00517.13
8.0.20.0070.01217.40
8.0.10.0000.00717.20
8.0.00.0120.00616.82
7.4.330.0000.00515.55
7.4.320.0000.00716.62
7.4.300.0040.00416.50
7.4.290.0030.00316.54
7.4.280.0000.00916.45
7.4.270.0030.00316.43
7.4.260.0050.00216.40
7.4.250.0000.00816.39
7.4.240.0040.00416.66
7.4.230.0030.00316.60
7.4.220.0000.00716.41
7.4.210.0050.01316.63
7.4.200.0030.00316.67
7.4.160.0080.00916.38
7.4.140.0110.00817.86
7.4.130.0100.01016.44
7.4.120.0140.00816.64
7.4.110.0170.00616.59
7.4.100.0030.01416.73
7.4.90.0030.01516.52
7.4.80.0130.00319.39
7.4.70.0130.01016.45
7.4.60.0060.00916.63
7.4.50.0070.01016.40
7.4.40.0100.00716.64
7.4.00.0070.01014.91
7.3.330.0100.00313.30
7.3.320.0050.00013.22
7.3.310.0000.00716.15
7.3.300.0000.00716.23
7.3.290.0000.00616.21
7.3.280.0070.00816.28
7.3.260.0100.01116.38
7.3.240.0090.01016.45
7.3.230.0140.00316.63
7.3.210.0140.00716.41
7.3.200.0090.00616.49
7.3.190.0110.01116.36
7.3.180.0110.00616.30
7.3.170.0000.01616.27
7.3.160.0160.00016.43
7.3.120.0070.01114.81
7.3.110.0040.00914.82
7.3.100.0090.00814.87
7.3.90.0060.00814.84
7.3.80.0030.01014.97
7.3.70.0080.00514.67
7.3.60.0050.00714.78
7.3.50.0070.00914.71
7.3.40.0050.01114.80
7.3.30.0060.00714.81
7.3.20.0060.00716.52
7.3.10.0080.00516.59
7.3.00.0080.00616.60
7.2.330.0040.01316.54
7.2.320.0130.01016.59
7.2.310.0070.01016.74
7.2.300.0100.01416.66
7.2.290.0050.01116.80
7.2.250.0090.01015.06
7.2.240.0080.01015.04
7.2.230.0050.00915.01
7.2.220.0060.00714.86
7.2.210.0040.01215.01
7.2.200.0040.01114.94
7.2.190.0070.00614.98
7.2.180.0060.00814.94
7.2.170.0060.00715.11
7.2.160.0070.01014.81
7.2.150.0060.00916.82
7.2.140.0090.00616.91
7.2.130.0080.00816.70
7.2.120.0070.00716.63
7.2.110.0070.00816.73
7.2.100.0110.00716.79
7.2.90.0110.00516.16
7.2.80.0080.01116.06
7.2.70.0090.00816.08
7.2.60.0450.00416.13
7.2.50.0210.00816.15
7.2.40.2810.00816.07
7.2.30.1740.00916.20
7.2.20.1700.01016.19
7.2.10.1480.00816.21
7.2.00.0080.01016.22
7.1.330.0050.00915.69
7.1.320.0060.00815.67
7.1.310.0060.00615.92
7.1.300.0070.00615.85
7.1.290.0060.00715.79
7.1.280.0050.00615.71
7.1.270.0060.00515.89
7.1.260.0050.00715.88
7.1.250.0100.00515.74
7.1.240.0110.00515.74
7.1.230.0050.00915.71
7.1.220.0050.01015.74
7.1.210.0080.00715.04
7.1.200.0100.00714.98
7.1.190.0290.00615.18
7.1.180.0330.00515.07
7.1.170.0090.00715.13
7.1.160.2610.00915.05
7.1.150.2070.00915.22
7.1.140.1500.00715.19
7.1.130.1290.00914.99
7.1.120.0100.00615.16
7.1.110.0100.00415.15
7.1.100.0150.00515.17
7.1.90.2170.00615.06
7.1.80.1960.00915.15
7.1.70.1950.00614.96
7.1.60.1790.00721.09
7.1.50.2690.00421.08
7.1.40.3110.00621.07
7.1.30.2590.01021.09
7.1.20.2310.00421.14
7.1.10.2040.00815.05
7.1.00.1490.01014.99
7.0.330.0070.00915.30
7.0.320.0060.00315.51
7.0.310.0120.00315.24
7.0.300.0040.00815.42
7.0.290.0090.00015.38
7.0.280.0080.00415.33
7.0.270.0080.00315.39
7.0.260.0030.00915.29
7.0.250.0030.00915.11
7.0.240.0080.00415.32
7.0.230.0070.01015.23
7.0.220.0090.00615.55
7.0.210.0030.00615.35
7.0.200.0090.00015.25
7.0.190.0000.01315.32
7.0.180.0030.00615.37
7.0.170.0040.00715.15
7.0.160.0060.00615.48
7.0.150.0080.00815.44
7.0.140.0130.00015.30
7.0.130.0060.00615.45
7.0.120.0030.01015.34
7.0.110.0080.00415.41
7.0.100.0030.00615.39
7.0.90.0060.01215.44
7.0.80.0100.00014.96
7.0.70.0030.00715.27
7.0.60.0030.01015.38
7.0.50.0090.00615.41
7.0.40.0080.00413.18
7.0.30.0130.00313.37
7.0.20.0060.01213.24
7.0.10.0090.00313.24
7.0.00.0100.00713.24
5.6.400.0130.00314.25
5.6.390.0110.00314.44
5.6.380.0050.00814.43
5.6.370.0070.01014.49
5.6.360.0030.01014.10
5.6.350.0060.00914.17
5.6.340.0060.01014.41
5.6.330.0000.01614.70
5.6.320.0060.01014.65
5.6.310.0030.00714.22
5.6.300.0080.00314.30
5.6.290.0070.00713.99
5.6.280.0110.00414.13
5.6.270.0060.00614.55
5.6.260.0070.00714.65
5.6.250.0030.01014.30
5.6.240.0000.01714.32
5.6.230.0100.00714.26
5.6.220.0030.00914.45
5.6.210.0130.00014.32
5.6.200.0060.00314.32
5.6.190.0060.00914.75
5.6.180.0030.01014.42
5.6.170.0000.00914.37
5.6.160.0060.00914.46
5.6.150.0090.00614.39
5.6.140.0060.00914.50
5.6.130.0060.00614.10
5.6.120.0040.01214.64
5.6.110.0100.00313.90
5.6.100.0070.00714.16
5.6.90.0110.00414.59
5.6.80.0090.00614.33
5.6.70.0060.00914.36
5.6.60.0090.00014.16
5.6.50.0040.01114.58
5.6.40.0030.01014.23
5.6.30.0030.01014.13
5.6.20.0000.01814.23
5.6.10.0030.01314.00
5.6.00.0030.01014.54

preferences:
33.88 ms | 403 KiB | 5 Q