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')); echo $abc['rec_1']['f_name'], "\n"; 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.0180.00016.63
8.3.50.0090.00822.99
8.3.40.0070.00718.84
8.3.30.0110.00319.14
8.3.20.0070.00020.29
8.3.10.0050.00321.96
8.3.00.0080.00019.80
8.2.180.0060.00918.04
8.2.170.0100.01022.96
8.2.160.0140.00020.16
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00019.89
8.2.110.0080.00320.58
8.2.100.0080.00317.91
8.2.90.0050.00317.91
8.2.80.0040.00418.28
8.2.70.0060.00317.63
8.2.60.0030.00617.75
8.2.50.0080.00318.07
8.2.40.0000.00718.21
8.2.30.0050.00219.34
8.2.20.0070.00017.76
8.2.10.0000.00718.11
8.2.00.0040.00417.75
8.1.280.0040.01125.92
8.1.270.0080.00022.14
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0040.00421.02
8.1.230.0080.00422.69
8.1.220.0000.00817.78
8.1.210.0050.00318.77
8.1.200.0000.00817.48
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0030.00618.51
8.1.160.0040.00418.96
8.1.150.0000.00818.77
8.1.140.0070.00017.51
8.1.130.0000.00717.80
8.1.120.0000.00817.50
8.1.110.0040.00417.42
8.1.100.0040.00417.52
8.1.90.0040.00417.45
8.1.80.0000.00817.46
8.1.70.0000.00817.29
8.1.60.0000.00917.43
8.1.50.0000.00817.53
8.1.40.0000.00817.53
8.1.30.0060.00317.61
8.1.20.0040.00417.65
8.1.10.0000.00817.65
8.1.00.0040.00417.41
8.0.300.0070.00020.03
8.0.290.0000.00716.75
8.0.280.0000.00718.33
8.0.270.0070.00017.27
8.0.260.0030.00317.28
8.0.250.0000.00616.96
8.0.240.0000.00716.86
8.0.230.0040.00417.00
8.0.220.0070.00016.91
8.0.210.0000.00716.81
8.0.200.0000.00916.96
8.0.190.0040.00316.87
8.0.180.0000.00716.94
8.0.170.0000.00716.90
8.0.160.0030.00316.83
8.0.150.0000.00716.89
8.0.140.0050.00216.91
8.0.130.0050.00013.34
8.0.120.0080.00016.87
8.0.110.0020.00516.74
8.0.100.0040.00416.77
8.0.90.0050.00216.77
8.0.80.0150.00616.80
8.0.70.0030.00616.77
8.0.60.0040.00416.84
8.0.50.0030.00617.02
8.0.30.0060.01217.20
8.0.20.0090.01117.40
8.0.10.0000.00717.00
8.0.00.0040.01316.77
7.4.330.0000.00515.02
7.4.320.0030.00316.43
7.4.300.0000.00616.43
7.4.290.0070.00016.62
7.4.280.0000.00716.50
7.4.270.0030.00316.63
7.4.260.0080.00016.59
7.4.250.0000.00816.46
7.4.240.0050.00316.46
7.4.230.0030.00516.60
7.4.220.0130.01316.45
7.4.210.0100.00316.59
7.4.200.0030.00316.66
7.4.160.0060.00916.56
7.4.150.0040.01417.40
7.4.140.0150.00217.86
7.4.130.0130.00416.54
7.4.120.0120.00616.54
7.4.110.0170.00016.46
7.4.100.0100.00716.50
7.4.90.0130.00616.67
7.4.80.0140.00319.39
7.4.70.0170.00016.50
7.4.60.0060.00916.48
7.4.50.0030.00616.21
7.4.40.0060.01216.64
7.4.30.0030.01516.30
7.4.00.0040.01415.02
7.3.330.0060.00213.32
7.3.320.0050.00013.45
7.3.310.0030.00316.36
7.3.300.0030.00316.41
7.3.290.0070.01016.34
7.3.280.0040.01016.37
7.3.270.0070.01417.40
7.3.260.0110.00716.41
7.3.250.0080.01216.34
7.3.240.0070.01016.66
7.3.230.0060.01116.39
7.3.210.0150.00316.54
7.3.200.0080.01419.39
7.3.190.0100.00716.51
7.3.180.0040.01116.34
7.3.170.0090.00616.48
7.3.160.0090.00616.65
7.2.330.0070.01416.68
7.2.320.0120.00416.70
7.2.310.0160.00316.52
7.2.300.0060.01116.84
7.2.290.0100.01016.70
7.2.60.0060.01016.73
7.2.00.0000.01419.08
7.1.200.0090.00915.67
7.1.100.0040.01118.36
7.1.70.0030.00917.02
7.1.60.0030.02219.34
7.1.50.0070.01616.64
7.1.00.0100.06722.45
7.0.200.0030.00516.74
7.0.140.0000.03322.12
7.0.60.0030.07319.97
7.0.50.0030.08717.89
7.0.40.0070.05020.05
7.0.30.0530.06020.24
7.0.20.0170.04020.12
7.0.10.0070.04020.10
7.0.00.0030.09720.16
5.6.210.0030.08720.71
5.6.200.0000.05318.16
5.6.190.0100.08720.52
5.6.180.0170.05320.63
5.6.170.0200.05320.62
5.6.160.0100.07020.50
5.6.150.0070.08318.13
5.6.140.0070.04018.15
5.6.130.0130.04718.23
5.6.120.0130.08020.96
5.6.110.0170.07020.99
5.6.100.0100.08021.19
5.6.90.0030.08320.98
5.6.80.0070.08320.36
5.5.350.0070.08020.43
5.5.340.0130.08017.98
5.5.330.0070.04020.47
5.5.320.0070.08320.42
5.5.310.0200.04320.26
5.5.300.0130.07318.07
5.5.290.0170.06017.95
5.5.280.0130.08020.66
5.5.270.0030.04020.74
5.5.260.0070.08020.73
5.5.250.0030.04020.69
5.5.240.0100.06720.36
5.4.450.0170.06719.55
5.4.440.0200.04719.20
5.4.430.0230.03019.16
5.4.420.0070.06019.21
5.4.410.0100.05318.96
5.4.400.0070.05718.74
5.4.390.0170.04718.60
5.4.380.0070.06318.79
5.4.370.0070.06018.54
5.4.360.0070.06018.76
5.4.350.0000.04313.79
5.4.340.0070.03713.80
5.4.320.0100.04314.39
5.4.310.0100.04014.26
5.4.300.0170.03014.22
5.4.290.0100.04014.26
5.4.280.0030.04014.28
5.4.270.0100.03714.22
5.4.260.0100.03714.14
5.4.250.0070.04014.25
5.4.240.0130.03014.16
5.4.230.0070.04014.39
5.4.220.0200.04314.39
5.4.210.0100.04714.22
5.4.200.0170.03014.31
5.4.190.0100.03714.13
5.4.180.0030.04314.21
5.4.170.0100.03714.17
5.4.160.0030.04014.09
5.4.150.0130.03014.18
5.4.140.0170.03714.00
5.4.130.0000.05014.06
5.4.120.0100.04013.79
5.4.110.0070.04313.80
5.4.100.0130.03013.76
5.4.90.0070.03713.82
5.4.80.0070.03713.83
5.4.70.0130.04713.72
5.4.60.0100.03313.75
5.4.50.0070.03713.76
5.4.40.0030.04013.92
5.4.30.0100.03313.81
5.4.20.0100.03713.74
5.4.10.0200.03013.74
5.4.00.0030.04313.48
5.3.290.0130.04014.85
5.3.280.0130.03314.70
5.3.270.0070.04314.66
5.3.260.0070.04014.58
5.3.250.0030.04314.68
5.3.240.0070.04014.59
5.3.230.0130.04014.54
5.3.220.0100.03714.73
5.3.210.0070.04014.62
5.3.200.0070.03714.62
5.3.190.0030.04014.55
5.3.180.0100.03314.63
5.3.170.0030.04014.50
5.3.160.0070.03714.55
5.3.150.0100.03714.50
5.3.140.0000.06014.55
5.3.130.0070.04314.71
5.3.120.0030.04714.69
5.3.110.0070.03714.57
5.3.100.0100.03314.02
5.3.90.0100.03314.05
5.3.80.0100.03314.16
5.3.70.0070.03714.13
5.3.60.0170.03314.12
5.3.50.0130.04013.94
5.3.40.0170.03714.10
5.3.30.0170.03713.98
5.3.20.0170.03313.69
5.3.10.0030.03713.63
5.3.00.0000.04013.74
5.2.170.0000.03311.19
5.2.160.0030.03011.15
5.2.150.0070.03011.13
5.2.140.0030.04011.07
5.2.130.0100.02711.25
5.2.120.0070.03011.25
5.2.110.0070.03011.23
5.2.100.0030.03311.21
5.2.90.0030.03011.22
5.2.80.0130.02711.01
5.2.70.0100.03011.12
5.2.60.0030.03711.17
5.2.50.0030.03711.16
5.2.40.0030.03011.04
5.2.30.0070.03310.90
5.2.20.0030.03010.89
5.2.10.0070.03310.90
5.2.00.0070.02710.80
5.1.60.0030.0239.96
5.1.50.0130.01710.02
5.1.40.0030.0279.95
5.1.30.0130.03010.38
5.1.20.0000.03310.34
5.1.10.0000.03310.20
5.1.00.0000.03010.22
5.0.50.0030.0208.69
5.0.40.0030.0278.55
5.0.30.0030.0308.15
5.0.20.0030.0208.25
5.0.10.0030.0208.10
5.0.00.0030.0308.11
4.4.90.0000.0175.82
4.4.80.0030.0135.84
4.4.70.0000.0175.82
4.4.60.0000.0175.88
4.4.50.0030.0135.83
4.4.40.0070.0205.95
4.4.30.0030.0135.83
4.4.20.0000.0175.89
4.4.10.0070.0135.90
4.4.00.0030.0276.02
4.3.110.0000.0175.85
4.3.100.0000.0175.88
4.3.90.0000.0175.86
4.3.80.0070.0205.79
4.3.70.0000.0175.79
4.3.60.0030.0135.91
4.3.50.0000.0175.84
4.3.40.0000.0275.67
4.3.30.0000.0174.62
4.3.20.0000.0234.53
4.3.10.0030.0134.58
4.3.00.0030.01316.65

preferences:
45.25 ms | 401 KiB | 5 Q