3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass { private $a = [ 'foo-test' => [1], '-' => [2], 'bar-test' => [3] ]; private function _mySort($x, $y) { var_dump($this->a); return $x < $y; } public function __construct() { uksort($this->a, [$this, '_mySort']); } } new myClass();

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.0100.01016.63
8.3.50.0120.00416.29
8.3.40.0120.00318.66
8.3.30.0120.00318.44
8.3.20.0040.00420.29
8.3.10.0080.00023.61
8.3.00.0080.00021.95
8.2.180.0180.00318.30
8.2.170.0150.00022.96
8.2.160.0170.00320.38
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00021.18
8.2.120.0040.00426.35
8.2.110.0040.00821.03
8.2.100.0060.00618.05
8.2.90.0000.00919.26
8.2.80.0060.00317.97
8.2.70.0100.00017.37
8.2.60.0030.00517.92
8.2.50.0000.00918.09
8.2.40.0040.00422.36
8.2.30.0000.00719.29
8.2.20.0030.00617.67
8.2.10.0000.00817.98
8.2.00.0030.00518.07
8.1.270.0050.00322.05
8.1.260.0000.00828.09
8.1.250.0080.00028.09
8.1.240.0060.00322.10
8.1.230.0000.01117.70
8.1.220.0030.00617.74
8.1.210.0070.00418.77
8.1.200.0030.00617.13
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0080.00018.70
8.1.160.0040.00420.70
8.1.150.0000.00718.94
8.1.140.0000.00819.56
8.1.130.0000.00717.63
8.1.120.0070.00017.38
8.1.110.0030.00317.25
8.1.100.0040.00417.37
8.1.90.0040.00417.38
8.1.80.0040.00417.32
8.1.70.0000.00717.40
8.1.60.0040.00417.40
8.1.50.0060.00317.37
8.1.40.0030.00517.35
8.1.30.0040.00417.57
8.1.20.0040.00417.43
8.1.10.0080.00017.55
8.1.00.0050.00317.43
8.0.300.0050.00518.77
8.0.290.0070.00016.75
8.0.280.0070.00018.44
8.0.270.0030.00317.18
8.0.260.0050.00317.25
8.0.250.0000.00716.94
8.0.240.0040.00417.01
8.0.230.0030.00316.96
8.0.220.0000.00716.84
8.0.210.0000.00716.90
8.0.200.0000.00616.79
8.0.190.0000.00816.85
8.0.180.0040.00416.92
8.0.170.0030.00516.98
8.0.160.0040.00416.96
8.0.150.0000.00716.88
8.0.140.0040.00416.88
8.0.130.0030.00313.36
8.0.120.0000.00816.88
8.0.110.0060.00316.88
8.0.100.0050.00316.93
8.0.90.0070.00016.79
8.0.80.0070.01016.94
8.0.70.0040.00416.91
8.0.60.0050.00216.91
8.0.50.0060.00317.01
8.0.30.0100.00917.17
8.0.20.0120.01017.40
8.0.10.0040.00417.04
8.0.00.0130.00816.81
7.4.330.0000.00516.67
7.4.320.0060.00016.46
7.4.300.0000.00916.49
7.4.290.0040.00416.55
7.4.280.0070.00016.50
7.4.270.0030.00316.55
7.4.260.0030.00316.45
7.4.250.0000.00816.43
7.4.240.0000.00716.50
7.4.230.0030.00316.58
7.4.220.0180.00316.48
7.4.210.0110.00616.54
7.4.200.0070.00016.32
7.4.160.0160.00016.46
7.4.150.0090.00917.40
7.4.140.0120.01417.86
7.4.130.0130.00816.52
7.4.120.0060.01216.51
7.4.110.0130.01016.52
7.4.100.0150.00316.43
7.4.90.0120.01216.61
7.4.80.0110.00819.39
7.4.70.0130.00316.51
7.4.60.0150.00316.55
7.4.50.0070.01116.38
7.4.40.0130.00516.48
7.4.30.0110.00616.66
7.4.00.0110.00714.87
7.3.330.0080.00013.20
7.3.320.0000.00513.17
7.3.310.0030.00316.29
7.3.300.0070.00016.30
7.3.290.0040.00416.19
7.3.280.0100.00716.31
7.3.270.0050.01917.40
7.3.260.0070.01716.23
7.3.250.0110.00816.24
7.3.240.0120.00716.33
7.3.230.0030.01516.40
7.3.210.0120.00616.27
7.3.200.0140.00319.39
7.3.190.0050.01516.41
7.3.180.0100.00716.27
7.3.170.0120.01216.44
7.3.160.0080.00816.44
7.2.330.0080.01016.39
7.2.320.0120.00616.68
7.2.310.0190.00316.63
7.2.300.0100.01416.73
7.2.290.0080.00816.66
7.2.60.0100.00316.79
7.2.00.0120.00619.37
7.1.200.0040.00415.82
7.1.100.0060.01318.21
7.1.70.0000.00817.34
7.1.60.0100.01319.40
7.1.50.0070.01017.07
7.1.00.0070.07322.28
7.0.200.0450.00914.46
7.0.60.0170.08021.81
7.0.50.0030.04017.72
7.0.40.0070.08320.40
7.0.30.0200.08020.07
7.0.20.0330.07320.12
7.0.10.0070.04020.20
7.0.00.0170.08020.23
5.6.280.0070.05320.99
5.6.210.0030.08720.55
5.6.200.0100.07318.29
5.6.190.0030.05320.64
5.6.180.0330.07320.67
5.6.170.0300.05320.56
5.6.160.0170.07720.44
5.6.150.0070.04018.13
5.6.140.0000.04718.18
5.6.130.0000.07718.27
5.6.120.0030.04321.15
5.6.110.0130.06721.04
5.6.100.0100.05721.13
5.6.90.0100.08321.04
5.6.80.0070.04020.37
5.5.350.0130.07020.39
5.5.340.0100.07317.99
5.5.330.0030.09020.32
5.5.320.0470.04320.32
5.5.310.0270.05020.35
5.5.300.0000.05317.90
5.5.290.0100.05317.98
5.5.280.0030.08320.78
5.5.270.0070.04020.77
5.5.260.0200.05320.65
5.5.250.0100.06020.61
5.5.240.0170.07720.29

preferences:
54.87 ms | 400 KiB | 5 Q