3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['foo-test' => [1], '-' => [2], 'bar-test' => [3]]; uksort($a, function($x, $y) use (&$a) { echo $x, PHP_EOL; // var_dump($a); if (!isset($a[$x])) { throw new Exception("Key '{$x}' not found."); } if (!isset($a[$y])) { throw new Exception("Key '{$y}' not found."); } return $x < $y; });

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.0040.01116.88
8.3.50.0120.00616.38
8.3.40.0040.01118.58
8.3.30.0000.01418.67
8.3.20.0040.00420.12
8.3.10.0040.00423.52
8.3.00.0050.00523.66
8.2.180.0080.00816.88
8.2.170.0060.00822.96
8.2.160.0100.00320.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00021.11
8.2.120.0050.00226.35
8.2.110.0060.00322.04
8.2.100.0040.00717.84
8.2.90.0040.00419.17
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0030.00618.16
8.2.40.0040.00420.44
8.2.30.0030.00519.49
8.2.20.0040.00417.69
8.2.10.0040.00418.10
8.2.00.0050.00218.11
8.1.280.0110.00725.92
8.1.270.0160.00322.19
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0040.00423.92
8.1.230.0070.00422.17
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0120.00017.13
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0050.00318.55
8.1.160.0040.00418.91
8.1.150.0000.00720.79
8.1.140.0040.00419.63
8.1.130.0080.00017.69
8.1.120.0040.00417.51
8.1.110.0020.00517.36
8.1.100.0000.00817.40
8.1.90.0020.00517.33
8.1.80.0030.00617.35
8.1.70.0070.00017.45
8.1.60.0040.00417.59
8.1.50.0060.00317.36
8.1.40.0040.00417.59
8.1.30.0040.00417.61
8.1.20.0080.00017.62
8.1.10.0050.00317.57
8.1.00.0040.00417.40
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0000.00718.32
8.0.270.0040.00417.26
8.0.260.0000.00717.19
8.0.250.0070.00017.03
8.0.240.0080.00017.01
8.0.230.0040.00416.90
8.0.220.0070.00016.83
8.0.210.0040.00316.91
8.0.200.0060.00017.01
8.0.190.0040.00417.02
8.0.180.0040.00416.96
8.0.170.0030.00516.96
8.0.160.0030.00716.93
8.0.150.0070.00016.91
8.0.140.0000.00716.80
8.0.130.0030.00313.32
8.0.120.0000.00816.90
8.0.110.0040.00416.98
8.0.100.0000.00816.77
8.0.90.0050.00216.82
8.0.80.0000.01617.01
8.0.70.0060.00316.99
8.0.60.0040.00416.99
8.0.50.0040.00416.92
8.0.30.0090.01017.02
8.0.20.0150.00417.40
8.0.10.0000.00717.10
8.0.00.0090.00916.91
7.4.330.0050.00016.71
7.4.320.0060.00016.43
7.4.300.0030.00316.65
7.4.290.0040.00716.44
7.4.280.0030.00616.60
7.4.270.0030.00316.48
7.4.260.0030.00316.50
7.4.250.0070.00016.40
7.4.240.0000.00716.42
7.4.230.0000.00716.63
7.4.220.0060.01216.54
7.4.210.0030.01316.62
7.4.200.0030.00316.49
7.4.160.0070.01016.59
7.4.150.0070.01017.40
7.4.140.0080.01417.86
7.4.130.0160.00316.57
7.4.120.0070.01016.53
7.4.110.0070.01116.43
7.4.100.0040.01316.55
7.4.90.0030.01316.43
7.4.80.0030.01619.39
7.4.70.0100.00716.36
7.4.60.0120.00616.48
7.4.50.0060.00916.44
7.4.40.0120.00816.63
7.4.30.0110.00716.58
7.4.00.0040.01114.90
7.3.330.0000.00813.16
7.3.320.0030.00313.29
7.3.310.0000.00816.19
7.3.300.0030.00316.16
7.3.290.0090.00916.31
7.3.280.0110.00716.28
7.3.270.0060.01217.40
7.3.260.0150.00316.62
7.3.250.0100.00816.45
7.3.240.0140.00616.46
7.3.230.0150.00316.39
7.3.210.0100.00716.63
7.3.200.0120.00619.39
7.3.190.0140.00316.31
7.3.180.0130.00316.63
7.3.170.0090.00916.67
7.3.160.0090.00616.43
7.2.330.0070.01016.80
7.2.320.0030.01416.39
7.2.310.0170.00316.43
7.2.300.0100.00716.64
7.2.290.0090.00916.47
7.2.80.0030.00916.63
7.2.60.0000.01316.79
7.2.00.0060.00619.50
7.1.200.0080.00815.91
7.1.100.0000.00918.05
7.1.70.0000.00817.24
7.1.60.0070.01719.40
7.1.50.0040.01416.60
7.1.00.0030.07722.43
7.0.200.0410.00314.90
7.0.60.0100.04321.81
7.0.50.0070.07317.99
7.0.40.0130.06320.21
7.0.30.0330.07320.06
7.0.20.0330.08320.16
7.0.10.0030.04720.07
7.0.00.0070.04720.05
5.6.280.0030.07320.93
5.6.210.0200.05720.68
5.6.200.0100.06318.27
5.6.190.0070.04320.49
5.6.180.0270.03720.67
5.6.170.0200.04720.57
5.6.160.0070.06320.43
5.6.150.0000.07718.24
5.6.140.0000.08018.18
5.6.130.0130.07318.16
5.6.120.0130.07021.05
5.6.110.0130.05320.95
5.6.100.0230.06721.11
5.6.90.0170.07321.09
5.6.80.0070.04020.34
5.5.350.0100.08020.37
5.5.340.0030.04717.94
5.5.330.0100.05020.37
5.5.320.0500.07020.27
5.5.310.0270.06720.27
5.5.300.0070.08017.97
5.5.290.0070.08317.95
5.5.280.0070.05720.66
5.5.270.0030.08720.87
5.5.260.0100.06320.87
5.5.250.0100.08020.58
5.5.240.0230.06320.13

preferences:
47.66 ms | 401 KiB | 5 Q