3v4l.org

run code in 300+ PHP versions simultaneously
<?php $abc = array( 'rec_1' => array('f_name'=>'Aron','m_i'=>'M'), 'rec_2' => array('f_name'=>'Abbey','m_i'=>'D'), 'rec_3' => array('f_name'=>'Alice','m_i'=>'P')); function build_sorter($key) { return function ($a, $b) use ($key) { return strnatcmp($a[$key], $b[$key]); }; } usort($abc, build_sorter('f_name')); foreach ($abc as $item) { echo $item['f_name'] . ', ' . $item['m_i'] . "\n"; }

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.0120.00616.63
8.3.50.0130.00622.83
8.3.40.0110.00418.70
8.3.30.0120.00319.23
8.3.20.0070.00020.34
8.3.10.0080.00021.76
8.3.00.0080.00019.79
8.2.180.0120.00318.16
8.2.170.0070.01022.96
8.2.160.0100.00320.53
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00321.09
8.2.110.0050.00319.39
8.2.100.0060.00617.91
8.2.90.0070.00019.21
8.2.80.0030.00618.16
8.2.70.0000.00817.50
8.2.60.0050.00317.80
8.2.50.0090.00318.07
8.2.40.0040.00418.21
8.2.30.0000.00719.42
8.2.20.0050.00217.75
8.2.10.0000.00718.02
8.2.00.0000.00717.82
8.1.280.0110.00425.92
8.1.270.0080.00022.19
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.84
8.1.230.0120.00020.92
8.1.220.0000.00818.77
8.1.210.0040.00419.03
8.1.200.0000.00917.35
8.1.190.0070.00017.53
8.1.180.0000.00918.10
8.1.170.0040.00418.72
8.1.160.0000.00718.87
8.1.150.0040.00418.95
8.1.140.0000.00717.36
8.1.130.0000.00717.77
8.1.120.0070.00017.48
8.1.110.0000.00717.46
8.1.100.0040.00417.46
8.1.90.0080.00017.46
8.1.80.0040.00417.36
8.1.70.0040.00417.45
8.1.60.0030.00617.47
8.1.50.0040.00417.49
8.1.40.0040.00417.57
8.1.30.0000.00817.66
8.1.20.0050.00217.68
8.1.10.0040.00417.50
8.1.00.0000.00717.56
8.0.300.0040.00420.02
8.0.290.0040.00417.05
8.0.280.0000.00818.38
8.0.270.0030.00317.26
8.0.260.0000.00618.43
8.0.250.0000.00716.82
8.0.240.0070.00016.84
8.0.230.0030.00316.97
8.0.220.0070.00016.89
8.0.210.0030.00316.79
8.0.200.0040.00416.98
8.0.190.0000.00716.95
8.0.180.0030.00516.99
8.0.170.0060.00316.93
8.0.160.0030.00316.91
8.0.150.0070.00016.82
8.0.140.0000.00716.84
8.0.130.0030.00313.30
8.0.120.0020.00516.95
8.0.110.0000.00716.76
8.0.100.0080.00016.93
8.0.90.0040.00416.96
8.0.80.0090.00616.85
8.0.70.0000.00816.97
8.0.60.0000.00716.72
8.0.50.0040.00416.92
8.0.30.0050.01417.27
8.0.20.0120.01017.40
8.0.10.0040.00416.84
8.0.00.0070.01516.73
7.4.330.0030.00315.02
7.4.320.0030.00316.61
7.4.300.0000.00616.63
7.4.290.0040.00416.44
7.4.280.0040.00416.60
7.4.270.0030.00316.53
7.4.260.0060.00316.63
7.4.250.0070.00016.63
7.4.240.0040.00416.63
7.4.230.0000.00716.43
7.4.220.0170.01016.58
7.4.210.0100.00316.56
7.4.200.0050.00316.40
7.4.160.0030.01216.34
7.4.150.0120.00617.40
7.4.140.0130.00417.86
7.4.130.0090.00816.47
7.4.120.0080.00916.41
7.4.110.0100.01316.58
7.4.100.0060.01116.62
7.4.90.0140.00716.54
7.4.80.0000.01819.39
7.4.70.0100.00716.57
7.4.60.0070.01016.61
7.4.50.0000.00816.47
7.4.40.0130.00316.56
7.4.30.0060.01216.30
7.4.00.0050.01015.17
7.3.330.0020.00513.33
7.3.320.0030.00313.20
7.3.310.0000.00716.29
7.3.300.0070.00016.23
7.3.290.0120.00816.29
7.3.280.0080.01116.31
7.3.270.0060.01217.40
7.3.260.0060.01616.50
7.3.250.0090.00816.51
7.3.240.0100.01016.28
7.3.230.0030.01316.64
7.3.210.0070.01716.38
7.3.200.0070.01119.39
7.3.190.0070.01016.66
7.3.180.0060.00916.42
7.3.170.0060.01016.31
7.3.160.0060.01016.54
7.3.120.0060.00914.91
7.3.110.0100.00614.83
7.3.100.0040.01115.01
7.3.90.0060.00614.71
7.3.80.0100.00314.97
7.3.70.0030.01314.91
7.3.60.0090.00014.60
7.3.50.0030.00914.83
7.3.40.0130.00714.52
7.3.30.0070.01314.96
7.3.20.0060.00616.74
7.3.10.0000.01116.77
7.3.00.0060.00616.82
7.2.330.0090.01516.72
7.2.320.0030.01416.49
7.2.310.0100.00616.61
7.2.300.0150.00916.64
7.2.290.0090.00916.42
7.2.250.0070.01315.20
7.2.240.0080.00815.12
7.2.230.0030.01315.22
7.2.220.0100.00314.97
7.2.210.0040.01115.20
7.2.200.0040.01214.97
7.2.190.0000.01214.80
7.2.180.0100.00715.08
7.2.170.0070.01115.14
7.2.00.0120.00619.64
7.1.330.0030.01015.56
7.1.320.0080.00415.96
7.1.310.0070.00715.78
7.1.300.0000.01515.84
7.1.290.0060.00915.64
7.1.280.0090.00615.85
7.1.270.0030.01415.84
7.1.260.0040.00815.96
7.1.100.0090.00618.19
7.1.70.0050.00216.93
7.1.60.0110.01419.34
7.1.50.0060.01116.96
7.1.00.0030.07722.51
7.0.200.0030.00616.86
7.0.140.0000.03721.95
7.0.60.0100.08719.94
7.0.50.0070.05317.89
7.0.40.0130.04720.10
7.0.30.0270.05320.21
7.0.20.0370.06720.23
7.0.10.0070.06720.13
7.0.00.0100.06720.17
5.6.280.0000.07720.79
5.6.210.0070.07720.70
5.6.200.0030.09018.25
5.6.190.0070.04020.63
5.6.180.3270.04020.64
5.6.170.0300.05020.48
5.6.160.0070.07020.70
5.6.150.0100.05318.23
5.6.140.0000.04718.17
5.6.130.0130.08018.24
5.6.120.0100.07721.15
5.6.110.0070.06021.01
5.6.100.0000.04721.14
5.6.90.0030.05021.11
5.6.80.0100.07720.37
5.6.70.4100.05320.38
5.5.350.0200.08720.42
5.5.340.0170.07318.03
5.5.330.0130.07320.20
5.5.320.3230.04320.24
5.5.310.0330.07020.19
5.5.300.0100.07717.91
5.5.290.0100.07318.08
5.5.280.0100.08320.91
5.5.270.0070.07720.74
5.5.260.0100.05720.98
5.5.250.0170.06720.59
5.5.240.0230.07320.20
5.4.450.0200.03719.28
5.4.440.0230.03719.47
5.4.430.0170.04319.56
5.4.420.0130.05319.39
5.4.410.0170.05018.97
5.4.400.0130.05018.82
5.4.390.0200.05318.64
5.4.380.0100.06318.50
5.4.370.0030.06018.76
5.4.360.0100.07318.79
5.4.350.0070.04013.78
5.4.340.0000.04313.78
5.4.320.0030.04714.29
5.4.310.0000.04314.29
5.4.300.0130.03714.42
5.4.290.0070.04014.21
5.4.280.0030.03714.16
5.4.270.0200.02714.14
5.4.260.0000.04714.18
5.4.250.0070.04014.20
5.4.240.0000.05014.18
5.4.230.0070.04714.16
5.4.220.0130.03014.16
5.4.210.0030.04014.39
5.4.200.0100.03714.16
5.4.190.0030.04314.15
5.4.180.0030.04714.11
5.4.170.0000.04314.14
5.4.160.0100.04314.18
5.4.150.0070.05014.15
5.4.140.0100.05013.84
5.4.130.0030.05013.76
5.4.120.0070.04313.71
5.4.110.0070.04713.77
5.4.100.0000.05313.85
5.4.90.0030.04013.81
5.4.80.0000.04313.80
5.4.70.0000.04013.77
5.4.60.0070.03713.77
5.4.50.0000.04313.77
5.4.40.0100.03713.73
5.4.30.0100.04313.79
5.4.20.0130.04313.79
5.4.10.0070.05013.75
5.4.00.0070.05013.32
5.3.290.0100.05314.63
5.3.280.0030.05014.62
5.3.270.0000.04714.63
5.3.260.0070.05014.57
5.3.250.0030.04314.53
5.3.240.0230.03714.77
5.3.230.0100.03714.54
5.3.220.0070.04714.54
5.3.210.0100.04314.55
5.3.200.0030.04314.54
5.3.190.0000.04314.57
5.3.180.0070.03714.74
5.3.170.0070.03714.62
5.3.160.0030.04014.60
5.3.150.0030.04014.67
5.3.140.0070.03714.71
5.3.130.0100.03714.51
5.3.120.0000.04714.59
5.3.110.0030.04314.60
5.3.100.0070.03714.00
5.3.90.0070.05314.06
5.3.80.0130.04313.98
5.3.70.0000.05313.98
5.3.60.0130.04313.98
5.3.50.0100.04714.01
5.3.40.0130.03313.93
5.3.30.0130.03713.85
5.3.20.0000.05013.73
5.3.10.0070.05013.69
5.3.00.0030.05313.64
5.2.170.0030.04311.13
5.2.160.0070.04011.18
5.2.150.0100.03711.10
5.2.140.0130.02711.10
5.2.130.0030.04311.06
5.2.120.0100.03711.26
5.2.110.0030.03011.15
5.2.100.0030.03011.14
5.2.90.0130.02311.13
5.2.80.0070.03711.01
5.2.70.0100.04011.10
5.2.60.0100.03711.01
5.2.50.0030.04711.07
5.2.40.0070.04010.99
5.2.30.0030.03711.02
5.2.20.0100.02710.87
5.2.10.0030.03010.81
5.2.00.0030.03010.75
5.1.60.0030.03710.18
5.1.50.0070.03310.01
5.1.40.0070.03310.04
5.1.30.0030.03010.34
5.1.20.0000.03310.32
5.1.10.0130.02010.06
5.1.00.0030.02710.05
5.0.50.0070.0178.67
5.0.40.0030.0208.43
5.0.30.0030.0338.25
5.0.20.0030.0208.25
5.0.10.0030.0208.12
5.0.00.0030.0308.14
4.4.90.0030.0135.86
4.4.80.0000.0175.84
4.4.70.0000.0205.88
4.4.60.0030.0205.84
4.4.50.0070.0175.83
4.4.40.0000.0335.91
4.4.30.0030.0135.94
4.4.20.0000.0175.88
4.4.10.0000.0175.87
4.4.00.0000.0275.93
4.3.110.0000.0205.78
4.3.100.0030.0135.74
4.3.90.0030.0135.75
4.3.80.0030.0275.77
4.3.70.0070.0235.75
4.3.60.0000.0205.75
4.3.50.0070.0175.75
4.3.40.0070.0275.77
4.3.30.0030.0174.53
4.3.20.0000.0174.60
4.3.10.0000.0204.48
4.3.00.0030.01316.65

preferences:
43.99 ms | 401 KiB | 5 Q