3v4l.org

run code in 300+ PHP versions simultaneously
<?php $abc = array( array('f_name'=>'Aron','m_i'=>'M'), array('f_name'=>'Abbey','m_i'=>'D'), 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 ($array 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.0170.00316.63
8.3.50.0090.01022.82
8.3.40.0000.01418.79
8.3.30.0120.00619.23
8.3.20.0000.00720.29
8.3.10.0030.00621.73
8.3.00.0080.00019.68
8.2.180.0170.00716.63
8.2.170.0100.01022.96
8.2.160.0100.00320.29
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00520.02
8.2.110.0050.00522.19
8.2.100.0060.00617.91
8.2.90.0060.00317.60
8.2.80.0070.00417.97
8.2.70.0000.00818.05
8.2.60.0080.00017.93
8.2.50.0050.00318.10
8.2.40.0040.00420.37
8.2.30.0000.00719.36
8.2.20.0030.00617.88
8.2.10.0000.00718.06
8.2.00.0040.00417.70
8.1.280.0110.00425.92
8.1.270.0080.00022.12
8.1.260.0090.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00324.03
8.1.230.0070.00419.09
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0090.00017.25
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0090.00018.60
8.1.160.0080.00018.90
8.1.150.0040.00418.90
8.1.140.0040.00417.34
8.1.130.0000.00717.84
8.1.120.0070.00017.50
8.1.110.0040.00417.36
8.1.100.0000.00817.52
8.1.90.0000.00817.50
8.1.80.0000.00717.50
8.1.70.0030.00317.32
8.1.60.0030.00617.48
8.1.50.0050.00317.44
8.1.40.0000.00817.41
8.1.30.0000.00917.66
8.1.20.0040.00417.72
8.1.10.0040.00417.59
8.1.00.0060.00317.39
8.0.300.0070.00019.75
8.0.290.0000.00916.63
8.0.280.0070.00018.46
8.0.270.0040.00417.16
8.0.260.0000.00617.27
8.0.250.0030.00317.04
8.0.240.0030.00316.90
8.0.230.0040.00417.02
8.0.220.0000.00716.95
8.0.210.0070.00016.97
8.0.200.0040.00417.07
8.0.190.0030.00517.07
8.0.180.0030.00317.00
8.0.170.0040.00416.90
8.0.160.0080.00016.94
8.0.150.0000.00816.85
8.0.140.0000.00816.90
8.0.130.0030.00313.33
8.0.120.0030.00516.99
8.0.110.0070.00016.86
8.0.100.0040.00416.82
8.0.90.0040.00416.85
8.0.80.0070.00716.92
8.0.70.0030.00516.98
8.0.60.0000.00717.08
8.0.50.0040.00417.01
8.0.30.0100.01217.11
8.0.20.0150.00817.40
8.0.10.0000.00716.92
8.0.00.0070.01116.69
7.4.330.0030.00315.09
7.4.320.0040.00416.66
7.4.300.0030.00316.59
7.4.290.0000.00716.40
7.4.280.0000.00716.52
7.4.270.0030.00316.54
7.4.260.0070.00316.40
7.4.250.0000.00716.47
7.4.240.0050.00216.46
7.4.230.0070.00016.33
7.4.220.0100.01216.68
7.4.210.0030.01016.64
7.4.200.0000.00716.72
7.4.160.0030.01316.55
7.4.150.0040.01217.40
7.4.140.0070.01017.86
7.4.130.0030.01416.54
7.4.120.0070.01116.48
7.4.110.0100.01016.61
7.4.100.0090.00916.43
7.4.90.0030.01316.56
7.4.80.0110.00619.39
7.4.70.0100.00716.66
7.4.60.0070.01016.62
7.4.50.0000.00816.32
7.4.40.0100.00616.61
7.4.30.0100.01016.47
7.4.00.0060.01014.95
7.3.330.0000.00713.33
7.3.320.0020.00213.16
7.3.310.0070.00016.36
7.3.300.0070.00016.25
7.3.290.0060.01216.38
7.3.280.0120.00416.40
7.3.270.0140.00317.40
7.3.260.0130.00516.47
7.3.250.0020.01516.47
7.3.240.0080.00816.37
7.3.230.0130.00316.65
7.3.210.0070.01116.56
7.3.200.0120.01119.39
7.3.190.0170.00016.66
7.3.180.0170.00016.59
7.3.170.0160.00016.62
7.3.160.0060.00916.43
7.3.120.0100.00714.95
7.3.110.0040.01114.84
7.3.100.0060.00614.68
7.3.90.0000.01814.90
7.3.80.0040.00814.91
7.3.70.0030.01014.95
7.3.60.0120.00315.01
7.3.50.0040.01114.96
7.3.40.0000.01614.88
7.3.30.0070.01014.62
7.3.20.0070.00716.74
7.3.10.0090.00016.70
7.3.00.0120.00016.71
7.2.330.0120.00616.72
7.2.320.0100.00716.68
7.2.310.0090.00916.73
7.2.300.0100.00716.67
7.2.290.0100.00716.79
7.2.250.0130.00715.23
7.2.240.0090.00915.10
7.2.230.0080.01115.20
7.2.220.0000.00914.69
7.2.210.0030.00914.96
7.2.200.0000.01014.94
7.2.190.0080.00414.81
7.2.180.0090.00915.25
7.2.170.0040.01515.07
7.2.60.0070.00417.16
7.2.00.0090.00619.57
7.1.330.0000.01415.59
7.1.320.0040.00415.77
7.1.310.0000.01515.86
7.1.300.0040.00415.59
7.1.290.0030.01515.78
7.1.280.0140.00315.55
7.1.270.0130.00315.70
7.1.260.0080.00315.57
7.1.200.0060.00915.73
7.1.100.0040.00817.84
7.1.70.0080.00817.13
7.1.60.0110.01419.34
7.1.50.0060.01616.85
7.1.00.0030.07722.44
7.0.200.0000.00916.79
7.0.140.0070.07022.00
7.0.60.0030.04320.03
7.0.50.0100.07717.78
7.0.40.0070.08720.23
7.0.30.0230.04020.06
7.0.20.0230.03320.33
7.0.10.0070.08720.12
7.0.00.0100.04720.08
5.6.280.0030.07721.00
5.6.210.0070.06320.63
5.6.200.0100.07718.16
5.6.190.0070.04720.60
5.6.180.0230.07320.50
5.6.170.0370.06720.55
5.6.160.0130.06320.61
5.6.150.0070.03718.29
5.6.140.0070.05018.13
5.6.130.0030.05718.21
5.6.120.0130.03720.95
5.6.110.0070.06721.00
5.6.100.0100.08321.08
5.6.90.0170.06721.00
5.6.80.0170.07320.46
5.5.350.0070.06720.41
5.5.340.0130.03017.99
5.5.330.0030.04320.40
5.5.320.0530.06720.28
5.5.310.0270.04020.28
5.5.300.0130.07317.95
5.5.290.0130.07317.96
5.5.280.0100.07720.74
5.5.270.0070.05320.86
5.5.260.0030.09320.88
5.5.250.0130.08020.79
5.5.240.0070.07320.16
5.4.450.0230.04319.33
5.4.440.0230.03719.22
5.4.430.0170.03719.41
5.4.420.0000.06319.32
5.4.410.0230.04318.86
5.4.400.0030.06018.53
5.4.390.0130.07718.81
5.4.380.0170.05018.73
5.4.370.0200.04318.85
5.4.360.0130.07018.79
5.4.350.0070.04713.79
5.4.340.0400.05313.79
5.4.320.0130.04314.25
5.4.310.0100.05014.39
5.4.300.0130.05014.30
5.4.290.0130.05014.42
5.4.280.0170.04014.15
5.4.270.0200.04014.22
5.4.260.0130.05014.24
5.4.250.0130.04714.18
5.4.240.0170.05014.15
5.4.230.0230.04314.16
5.4.220.0230.04014.06
5.4.210.0070.05014.15
5.4.200.0070.05014.14
5.4.190.0100.04714.31
5.4.180.0130.04314.13
5.4.170.0030.05314.17
5.4.160.0070.04314.23
5.4.150.0130.04014.23
5.4.140.0070.05313.85
5.4.130.0170.04013.90
5.4.120.0200.03713.71
5.4.110.0030.04713.90
5.4.100.0030.04713.71
5.4.90.0030.04013.78
5.4.80.0030.04713.78
5.4.70.0130.04013.71
5.4.60.0070.03713.77
5.4.50.0130.04713.76
5.4.40.0070.05013.78
5.4.30.0070.04713.76
5.4.20.0000.04713.69
5.4.10.0100.04013.82
5.4.00.0200.04013.20
5.3.290.0100.05314.85
5.3.280.0170.03714.57
5.3.270.0100.04314.53
5.3.260.0070.06014.61
5.3.250.0200.05014.77
5.3.240.0170.04714.57
5.3.230.0170.04014.58
5.3.220.0170.04714.58
5.3.210.0200.03714.62
5.3.200.0130.05314.71
5.3.190.0130.05014.50
5.3.180.0130.03714.57
5.3.170.0130.03714.49
5.3.160.0130.04014.70
5.3.150.0170.04014.73
5.3.140.0030.04314.52
5.3.130.0100.04314.70
5.3.120.0100.04314.73
5.3.110.0070.04314.53
5.3.100.0130.03314.17
5.3.90.0170.03314.04
5.3.80.0030.04313.94
5.3.70.0030.04014.06
5.3.60.0030.04014.07
5.3.50.0030.04314.03
5.3.40.0070.04013.99
5.3.30.0070.04313.80
5.3.20.0130.03013.68
5.3.10.0030.04013.79
5.3.00.0100.04313.81
5.2.170.0200.03311.18
5.2.160.0130.03311.19
5.2.150.0200.03011.14
5.2.140.0130.03311.20
5.2.130.0130.03011.07
5.2.120.0030.04311.07
5.2.110.0070.03011.06
5.2.100.0070.03011.03
5.2.90.0100.04011.14
5.2.80.0170.02011.17
5.2.70.0030.03711.25
5.2.60.0030.03311.08
5.2.50.0030.03311.00
5.2.40.0000.03310.93
5.2.30.0030.03311.03
5.2.20.0030.03310.99
5.2.10.0130.02711.00
5.2.00.0030.03310.65
5.1.60.0100.02710.05
5.1.50.0070.02310.06
5.1.40.0070.0309.93
5.1.30.0070.03010.30
5.1.20.0100.02310.32
5.1.10.0070.02710.09
5.1.00.0000.03310.22
5.0.50.0030.0208.59
5.0.40.0000.0238.49
5.0.30.0070.0308.40
5.0.20.0100.0178.16
5.0.10.0030.0278.31
5.0.00.0070.0338.30
4.4.90.0030.0135.87
4.4.80.0100.0105.82
4.4.70.0030.0205.85
4.4.60.0000.0205.85
4.4.50.0000.0205.81
4.4.40.0030.0235.84
4.4.30.0030.0175.94
4.4.20.0030.0175.90
4.4.10.0030.0175.89
4.4.00.0000.0306.02
4.3.110.0030.0175.82
4.3.100.0000.0235.74
4.3.90.0030.0205.86
4.3.80.0000.0305.77
4.3.70.0030.0205.73
4.3.60.0070.0135.73
4.3.50.0030.0175.75
4.3.40.0000.0305.72
4.3.30.0000.0174.50
4.3.20.0000.0204.45
4.3.10.0070.0174.46
4.3.00.0070.01016.65

preferences:
50.55 ms | 401 KiB | 5 Q