3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( "texas" => array( "withers field B" => array("name" => "beam pump 3"), "z should go second" => array("name" => "beam pump 2"), "a should go first" => array("name" =>"beam pump 1") ) ); function multiLevelSort($arr) { if (is_array($arr)) { ksort($arr); foreach($arr as $value) { $value = multiLevelSort($value); } } return $arr; } echo("hello"); $test = multiLevelSort($test); echo(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.70.0070.00716.63
8.3.60.0110.00418.18
8.3.50.0080.00822.91
8.3.40.0140.00718.71
8.3.30.0100.00318.98
8.3.20.0040.00420.34
8.3.10.0050.00323.61
8.3.00.0050.00319.66
8.2.180.0070.00718.25
8.2.170.0140.00322.96
8.2.160.0090.00619.21
8.2.150.0040.00724.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00820.85
8.2.110.0060.00322.11
8.2.100.0070.00419.41
8.2.90.0040.00419.24
8.2.80.0080.00019.32
8.2.70.0030.00617.50
8.2.60.0030.00617.93
8.2.50.0060.00318.07
8.2.40.0000.00918.34
8.2.30.0040.00418.07
8.2.20.0040.00417.74
8.2.10.0040.00418.23
8.2.00.0040.00417.75
8.1.280.0060.00925.92
8.1.270.0000.00822.19
8.1.260.0170.00326.35
8.1.250.0030.00728.09
8.1.240.0060.00323.82
8.1.230.0070.00419.13
8.1.220.0000.00817.79
8.1.210.0030.00518.77
8.1.200.0070.00317.22
8.1.190.0000.00917.27
8.1.180.0030.00619.14
8.1.170.0050.00318.32
8.1.160.0030.00322.14
8.1.150.0060.00318.89
8.1.140.0050.00217.43
8.1.130.0000.00717.70
8.1.120.0000.00717.43
8.1.110.0040.00417.47
8.1.100.0050.00317.48
8.1.90.0080.00017.53
8.1.80.0020.00517.51
8.1.70.0000.00717.34
8.1.60.0030.00517.48
8.1.50.0050.00317.52
8.1.40.0080.00417.50
8.1.30.0050.00317.60
8.1.20.0030.00617.54
8.1.10.0040.00417.58
8.1.00.0000.00917.33
8.0.300.0080.00018.77
8.0.290.0020.00517.05
8.0.280.0030.00318.32
8.0.270.0000.00717.21
8.0.260.0030.00517.17
8.0.250.0020.00516.88
8.0.240.0000.00616.82
8.0.230.0040.00417.00
8.0.220.0040.00416.92
8.0.210.0000.00716.89
8.0.200.0030.00316.95
8.0.190.0080.00016.90
8.0.180.0030.00516.89
8.0.170.0040.00416.89
8.0.160.0000.00716.89
8.0.150.0030.00316.81
8.0.140.0040.00416.88
8.0.130.0000.00813.29
8.0.120.0060.00316.86
8.0.110.0050.00316.73
8.0.100.0000.00717.00
8.0.90.0000.00716.79
8.0.80.0000.02216.96
8.0.70.0050.00317.00
8.0.60.0040.00416.79
8.0.50.0050.00216.96
8.0.30.0100.01217.27
8.0.20.0100.01117.40
8.0.10.0060.00316.89
8.0.00.0080.01016.76
7.4.330.0020.00215.02
7.4.320.0000.00716.53
7.4.300.0000.00716.46
7.4.290.0030.00316.61
7.4.280.0060.00316.46
7.4.270.0030.00616.50
7.4.260.0060.00316.51
7.4.250.0000.00816.52
7.4.240.0020.00616.47
7.4.230.0000.00716.35
7.4.220.0060.01316.56
7.4.210.0100.01016.71
7.4.200.0000.00716.67
7.4.160.0160.00716.66
7.4.150.0070.01017.40
7.4.140.0120.00717.86
7.4.130.0070.01016.38
7.4.120.0060.01116.50
7.4.110.0040.01316.64
7.4.100.0100.00716.50
7.4.90.0060.01216.48
7.4.80.0130.01019.39
7.4.70.0160.00816.57
7.4.60.0120.00416.47
7.4.50.0040.00416.41
7.4.40.0160.00016.52
7.4.30.0040.01116.43
7.4.00.0020.01714.90
7.3.330.0030.00313.30
7.3.320.0030.00313.28
7.3.310.0070.00016.15
7.3.300.0040.00416.15
7.3.290.0080.00616.26
7.3.280.0080.00716.28
7.3.270.0110.00817.40
7.3.260.0160.00316.45
7.3.250.0140.00516.36
7.3.240.0120.00616.29
7.3.230.0120.00616.43
7.3.210.0160.00016.21
7.3.200.0070.01316.23
7.3.190.0040.01816.48
7.3.180.0140.00716.37
7.3.170.0070.01116.27
7.3.160.0060.00916.50
7.3.120.0120.00914.70
7.3.110.0070.01015.07
7.3.100.0030.01014.86
7.3.90.0040.01414.54
7.3.80.0040.00714.97
7.3.70.0090.00614.77
7.3.60.0070.00314.98
7.3.50.0040.00914.79
7.3.40.0040.01114.75
7.3.30.0090.00614.95
7.3.20.0090.00916.77
7.3.10.0000.01816.59
7.3.00.0000.01216.76
7.2.330.0170.01216.75
7.2.320.0090.00916.61
7.2.310.0170.00016.55
7.2.300.0090.00916.54
7.2.290.0070.01016.57
7.2.250.0040.01514.96
7.2.240.0030.01315.23
7.2.230.0040.01115.14
7.2.220.0060.00914.84
7.2.210.0090.00315.21
7.2.200.0060.01214.91
7.2.190.0000.01115.13
7.2.180.0070.00715.18
7.2.170.0100.00314.98
7.2.60.0090.00916.94
7.2.00.0040.00819.61
7.1.330.0090.00915.52
7.1.320.0070.01015.80
7.1.310.0060.00615.63
7.1.300.0100.00315.60
7.1.290.0000.00915.98
7.1.280.0030.01415.68
7.1.270.0090.00615.61
7.1.260.0100.00315.79
7.1.200.0030.01015.80
7.1.100.0060.01018.03
7.1.70.0000.00817.13
7.1.60.0030.02219.34
7.1.50.0030.01316.98
7.1.00.0000.08022.33
7.0.200.0030.00616.82
7.0.140.0070.05321.92
7.0.60.0070.08719.76
7.0.50.0000.04317.82
7.0.40.0070.05320.23
7.0.30.0230.08020.06
7.0.20.0130.04320.16
7.0.10.0030.07020.08
7.0.00.0070.08320.19
5.6.280.0000.07720.81
5.6.210.0130.05720.61
5.6.200.0070.07018.27
5.6.190.0000.08720.57
5.6.180.0030.05720.33
5.6.170.0300.07320.57
5.6.160.0100.07720.57
5.6.150.0030.07018.19
5.6.140.0070.05018.17
5.6.130.0030.05718.16
5.6.120.0170.07021.00
5.6.110.0100.08321.11
5.6.100.0070.08721.12
5.6.90.0100.08721.13
5.6.80.0070.08020.41
5.5.350.0230.08020.39
5.5.340.0070.08018.09
5.5.330.0100.08020.41
5.5.320.0400.06020.27
5.5.310.0300.05720.37
5.5.300.0070.05317.99
5.5.290.0030.07317.98
5.5.280.0030.04020.88
5.5.270.0000.06720.76
5.5.260.0100.08320.79
5.5.250.0030.04320.58
5.5.240.0030.07020.16
5.4.450.0330.05719.47
5.4.440.0770.07019.31
5.4.430.0200.06319.46
5.4.420.0130.05719.47
5.4.410.0070.05719.25
5.4.400.0130.05019.16
5.4.390.0130.05019.15
5.4.380.0030.06019.01
5.4.370.0070.05319.08
5.4.360.0070.05319.06
5.4.350.0130.03313.74
5.4.340.0130.03313.67
5.4.320.0100.04014.24
5.4.310.0170.03314.21
5.4.300.0130.04314.34
5.4.290.0170.03314.23
5.4.280.0070.04314.06
5.4.270.0030.05014.12
5.4.260.0130.03714.32
5.4.250.0070.04314.12
5.4.240.0170.03314.06
5.4.230.0100.05014.13
5.4.220.0130.04714.31
5.4.210.0070.04714.14
5.4.200.0170.03714.10
5.4.190.0170.03714.21
5.4.180.0130.04014.03
5.4.170.0100.04014.34
5.4.160.0170.03714.11
5.4.150.0130.03314.12
5.4.140.0100.04313.82
5.4.130.0100.04013.89
5.4.120.0100.04713.72
5.4.110.0070.04313.77
5.4.100.0000.04313.93
5.4.90.0070.03713.73
5.4.80.0070.04313.83
5.4.70.0070.03313.72
5.4.60.0000.05313.70
5.4.50.0100.04313.71
5.4.40.0070.04313.84
5.4.30.0100.03313.84
5.4.20.0070.04713.66
5.4.10.0130.03013.82
5.4.00.0100.03313.43
5.3.290.0100.04314.70
5.3.280.0130.03314.68
5.3.270.0100.05014.46
5.3.260.0130.04314.59
5.3.250.0130.03714.59
5.3.240.0070.04314.46
5.3.230.0070.04314.72
5.3.220.0100.03714.51
5.3.210.0070.04014.60
5.3.200.0100.04714.69
5.3.190.0070.04714.67
5.3.180.0100.03714.46
5.3.170.0030.03714.44
5.3.160.0070.03714.58
5.3.150.0070.03714.46
5.3.140.0030.04314.48
5.3.130.0030.05314.65
5.3.120.0030.04014.67
5.3.110.0170.04014.51
5.3.100.0200.03014.16
5.3.90.0130.03714.11
5.3.80.0100.04313.90
5.3.70.0070.04013.90
5.3.60.0070.04713.98
5.3.50.0100.03713.98
5.3.40.0070.04013.81
5.3.30.0070.04713.79
5.3.20.0130.03713.73
5.3.10.0070.04013.53
5.3.00.0100.03013.75
5.2.170.0100.02311.26
5.2.160.0000.03011.05
5.2.150.0070.03011.17
5.2.140.0000.04011.14
5.2.130.0030.03011.17
5.2.120.0030.03711.18
5.2.110.0070.03010.98
5.2.100.0000.03011.09
5.2.90.0030.03011.08
5.2.80.0070.02711.11
5.2.70.0000.03311.21
5.2.60.0000.03310.98
5.2.50.0030.03310.97
5.2.40.0000.03710.89
5.2.30.0000.03310.95
5.2.20.0000.03310.83
5.2.10.0200.01310.92
5.2.00.0030.03710.77
5.1.60.0070.0239.96
5.1.50.0030.0309.93
5.1.40.0070.02010.13
5.1.30.0030.03310.44
5.1.20.0030.02710.49
5.1.10.0030.02710.15
5.1.00.0030.02710.00
5.0.50.0030.0208.63
5.0.40.0030.0238.50
5.0.30.0030.0408.15
5.0.20.0030.0208.11
5.0.10.0000.0238.31
5.0.00.0030.0338.29
4.4.90.0000.0275.85
4.4.80.0070.0135.86
4.4.70.0000.0205.83
4.4.60.0030.0176.00
4.4.50.0030.0205.96
4.4.40.0030.0305.84
4.4.30.0070.0135.84
4.4.20.0070.0135.93
4.4.10.0030.0175.88
4.4.00.0030.0275.90
4.3.110.0000.0205.75
4.3.100.0030.0135.77
4.3.90.0030.0175.73
4.3.80.0000.0275.82
4.3.70.0030.0135.82
4.3.60.0100.0175.81
4.3.50.0070.0175.72
4.3.40.0000.0375.77
4.3.30.0000.0174.62
4.3.20.0100.0174.48
4.3.10.0030.0174.52
4.3.00.0070.0237.05

preferences:
58.86 ms | 401 KiB | 5 Q