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($array, 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.0070.01416.62
8.3.50.0140.00419.89
8.3.40.0110.00418.79
8.3.30.0070.00718.96
8.3.20.0070.00020.29
8.3.10.0040.00421.85
8.3.00.0050.00319.55
8.2.180.0130.01016.88
8.2.170.0170.00322.96
8.2.160.0030.01020.35
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00717.75
8.2.110.0060.00319.07
8.2.100.0040.00817.78
8.2.90.0040.00417.63
8.2.80.0050.00318.87
8.2.70.0040.00418.04
8.2.60.0040.00418.22
8.2.50.0000.00719.28
8.2.40.0080.00021.07
8.2.30.0000.00719.12
8.2.20.0030.00517.68
8.2.10.0020.00518.16
8.2.00.0000.00717.89
8.1.280.0070.00725.92
8.1.270.0000.00922.14
8.1.260.0050.00526.35
8.1.250.0060.00328.09
8.1.240.0030.00619.09
8.1.230.0090.00620.84
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0030.00617.35
8.1.180.0040.00418.84
8.1.170.0050.00518.61
8.1.160.0060.00319.13
8.1.150.0030.00618.87
8.1.140.0040.00417.33
8.1.130.0030.00317.83
8.1.120.0080.00017.40
8.1.110.0070.00017.48
8.1.100.0000.00817.36
8.1.90.0000.00717.37
8.1.80.0040.00317.50
8.1.70.0030.00317.49
8.1.60.0080.00017.52
8.1.50.0030.00517.44
8.1.40.0040.00417.45
8.1.30.0090.00017.73
8.1.20.0040.00417.69
8.1.10.0040.00417.63
8.1.00.0080.00017.42
8.0.300.0030.00618.77
8.0.290.0000.00816.75
8.0.280.0030.00318.41
8.0.270.0030.00317.21
8.0.260.0000.00620.02
8.0.250.0070.00016.99
8.0.240.0030.00316.91
8.0.230.0030.00316.97
8.0.220.0030.00316.93
8.0.210.0040.00416.84
8.0.200.0000.00817.05
8.0.190.0040.00416.98
8.0.180.0040.00316.89
8.0.170.0060.00316.96
8.0.160.0000.00816.87
8.0.150.0000.00816.89
8.0.140.0000.00716.94
8.0.130.0060.00013.49
8.0.120.0030.00516.95
8.0.110.0000.00716.93
8.0.100.0000.00816.86
8.0.90.0080.00017.04
8.0.80.0100.01317.04
8.0.70.0070.00017.04
8.0.60.0040.00416.96
8.0.50.0000.00716.88
8.0.30.0090.01317.16
8.0.20.0120.01117.40
8.0.10.0040.00417.13
8.0.00.0080.01416.93
7.4.330.0050.00015.02
7.4.320.0030.00316.62
7.4.300.0030.00316.48
7.4.290.0040.00416.60
7.4.280.0040.00416.57
7.4.270.0030.00316.42
7.4.260.0040.00416.50
7.4.250.0000.00816.53
7.4.240.0050.00216.55
7.4.230.0040.00316.71
7.4.220.0140.01116.52
7.4.210.0030.01016.69
7.4.200.0030.00316.59
7.4.160.0100.01016.58
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0090.01016.54
7.4.120.0110.00616.52
7.4.110.0140.00316.66
7.4.100.0110.00716.39
7.4.90.0120.00616.43
7.4.80.0130.00619.39
7.4.70.0170.00016.41
7.4.60.0130.00316.51
7.4.50.0060.00316.46
7.4.40.0130.00416.59
7.4.30.0160.00616.63
7.4.00.0080.00414.86
7.3.330.0040.00413.37
7.3.320.0000.00613.16
7.3.310.0040.00416.47
7.3.300.0000.00716.24
7.3.290.0060.01116.38
7.3.280.0090.01016.34
7.3.270.0120.00617.40
7.3.260.0090.01116.62
7.3.250.0090.00816.46
7.3.240.0100.00716.41
7.3.230.0100.00716.39
7.3.210.0120.00316.29
7.3.200.0090.01219.39
7.3.190.0070.01016.50
7.3.180.0120.00616.47
7.3.170.0100.00616.62
7.3.160.0110.00316.38
7.3.120.0070.01014.88
7.3.110.0060.01114.84
7.3.100.0080.00814.63
7.3.90.0080.00714.91
7.3.80.0050.00815.06
7.3.70.0030.00914.72
7.3.60.0060.00814.79
7.3.50.0050.00714.86
7.3.40.0050.01114.85
7.3.30.0080.00514.61
7.3.20.0050.00916.67
7.3.10.0050.00916.44
7.3.00.0080.00516.63
7.2.330.0030.01416.44
7.2.320.0100.00716.43
7.2.310.0100.00716.66
7.2.300.0030.01516.39
7.2.290.0070.01016.61
7.2.240.0080.01015.04
7.2.230.0030.01414.81
7.2.220.0020.01314.81
7.2.210.0030.01115.10
7.2.200.0090.00714.94
7.2.190.0030.00915.05
7.2.180.0050.00814.90
7.2.170.0030.01015.06
7.2.160.0100.00515.08
7.2.150.0070.00716.98
7.2.140.0050.01116.91
7.2.130.0060.01116.87
7.2.120.0080.01016.82
7.2.110.0090.00316.93
7.2.100.0050.00916.97
7.2.90.0030.01116.89
7.2.80.0070.00916.72
7.2.70.0050.00916.76
7.2.60.0080.00516.82
7.2.50.0080.00816.91
7.2.40.0070.00716.79
7.2.30.0060.00916.77
7.2.20.0090.00916.70
7.2.10.0120.00616.76
7.2.00.0040.00817.78
7.1.330.0060.01015.76
7.1.320.0020.01215.56
7.1.310.0050.00615.98
7.1.300.0070.00515.70
7.1.290.0100.00515.90
7.1.280.0030.01115.73
7.1.270.0080.00415.70
7.1.260.0070.00615.83
7.1.250.0020.01315.82
7.1.100.0030.00717.75
7.1.70.0040.00417.13
7.1.60.0140.01119.34
7.1.50.0070.01416.88
7.1.00.0030.07722.45
7.0.200.0090.00316.69
7.0.140.0000.07321.97
7.0.60.0000.04319.94
7.0.50.0100.05017.83
7.0.40.0170.07720.21
7.0.30.0230.04320.17
7.0.20.0200.03720.06
7.0.10.0000.07720.06
7.0.00.0070.04020.26
5.6.280.0070.07021.16
5.6.210.0070.07720.61
5.6.200.0130.07718.29
5.6.190.0130.03320.77
5.6.180.0100.05020.63
5.6.170.0270.07320.49
5.6.160.0030.09320.39
5.6.150.0000.07018.16
5.6.140.0100.06318.11
5.6.130.0000.04718.16
5.6.120.0200.07020.74
5.6.110.0030.09720.99
5.6.100.0070.08320.89
5.6.90.0070.05721.01
5.6.80.0070.08020.51
5.5.350.0130.07020.39
5.5.340.0000.04018.09
5.5.330.0130.05020.43
5.5.320.0370.04020.34
5.5.310.0300.07720.24
5.5.300.0030.08317.96
5.5.290.0070.07318.07
5.5.280.0030.08320.88
5.5.270.0100.03720.97
5.5.260.0130.07020.85
5.5.250.0200.07320.66
5.5.240.0000.08320.08
5.4.450.0370.03719.48
5.4.440.0170.03719.64
5.4.430.0200.04019.29
5.4.420.0070.05719.32
5.4.410.0000.06719.04
5.4.400.0230.04718.54
5.4.390.0230.04018.62
5.4.380.0170.06718.61
5.4.370.0200.06718.59
5.4.360.0100.06718.63
5.4.350.0070.03714.02
5.4.340.0100.04713.94
5.4.320.0100.03714.28
5.4.310.0070.04014.27
5.4.300.0170.04314.27
5.4.290.0030.05714.42
5.4.280.0030.04714.15
5.4.270.0100.04714.15
5.4.260.0070.04314.16
5.4.250.0100.03714.19
5.4.240.0130.03714.15
5.4.230.0070.04314.28
5.4.220.0100.04714.18
5.4.210.0070.04314.29
5.4.200.0030.04714.16
5.4.190.0100.05314.27
5.4.180.0030.05314.15
5.4.170.0100.05014.32
5.4.160.0030.05714.09
5.4.150.0030.05314.27
5.4.140.0070.04313.84
5.4.130.0100.04713.89
5.4.120.0070.05313.81
5.4.110.0130.04714.02
5.4.100.0030.05713.84
5.4.90.0070.05713.76
5.4.80.0270.05313.78
5.4.70.0130.05313.77
5.4.60.0100.04713.76
5.4.50.0030.04314.01
5.4.40.0030.05013.77
5.4.30.0100.04713.84
5.4.20.0070.03713.77
5.4.10.0030.04013.79
5.4.00.0000.04013.22
5.3.290.0130.03314.63
5.3.280.0100.03714.55
5.3.270.0070.05314.77
5.3.260.0030.05714.59
5.3.250.0230.03714.76
5.3.240.0100.04014.60
5.3.230.0130.04014.53
5.3.220.0070.05014.64
5.3.210.0030.05014.76
5.3.200.0170.04314.76
5.3.190.0000.05014.71
5.3.180.0070.03714.68
5.3.170.0130.04314.50
5.3.160.0200.03714.76
5.3.150.0130.04714.55
5.3.140.0070.03714.71
5.3.130.0030.04714.70
5.3.120.0200.04714.63
5.3.110.0070.05014.74
5.3.100.0070.05013.98
5.3.90.0000.05714.05
5.3.80.0030.04314.00
5.3.70.0070.03714.18
5.3.60.0130.03313.96
5.3.50.0130.03314.01
5.3.40.0070.04314.14
5.3.30.0130.05013.91
5.3.20.0100.04013.68
5.3.10.0070.04013.70
5.3.00.0030.04313.64
5.2.170.0100.02711.06
5.2.160.0070.04011.02
5.2.150.0070.03711.26
5.2.140.0100.03311.07
5.2.130.0130.03711.06
5.2.120.0170.03311.07
5.2.110.0000.05011.24
5.2.100.0100.03011.09
5.2.90.0130.02711.03
5.2.80.0100.03311.14
5.2.70.0130.04311.25
5.2.60.0030.05011.10
5.2.50.0070.04311.16
5.2.40.0070.04011.00
5.2.30.0030.04010.99
5.2.20.0200.02011.09
5.2.10.0070.03310.85
5.2.00.0130.03010.68
5.1.60.0030.0379.94
5.1.50.0130.02710.14
5.1.40.0100.02010.10
5.1.30.0070.02710.36
5.1.20.0200.02010.39
5.1.10.0030.02710.05
5.1.00.0070.02310.09
5.0.50.0100.0178.60
5.0.40.0070.0238.55
5.0.30.0070.0378.14
5.0.20.0030.0278.16
5.0.10.0070.0178.16
5.0.00.0030.0408.36
4.4.90.0030.0205.86
4.4.80.0170.0275.82
4.4.70.0030.0205.90
4.4.60.0000.0235.83
4.4.50.0030.0235.85
4.4.40.0000.0305.81
4.4.30.0030.0175.95
4.4.20.0070.0175.87
4.4.10.0070.0206.05
4.4.00.0030.0305.91
4.3.110.0100.0175.79
4.3.100.0000.0235.76
4.3.90.0030.0175.82
4.3.80.0000.0335.76
4.3.70.0000.0175.77
4.3.60.0000.0175.85
4.3.50.0030.0175.77
4.3.40.0000.0335.71
4.3.30.0070.0174.54
4.3.20.0000.0234.56
4.3.10.0000.0274.45
4.3.00.0070.01316.65

preferences:
46.31 ms | 400 KiB | 5 Q