3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($a, $b) { return $a[0] <=> $b[0] ?: $a[1] <=> $b[1] ?: $a[2] <=> $b[2] ?: 0; } $array = [ [1, 2, 3], [1, 3, 5], [1, 2, 4], [0, 2, 3], ]; usort($array, foo(...)); print_r($array);

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.0120.00617.79
8.5.20.0100.00720.23
8.5.10.0080.00916.80
8.5.00.0120.00821.75
8.4.180.0100.01321.96
8.4.170.0100.01123.93
8.4.160.0140.00723.95
8.4.150.0080.00516.77
8.4.140.0130.00917.79
8.4.130.0130.00917.56
8.4.120.0040.00520.43
8.4.110.0110.00819.05
8.4.100.0070.00217.77
8.4.90.0130.00817.77
8.4.80.0110.00919.41
8.4.70.0380.00817.63
8.4.60.0380.00817.70
8.4.50.0360.00617.83
8.4.40.0390.01017.67
8.4.30.0400.00717.51
8.4.20.0300.00917.24
8.4.10.0250.00317.53
8.3.300.0130.00720.97
8.3.290.0100.01120.72
8.3.280.0090.01218.62
8.3.270.0140.00516.74
8.3.260.0090.01016.47
8.3.250.0140.00518.71
8.3.240.0120.00718.39
8.3.230.0160.00516.41
8.3.220.0110.00816.69
8.3.210.0210.00316.44
8.3.200.0360.01016.31
8.3.190.0230.00416.54
8.3.180.0400.00716.44
8.3.170.0360.01116.27
8.3.160.0350.01116.24
8.3.150.0440.00716.62
8.3.140.0400.00716.58
8.3.130.0370.00516.20
8.3.120.0390.00916.38
8.3.110.0290.01316.48
8.3.100.0380.00916.40
8.3.90.0380.01016.42
8.3.80.0400.00716.20
8.3.70.0380.00916.59
8.3.60.0400.00816.34
8.3.50.0370.01016.34
8.3.40.0350.01117.46
8.3.30.0260.00817.45
8.3.20.0320.00917.71
8.3.10.0240.00917.67
8.3.00.0190.00517.70
8.2.300.0090.01022.09
8.2.290.0110.00820.80
8.2.280.0210.00316.78
8.2.270.0200.00516.50
8.2.260.0310.00816.59
8.2.250.0300.00916.43
8.2.240.0220.00416.37
8.2.230.0210.00716.20
8.2.220.0230.00416.55
8.2.210.0290.00816.20
8.2.200.0310.00716.51
8.2.190.0330.00816.71
8.2.180.0280.01216.50
8.2.170.0210.00617.81
8.2.160.0170.00717.60
8.2.150.0320.00717.50
8.2.140.0380.00917.54
8.2.130.0330.00717.54
8.2.120.0310.01217.60
8.2.110.0290.00517.54
8.2.100.0320.00717.71
8.2.90.0200.00517.61
8.2.80.0140.00417.59
8.2.70.0320.01017.36
8.2.60.0320.00817.40
8.2.50.0340.00717.48
8.2.40.0230.00717.50
8.2.30.0430.00917.48
8.2.20.0190.00717.45
8.2.10.0260.00917.44
8.2.00.0310.00717.29
8.1.340.0130.00917.68

preferences:
42.13 ms | 876 KiB | 5 Q